While the Secretariat of the United Nations is headquartered in New York City , its many bodies, specialized agencies , and related organizations are headquartered in other parts of the world, particularly in Europe.