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.44.tar.gz (186.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for geography-0.0.44.tar.gz
Algorithm Hash digest
SHA256 e53e771e258d585225b073ea4ea5ad9d9deed297f9c7a8a0db77489a972a116c
MD5 c841534d2152a94664361ad90da8b903
BLAKE2b-256 c242d8340df665372ff8be1882714b1ca5eecffa5cfb47b52deb28b055958b20

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