Skip to main content

parseapi

Official parseAPI client for Python.

pip install parseapi
from parseapi import ParseAPI

parse = ParseAPI("your-api-key")
country = parse.country("US")

Get a key at parseapi.com. The client also reads PARSEAPI_KEY from the environment.

Calls

One method per endpoint, named after the route.

parse.ip("8.8.8.8")
parse.ip.self()
parse.email("hello@gmail.com")
parse.phone("+14155552671")
parse.postal("28202", country="US")
parse.postal.nearby("28202", country="US", radius=40)
parse.postal.distance("28202", "10001", country="US")
parse.city("charlotte", country="US")
parse.city.id("city_mb8mbqrkz8zb")
parse.city.search("char", country="US", limit=10)
parse.city.nearest(35.2271, -80.8431)
parse.country("US")
parse.country.states("US")
parse.state("NC", country="US")
parse.state.districts("NC", country="US")
parse.district("37081")
parse.continent("NA")
parse.continent.countries("NA")
parse.currency("USD")
parse.currency.rate("USD", "EUR")
parse.language("en")
parse.timezone("America/New_York")
parse.holiday("US", year=2026)
parse.holiday.date("US", "2026-12-25")
parse.elevation(35.2271, -80.8431)
parse.point(36.0726, -79.792)
parse.weather(40.7128, -74.006)
parse.domain("example.com")
parse.mx("example.com")
parse.useragent(ua_string)
parse.emoji("rocket")
parse.emoji.search("fire")

Responses are plain dicts, exactly the JSON the API returns.

Async

Same surface, await everything.

from parseapi import AsyncParseAPI

parse = AsyncParseAPI("your-api-key")
country = await parse.country("US")

Deep

Pass deep=True to include the nested deep object with richer fields.

ip = parse.ip("52.94.76.10", deep=True)
ip["deep"]["datacenter"]  # True

Errors

Every non-2xx response raises ParseAPIError with status, code, docs, and request_id. Branch on code.

from parseapi import ParseAPIError

try:
    parse.city("atlantis")
except ParseAPIError as err:
    if err.code == "not_found":
        ...  # no such city

Options

parse = ParseAPI(
    "your-api-key",
    timeout=10.0,  # per-attempt timeout in seconds
    retries=2,     # automatic retries on network errors, 429, and 5xx
)

Requires Python 3.9 or later. One dependency (httpx).

Docs

Full field reference for every endpoint: parseapi.com/docs

Release files for parseapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parseapi 0.1.0
File Size Uploaded
parseapi-0.1.0.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parseapi 0.1.0
File Interpreter ABI Platform
parseapi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / parseapi-0.1.0.tar.gz

Download URL parseapi-0.1.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3fa93fd83bf491470208d5df1c8f1036ccc83d30b8ff21826f7b10b8fd89555f
BLAKE2b-256 checksum
How to use checksums
83d8aeb8a77e3b25e6acc1926c9e2b7a723f139fb2a3d66c95ee3f49a6c1b463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / parseapi-0.1.0-py3-none-any.whl

Download URL parseapi-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb788442821057adf37e192a11eb033220be3053c563cc41e3df5b004ea2fa6f
BLAKE2b-256 checksum
How to use checksums
5c34db2cab546338d5a1d52f9e22e6d63cec5dc10fe7b6c835da01e207ba9bfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page