Skip to main content

Get info about countries and states

Project description

Geography API

geography has information for:

Australian States and Territories (AST)

Canadian Provinces and Territories (CPT)

Continents (CNT)

Countries (CNR)

South African Provinces (SAP)

USA States and Territories (UST)

USA Regions (USR)

Planned upcoming subdivisions:

Brazil States (BRS)

China Provinces (CHP)

Ethiopia Regions (ETR)

France Regions (FRR)

Germany States (GRS)

India States and Territories (IST)

Japan Prefectures (JPP)

Mexican States (MXS)

Russia Federal Subjects (RFS)

Saudi Arabia Provinces (SRP)

Spain Regions (SPR)

United Arab Emirates - Emirates (AEE)

The information you can get:

Check if country/state/province/territory exists (AST, CPT, CNT, CNR, SAP, UST, USR)

Get area in Kilometers (AST, CPT, CNT, CNR, SAP, UST, USR)

Get area in Miles (AST, CPT, CNT, CNR, SAP, UST, USR)

Get area ranking (AST, CPT, CNT, CNR, SAP, UST, USR)

Get area ranking dictionary (AST, CPT, CNT, CNR, SAP, UST, USR)

Get capital (AST, CPT, CNR, SAP, UST)

Get URL of flag (AST, CPT, CNR, SAP, UST)

Get GDP (AST, CPT, CNT, CNR, SAP, UST, USR)

Get GDP ranking (AST, CPT, CNT, CNR, SAP, UST, USR)

Get GDP ranking dictionary (AST, CPT, CNT, CNR, SAP, UST, USR)

Get GDP per capita (AST, CPT, CNT, CNR, SAP, UST, USR)

Get GDP per capita ranking (AST, CPT, CNT, CNR, SAP, UST, USR)

Get GDP per capita ranking dictionary (AST, CPT, CNT, CNR, SAP, UST, USR)

Get largest city (AST, CPT, CNT, CNR, SAP, UST, USR)

Get name from alpha code (AST, CPT, CNR, SAP, UST)

Get population (AST, CPT, CNT, CNR, SAP, UST, USR)

Get population ranking (AST, CPT, CNT, CNR, SAP, UST, USR)

Get population ranking dictionary (AST, CPT, CNT, CNR, SAP, UST, USR)

Get population density in kilometers (AST, CPT, CNT, CNR, SAP, UST, USR)

Get population density in miles (AST, CPT, CNT, CNR, SAP, UST, USR)

Get population density ranking (AST, CPT, CNT, CNR, SAP, UST, USR)

Get population density ranking dictionary (AST, CPT, CNT, CNR, SAP, UST, USR)

Get alpha from name (AST, CPT, SAP, UST)

Get alpha3 from name (CNR)

Get alpha2 from name (CNR)

Get is State/Province/Territory type. (AST, CPT, SAP, UST)

Get continent. (CNR)

Get region. (UST)

Get countries in continent. (CNT)

Get States in region. (USR)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geography-0.0.49.tar.gz (186.8 kB view details)

Uploaded Source

File details

Details for the file geography-0.0.49.tar.gz.

File metadata

  • Download URL: geography-0.0.49.tar.gz
  • Upload date:
  • Size: 186.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for geography-0.0.49.tar.gz
Algorithm Hash digest
SHA256 d36493829c65f6c390976721670ea342538e4424b4a91270f3f5658dd8a3b0de
MD5 ce0f3c3c8fdaf646febb783b8b632cb2
BLAKE2b-256 6b2b2e956a6607064c7433f57ea6a057fdaa7e17ce775f966329f4e9b92ee37e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page