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

Uploaded Source

File details

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

File metadata

  • Download URL: geography-0.0.50.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.50.tar.gz
Algorithm Hash digest
SHA256 ed58e12b3908b06388cd92a63303fee40d8c86227350dda2a1b8ced97674e4cf
MD5 1106e2c0ed6d3264e0c1782db696da55
BLAKE2b-256 c04a6d3c70b35ae1cfea2639b661c3b195f5a3b6235200a80c9f46c38df28e90

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