We present extensive pseudopotential density functional theory (DFT) calculations in order to analyze the structural properties and chemical reactivity of nitrogen molecules confined in spheroidal (C(82)) and tubelike (C(110)) carbon fullerene structures. For a small number of encapsulated nitrogens, the N(2) species exist in a nonbonded state within the cavities and form well defined molecular conformations such as linear chains, zigzag arrays, as well as both spheroidal and tubular configurations. However, with increasing the number of stored molecules, the interaction among the confined nitrogens as well as between the N(2) species and the fullerene wall is not always mainly repulsive. Actually, at high densities of the encapsulated gas, we found both adsorption of N(2) to the inner carbon surface together with the formation of (N(2))(m) molecular clusters. Total energy DFT calculations reveal that the shape of the interaction potential of a test molecule moving within the carbon cavities strongly varies with the number and proximity of the coadsorbed N(2) from being purely repulsive to having short-range attractive contributions close to the inner wall. In particular, the latter are always found when a group of closely spaced nitrogens is located near the carbon cage (a fact that will naturally occur at high densities of the encapsulated gas), inducing the formation of covalent bonds between the N(2) and the fullerene network. Interestingly, in some cases, the previous nitrogen adsorption to the inner surface is reversible by reducing the gas pressure. The calculated average density of states of our considered carbon compounds reveals the appearance of well defined features that clearly reflect the occurring structural changes and modifications in the adsorption properties in the systems. Our results clearly underline the crucial role played by confinement effects on the reactivity of our endohedral compounds, define this kind of materials as nonideal nanocontainers for high density nitrogen storage applications, and must be taken into account when analyzing the diffusion properties of the encapsulated species.