Categories

Capital City Finder

Find the capital city of any country

Key Facts

Category
Geography
Input Types
text, select, checkbox
Output Type
json
Sample Coverage
2
API Ready
Yes

Overview

The Capital City Finder is a streamlined utility designed to instantly retrieve the official capital city of any nation worldwide. Whether you are verifying geographic data, planning international travel, or conducting research, this tool provides accurate administrative information based on country names, ISO codes, or reverse lookups.

When to Use

  • When you need to quickly verify the capital city for a specific country during research or study.
  • When you are working with international datasets and need to map ISO codes to their respective administrative centers.
  • When you need to confirm if a specific city serves as the seat of government for a nation.

How It Works

  • Enter the country name, ISO code, or capital city name into the search field.
  • Select your preferred search criteria from the dropdown menu to refine the query.
  • Toggle the 'Include Additional Details' option if you require supplementary geographic or administrative context.
  • Submit the request to receive an immediate, accurate result.

Use Cases

Educational research for geography students and teachers.
Data validation for logistics and international shipping forms.
Quick reference for travel planning and documentation.

Examples

1. Verifying National Capitals

Geography Student
Background
A student is preparing for an exam and needs to verify the capitals of several countries to ensure their notes are accurate.
Problem
Manually searching through textbooks is slow and prone to errors.
How to Use
Enter the country name in the input field and keep 'Include Additional Details' checked for context.
Example Config
country: 'Japan', searchBy: 'name', includeDetails: true
Outcome
The tool returns 'Tokyo' along with relevant administrative details.

2. ISO Code Mapping

Data Analyst
Background
An analyst is cleaning a dataset containing ISO country codes and needs to append the capital city for each entry.
Problem
The dataset lacks a column for capital cities, requiring a reliable lookup method.
How to Use
Select 'ISO Code' from the search options and input the code for the target country.
Example Config
country: 'FRA', searchBy: 'iso', includeDetails: false
Outcome
The tool identifies the country as France and returns 'Paris' as the capital.

Try with Samples

geography

FAQ

Can I search by ISO code?

Yes, you can select 'ISO Code' in the search criteria to find the capital using standard country codes.

Does this tool provide historical capital information?

No, this tool provides current, official administrative capital city data only.

Can I search for a capital to find the country?

Yes, by selecting 'Capital City Name' in the search options, you can perform a reverse lookup to identify the corresponding country.

Is the data updated regularly?

The tool references standard geographic databases to ensure the provided capital information is current.

What additional details are included?

When enabled, the tool provides supplementary information such as regional context or official administrative status.

API Documentation

Request Endpoint

POST /en/api/tools/capital-city

Request Parameters

Parameter Name Type Required Description
country text Yes -
searchBy select No -
includeDetails checkbox No -

Response Format

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON Data: JSON Data

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-capital-city": {
      "name": "capital-city",
      "description": "Find the capital city of any country",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=capital-city",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]