City data complements airport data. If you need destination functionality that does not depend on a specific airport, you can use cities—or combine both to build richer travel experiences.Cities are especially useful for maps and clustering (grouping multiple airports under a metro area), and for search in booking, hotel, and GDS-like workflows where an IATA city code represents “all airports in a city”.
Authentication
string
required
Your FlyStack API token. You can create one from the dashboard (see Authentication).
Query parameters
string
Filter by IATA city code (e.g., SIN).
string
Filter by country ISO-2 code (e.g., SG).
string
Comma-separated list of fields to return (e.g., name,city_code,lat,lng,country_code).
The response can be shortened for readability when using _fields. Data coverage may vary by city.
Pagination
number
Max number of rows per response: 1,000 by default, up to 10,000 (limits may depend on your plan).
number
Pagination offset (0+). When more rows match, the response has the headers X-Has-More: true and X-Next-Offset: pass its value as offset to get the next page.
Response
The endpoint returns a list of cities.
Cities dataset response fields
string
City name.
string
Metropolitan area IATA code.
string
United Nations location code (when available).
number
Latitude.
number
Longitude.
number
City elevation (meters, when available).
string
IANA timezone (when available).
string
ISO-2 country code.
Show Enrichment
number
City population (when available).
object
Alternative names in different languages (when available).
string
Link to the city page on Wikipedia (when available).
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"FlyStack","colors":{"primary":"#051039","light":"#051039","dark":"#051039"},"favicon":"https://mintcdn.com/flystack/bqOJC7EB8jszNymV/favicon.png?fit=max\u0026auto=format\u0026n=bqOJC7EB8jszNymV\u0026q=85\u0026s=ef7f0a8dd635e5024d6ab9f8ee85422a","logo":{"light":"https://mintcdn.com/flystack/bqOJC7EB8jszNymV/logo/light.svg?fit=max\u0026auto=format\u0026n=bqOJC7EB8jszNymV\u0026q=85\u0026s=2427a1f133ff2744c15e2e6385bbdafd","dark":"https://mintcdn.com/flystack/bqOJC7EB8jszNymV/logo/dark.svg?fit=max\u0026auto=format\u0026n=bqOJC7EB8jszNymV\u0026q=85\u0026s=8bdbb02fae9c13880c1a63d5504b0ba0"},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"label":"Support","href":"mailto:josselin.liebe@piloterr.com"},{"label":"Status","href":"https://status.flystack.dev"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.flystack.dev/login"}},"footer":{"socials":{"github":"https://github.com/flystackdev","linkedin":"https://www.linkedin.com/company/flystack","discord":"https://discord.com/invite/CFj3ph8aHU"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flystack","hasAudioNarration":false,"actualSubdomain":"flystack","customDomains":["docs.flystack.dev"],"gitSource":{"type":"github","owner":"flystackdev","repo":"flystack-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c9b29ffae5051c40867c"},"entitlements":{},"buildId":"6af434492a7230ffd7ac057e","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"API Reference","count":13},{"language":"default","tag":"Datasets","count":8},{"language":"default","tag":"Real-time","count":4},{"language":"default","tag":"Documentation","count":4},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Platform","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoints/cities","slug":"/api-reference/endpoints/cities","pageMetadata":{"title":"Cities Dataset","api":"GET https://api.flystack.dev/v1/cities","description":"Retrieve cities worldwide using IATA city codes and location metadata.","href":"/api-reference/endpoints/cities"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Retrieve cities worldwide using IATA city codes and location metadata.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`City data complements airport data. If you need destination functionality that does not depend on a specific airport, you can use cities—or combine both to build richer travel experiences.`}),`\n`,_jsx(_components.p,{children:`Cities are especially useful for maps and clustering (grouping multiple airports under a metro area), and for search in booking, hotel, and GDS-like workflows where an IATA city code represents “all airports in a city”.`}),`\n`,_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`Your FlyStack API token. You can create one from the dashboard (see `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),`).`]})}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`city_code`,type:`string`,required:false,id:`param-city-code`,children:_jsxs(_components.p,{children:[`Filter by IATA city code (e.g., `,_jsx(_components.code,{children:`SIN`}),`).`]})}),`\n`,_jsx(ParamField,{query:`country_code`,type:`string`,required:false,id:`param-country-code`,children:_jsxs(_components.p,{children:[`Filter by country ISO-2 code (e.g., `,_jsx(_components.code,{children:`SG`}),`).`]})}),`\n`,_jsx(ParamField,{query:`_fields`,type:`string`,required:false,id:`param-fields`,children:_jsxs(_components.p,{children:[`Comma-separated list of fields to return (e.g., `,_jsx(_components.code,{children:`name,city_code,lat,lng,country_code`}),`).`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The response can be shortened for readability when using `,_jsx(_components.code,{children:`_fields`}),`. Data coverage may vary by city.`]})}),`\n`,_jsx(Heading,{level:`4`,id:`pagination`,children:`Pagination`}),`\n`,_jsx(ParamField,{query:`limit`,type:`number`,required:false,id:`param-limit`,children:_jsx(_components.p,{children:`Max number of rows per response: 1,000 by default, up to 10,000 (limits may depend on your plan).`})}),`\n`,_jsx(ParamField,{query:`offset`,type:`number`,required:false,id:`param-offset`,children:_jsxs(_components.p,{children:[`Pagination offset (0+). When more rows match, the response has the headers `,_jsx(_components.code,{children:`X-Has-More: true`}),` and `,_jsx(_components.code,{children:`X-Next-Offset`}),`: pass its value as `,_jsx(_components.code,{children:`offset`}),` to get the next page.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`The endpoint returns a list of cities.`}),`\n`,_jsx(Heading,{level:`4`,id:`cities-dataset-response-fields`,children:`Cities dataset response fields`}),`\n`,_jsx(ResponseField,{type:`array`,children:_jsxs(ResponseField,{type:`object`,children:[_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`City name.`})}),_jsx(ResponseField,{name:`city_code`,type:`string`,id:`param-city-code-1`,children:_jsx(_components.p,{children:`Metropolitan area IATA code.`})}),_jsx(ResponseField,{name:`un_locode`,type:`string`,id:`param-un-locode`,children:_jsx(_components.p,{children:`United Nations location code (when available).`})}),_jsx(ResponseField,{name:`lat`,type:`number`,id:`param-lat`,children:_jsx(_components.p,{children:`Latitude.`})}),_jsx(ResponseField,{name:`lng`,type:`number`,id:`param-lng`,children:_jsx(_components.p,{children:`Longitude.`})}),_jsx(ResponseField,{name:`alt`,type:`number`,id:`param-alt`,children:_jsx(_components.p,{children:`City elevation (meters, when available).`})}),_jsx(ResponseField,{name:`timezone`,type:`string`,id:`param-timezone`,children:_jsx(_components.p,{children:`IANA timezone (when available).`})}),_jsx(ResponseField,{name:`country_code`,type:`string`,id:`param-country-code-1`,children:_jsx(_components.p,{children:`ISO-2 country code.`})}),_jsxs(Expandable,{title:`Enrichment`,defaultOpen:false,children:[_jsx(ResponseField,{name:`population`,type:`number`,id:`param-population`,children:_jsx(_components.p,{children:`City population (when available).`})}),_jsx(ResponseField,{name:`names`,type:`object`,id:`param-names`,children:_jsx(_components.p,{children:`Alternative names in different languages (when available).`})}),_jsx(ResponseField,{name:`wikipedia`,type:`string`,id:`param-wikipedia`,children:_jsx(_components.p,{children:`Link to the city page on Wikipedia (when available).`})})]}),_jsx(ResponseField,{name:`slug`,type:`string`,id:`param-slug`,children:_jsx(_components.p,{children:`Unique city identifier.`})})]})}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`see-also`,children:`See also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/endpoints/airports`,children:`Airports Dataset API`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cities Dataset","api":"GET https://api.flystack.dev/v1/cities","description":"Retrieve cities worldwide using IATA city codes and location metadata.","href":"/api-reference/endpoints/cities"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`City data complements airport data. If you need destination functionality that does not depend on a specific airport, you can use cities—or combine both to build richer travel experiences.`}),`\n`,_jsx(_components.p,{children:`Cities are especially useful for maps and clustering (grouping multiple airports under a metro area), and for search in booking, hotel, and GDS-like workflows where an IATA city code represents “all airports in a city”.`}),`\n`,_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`Your FlyStack API token. You can create one from the dashboard (see `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),`).`]})}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`city_code`,type:`string`,required:false,id:`param-city-code`,children:_jsxs(_components.p,{children:[`Filter by IATA city code (e.g., `,_jsx(_components.code,{children:`SIN`}),`).`]})}),`\n`,_jsx(ParamField,{query:`country_code`,type:`string`,required:false,id:`param-country-code`,children:_jsxs(_components.p,{children:[`Filter by country ISO-2 code (e.g., `,_jsx(_components.code,{children:`SG`}),`).`]})}),`\n`,_jsx(ParamField,{query:`_fields`,type:`string`,required:false,id:`param-fields`,children:_jsxs(_components.p,{children:[`Comma-separated list of fields to return (e.g., `,_jsx(_components.code,{children:`name,city_code,lat,lng,country_code`}),`).`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The response can be shortened for readability when using `,_jsx(_components.code,{children:`_fields`}),`. Data coverage may vary by city.`]})}),`\n`,_jsx(Heading,{level:`4`,id:`pagination`,children:`Pagination`}),`\n`,_jsx(ParamField,{query:`limit`,type:`number`,required:false,id:`param-limit`,children:_jsx(_components.p,{children:`Max number of rows per response: 1,000 by default, up to 10,000 (limits may depend on your plan).`})}),`\n`,_jsx(ParamField,{query:`offset`,type:`number`,required:false,id:`param-offset`,children:_jsxs(_components.p,{children:[`Pagination offset (0+). When more rows match, the response has the headers `,_jsx(_components.code,{children:`X-Has-More: true`}),` and `,_jsx(_components.code,{children:`X-Next-Offset`}),`: pass its value as `,_jsx(_components.code,{children:`offset`}),` to get the next page.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`The endpoint returns a list of cities.`}),`\n`,_jsx(Heading,{level:`4`,id:`cities-dataset-response-fields`,children:`Cities dataset response fields`}),`\n`,_jsx(ResponseField,{type:`array`,children:_jsxs(ResponseField,{type:`object`,children:[_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`City name.`})}),_jsx(ResponseField,{name:`city_code`,type:`string`,id:`param-city-code-1`,children:_jsx(_components.p,{children:`Metropolitan area IATA code.`})}),_jsx(ResponseField,{name:`un_locode`,type:`string`,id:`param-un-locode`,children:_jsx(_components.p,{children:`United Nations location code (when available).`})}),_jsx(ResponseField,{name:`lat`,type:`number`,id:`param-lat`,children:_jsx(_components.p,{children:`Latitude.`})}),_jsx(ResponseField,{name:`lng`,type:`number`,id:`param-lng`,children:_jsx(_components.p,{children:`Longitude.`})}),_jsx(ResponseField,{name:`alt`,type:`number`,id:`param-alt`,children:_jsx(_components.p,{children:`City elevation (meters, when available).`})}),_jsx(ResponseField,{name:`timezone`,type:`string`,id:`param-timezone`,children:_jsx(_components.p,{children:`IANA timezone (when available).`})}),_jsx(ResponseField,{name:`country_code`,type:`string`,id:`param-country-code-1`,children:_jsx(_components.p,{children:`ISO-2 country code.`})}),_jsxs(Expandable,{title:`Enrichment`,defaultOpen:false,children:[_jsx(ResponseField,{name:`population`,type:`number`,id:`param-population`,children:_jsx(_components.p,{children:`City population (when available).`})}),_jsx(ResponseField,{name:`names`,type:`object`,id:`param-names`,children:_jsx(_components.p,{children:`Alternative names in different languages (when available).`})}),_jsx(ResponseField,{name:`wikipedia`,type:`string`,id:`param-wikipedia`,children:_jsx(_components.p,{children:`Link to the city page on Wikipedia (when available).`})})]}),_jsx(ResponseField,{name:`slug`,type:`string`,id:`param-slug`,children:_jsx(_components.p,{children:`Unique city identifier.`})})]})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`?city_code=PAR`,numberOfLines:`22`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`22`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Paris\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"city_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PAR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"un_locode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FRPAR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`48.85341`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lng\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2.3488`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"alt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timezone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Europe/Paris\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"country_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"population\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2138551`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"names\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"de\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Paris\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"en\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Paris\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"es\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"París\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fr\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Paris\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ja\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"パリ\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"wikipedia\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"slug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"paris-par-fr\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`see-also`,children:`See also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/endpoints/airports`,children:`Airports Dataset API`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cities Dataset","api":"GET https://api.flystack.dev/v1/cities","description":"Retrieve cities worldwide using IATA city codes and location metadata.","href":"/api-reference/endpoints/cities"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":3,"children":[]},{"title":"Query parameters","slug":"query-parameters","depth":3,"children":[]},{"title":"Pagination","slug":"pagination","depth":4,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Cities dataset response fields","slug":"cities-dataset-response-fields","depth":4,"children":[]},{"title":"See also","slug":"see-also","depth":3,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"?city_code=PAR","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"22\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Paris\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"city_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PAR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"un_locode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"FRPAR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lat\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">48.85341\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lng\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2.3488\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"alt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">42\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"timezone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Europe/Paris\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"country_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"FR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"population\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2138551\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"names\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"de\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Paris\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"en\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Paris\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"es\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"París\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fr\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Paris\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ja\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"パリ\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"wikipedia\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"slug\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"paris-par-fr\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Cities Dataset","path":"/v1/cities","servers":[{"url":"https://api.flystack.dev"}],"method":"get","request":{"security":[],"parameters":{"query":{"city_code":{"schema":[{"type":"string","description":"Filter by IATA city code (e.g., `SIN` )."}]},"country_code":{"schema":[{"type":"string","description":"Filter by country ISO-2 code (e.g., `SG` )."}]},"_fields":{"schema":[{"type":"string","description":"Comma-separated list of fields to return (e.g., `name,city_code,lat,lng,country_code` )."}]},"limit":{"schema":[{"type":"number","description":"Max number of rows per response: 1,000 by default, up to 10,000 (limits may depend on your plan)."}]},"offset":{"schema":[{"type":"number","description":"Pagination offset (0+). When more rows match, the response has the headers `X-Has-More: true` and `X-Next-Offset` : pass its value as `offset` to get the next page."}]}},"header":{"x-api-key":{"schema":[{"type":"string","description":"Your FlyStack API token. You can create one from the dashboard (see Authentication ).","required":true}]}},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"flystack","siteName":"FlyStack","title":"Cities Dataset - FlyStack","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v1":{"href":"/api-reference/endpoints/cities","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T08:00:04.896Z","originalFileLocation":"api-reference/endpoints/cities.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieve cities worldwide using IATA city codes and location metadata.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FlyStack\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cities Dataset - FlyStack\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve cities worldwide using IATA city codes and location metadata.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FlyStack\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.flystack.dev/api-reference/endpoints/cities\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flystack.mintlify.site/_mintlify/api/og/v2?division=Datasets\u0026amp;title=Cities+Dataset\u0026amp;description=Retrieve+cities+worldwide+using+IATA+city+codes+and+location+metadata.\u0026amp;theme=f37be95c973897d0f93e33f3\u0026amp;signature=66165a5ea8facb28293a3e653c753c013b63e4afb8e74b2f89024067fe645177\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cities Dataset - FlyStack\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve cities worldwide using IATA city codes and location metadata.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flystack.mintlify.site/_mintlify/api/og/v2?division=Datasets\u0026amp;title=Cities+Dataset\u0026amp;description=Retrieve+cities+worldwide+using+IATA+city+codes+and+location+metadata.\u0026amp;theme=f37be95c973897d0f93e33f3\u0026amp;signature=66165a5ea8facb28293a3e653c753c013b63e4afb8e74b2f89024067fe645177\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/flystack/SZr0L2CxGG-SdzBg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FlyStack\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#051039\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.flystack.dev/api-reference/endpoints/cities\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/cities.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.flystack.dev/#organization\",\"name\":\"FlyStack\",\"url\":\"https://docs.flystack.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/flystack/bqOJC7EB8jszNymV/logo/light.svg?fit=max\u0026auto=format\u0026n=bqOJC7EB8jszNymV\u0026q=85\u0026s=2427a1f133ff2744c15e2e6385bbdafd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.flystack.dev#website\",\"name\":\"FlyStack\",\"url\":\"https://docs.flystack.dev\",\"publisher\":{\"@id\":\"https://docs.flystack.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.flystack.dev/api-reference/endpoints/cities#webpage\",\"url\":\"https://docs.flystack.dev/api-reference/endpoints/cities\",\"name\":\"Cities Dataset\",\"description\":\"Retrieve cities worldwide using IATA city codes and location metadata.\",\"dateModified\":\"2026-11-04T08:00:04.896Z\",\"isPartOf\":{\"@id\":\"https://docs.flystack.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.flystack.dev/api-reference/endpoints/cities#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.flystack.dev/api-reference/endpoints/cities#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Datasets\",\"item\":\"https://docs.flystack.dev/api-reference/endpoints/airports\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cities Dataset\",\"item\":\"https://docs.flystack.dev/api-reference/endpoints/cities\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.flystack.dev/api-reference/endpoints/cities#apireference\",\"headline\":\"Cities Dataset\",\"name\":\"Cities Dataset\",\"description\":\"Retrieve cities worldwide using IATA city codes and location metadata.\",\"url\":\"https://docs.flystack.dev/api-reference/endpoints/cities\",\"mainEntityOfPage\":{\"@id\":\"https://docs.flystack.dev/api-reference/endpoints/cities#webpage\"},\"dateModified\":\"2026-11-04T08:00:04.896Z\",\"publisher\":{\"@id\":\"https://docs.flystack.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.flystack.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FlyStack\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FlyStack\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/cities.md","siteName":"FlyStack","nav":{"global":null,"versions":[{"version":"v1","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Real-time","pages":[{"title":"Real-Time Flights","api":"GET https://api.flystack.dev/v1/flights","href":"/api-reference/endpoints/flights"},{"title":"Flight Lookup","api":"GET https://api.flystack.dev/v1/flights/lookup","href":"/api-reference/endpoints/flight"},{"title":"Flight Delays","api":"GET https://api.flystack.dev/v1/delays","href":"/api-reference/endpoints/delays"},{"title":"Flight Schedules","api":"GET https://api.flystack.dev/v1/schedules","href":"/api-reference/endpoints/schedules"}]},{"group":"Datasets","pages":[{"title":"Airports Dataset","api":"GET https://api.flystack.dev/v1/airports","href":"/api-reference/endpoints/airports"},{"title":"Airports Nearby","api":"GET https://api.flystack.dev/v1/airports/nearby","href":"/api-reference/endpoints/airports-nearby"},{"title":"Airlines Dataset","api":"GET https://api.flystack.dev/v1/airlines","href":"/api-reference/endpoints/airlines"},{"title":"Airline Routes","api":"GET https://api.flystack.dev/v1/routes","description":"Explore airline routes and planned schedules (non real-time) to build connections and future itineraries.","href":"/api-reference/endpoints/routes"},{"title":"Cities Dataset","api":"GET https://api.flystack.dev/v1/cities","href":"/api-reference/endpoints/cities"},{"title":"Countries Dataset","api":"GET https://api.flystack.dev/v1/countries","description":"Look up countries and localization data like ISO codes, continent, population, and currency.","href":"/api-reference/endpoints/countries"},{"title":"Timezones","api":"GET https://api.flystack.dev/v1/timezones","href":"/api-reference/endpoints/timezones"},{"title":"Aircraft Fleets Dataset","api":"GET https://api.flystack.dev/v1/fleets","href":"/api-reference/endpoints/fleets"}]},{"group":"Platform","pages":[{"title":"Usage","api":"GET https://api.flystack.dev/v1/usage","href":"/api-reference/usage"}]}]}]}]},"basePath":"","title":"Cities Dataset - FlyStack","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","SectionHeading-CKObOTcn.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js"]}