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

Uploaded Source

File details

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

File metadata

  • Download URL: geography-0.0.46.tar.gz
  • Upload date:
  • Size: 186.8 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.46.tar.gz
Algorithm Hash digest
SHA256 64dc4448becda2d6adbfe3162a37c4a22eeeba727f2e6d380c04454183e081e3
MD5 2927abbdd61d80f68a3e02ff985c4e1c
BLAKE2b-256 fc6085a742c989ad01effb135cda97a0496da4d7502f5e978e156922890a414b

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