Geolocation
Synthient rebuilds its IP geolocation database every day and publishes it as one snapshot per UTC day. Each snapshot is served as three files with the same contents: an MMDB database for in-process lookups, a Parquet file, and a gzip-compressed CSV.
What a snapshot contains
A snapshot covers every routed IPv4 and IPv6 network: location, network ownership, carrier, company, abuse contact, registration, privacy flags, and risk signals.
| Format | File | Best for |
|---|---|---|
parquet | Parquet | Warehouses and analytical engines. The default when format is omitted. |
csv | CSV, gzip-compressed (.csv.gz) | Bulk loads into a database. The first row is a header with the column names. |
mmdb | MaxMind DB | Single-address lookups from your own process with any MMDB reader library. |
Geolocation is export-only: no real-time stream, no hourly snapshots, and no lite variant. It is served over HTTP; the gRPC export RPCs cover the stream feeds only.
Authentication
All endpoints require your API key in the x-api-key header and are served from https://api.synthient.com under /api/v4. The dataset is gated by the GEOLOCATION_FEED scope. Requests count against the same rate limits as the other export endpoints, and a download counts as one export.
curl -G https://api.synthient.com/api/v4/feeds/geolocation/export \
-H "x-api-key: $SYNTHIENT_API_KEY"
Publishing schedule
A day's snapshot is published shortly after that day ends at 00:00 UTC, normally within half an hour. Until then, requests for that date return 404 and latest keeps resolving to the previous day.
A day can be published again when a later build of it replaces the first one; the files, sizes, and checksums of that date then change. Compare the checksum from the metadata endpoint, or send the ETag back as If-None-Match, to check whether the copy you hold is still current.
List snapshots
Returns one page of available daily snapshots. Pages are ordered newest-first and capped at 500 rows; pass next_cursor from the response back as cursor to fetch the next page.
Query parameters
- Name
limit- Type
- integer
- Description
Page size. Defaults to
100. Values above500are clamped.
- Name
cursor- Type
- string
- Description
Opaque pagination token returned in
next_cursorof the previous response. Omit on the first page.
- Name
day- Type
- string
- Description
UTC
YYYY-MM-DDdate. Restricts the listing to that day's snapshot.
Response
- Name
stream- Type
- string
- Description
Always
geolocation.
- Name
feeds- Type
- array<object>
- Description
Page of snapshots, newest-first.
- Name
feeds[].kind- Type
- string
- Description
Always
daily.
- Name
feeds[].date- Type
- string
- Description
UTC
YYYY-MM-DDof the snapshot.
- Name
feeds[].size_bytes- Type
- integer
- Description
Parquet file size in bytes. The other files' sizes are in
formats.
- Name
feeds[].row_count- Type
- integer
- Description
Number of networks in the snapshot.
- Name
feeds[].checksum- Type
- string
- Description
Hex-encoded SHA-256 of the Parquet file bytes.
- Name
feeds[].id- Type
- string
- Description
Identifier to pass back to
/export/{id}: the snapshot'sYYYY-MM-DDdate.
- Name
feeds[].created_at- Type
- integer
- Description
Unix timestamp in seconds when the snapshot was indexed server-side.
- Name
feeds[].download_path- Type
- string
- Description
Relative API path to follow for the 307 download redirect. Append
?format=for a file other than Parquet.
- Name
feeds[].formats- Type
- array<object>
- Description
Every file of the snapshot, Parquet first.
- Name
feeds[].formats[].format- Type
- string
- Description
One of
parquet,csv, ormmdb. Pass it back asformaton the download and metadata endpoints.
- Name
feeds[].formats[].size_bytes- Type
- integer
- Description
File size in bytes. For
csv, the size of the compressed.csv.gz.
- Name
feeds[].formats[].checksum- Type
- string
- Description
Hex-encoded SHA-256 of the file as downloaded. For
csv, of the compressed.csv.gz.
- Name
next_cursor- Type
- string
- Description
Pagination token. Absent on the final page.
Request
curl -G https://api.synthient.com/api/v4/feeds/geolocation/export \
-H "x-api-key: $SYNTHIENT_API_KEY" \
--url-query "limit=1"
Response
{
"stream": "geolocation",
"feeds": [
{
"kind": "daily",
"date": "2026-11-14",
"size_bytes": 1128440217,
"row_count": 25304112,
"checksum": "8c1f0a4e6b2d49735e8a9c0b1d2f3a4b5c6d7e8f90a1b2c3d4e5f60718293a4b",
"id": "2026-11-14",
"created_at": 1794701112,
"download_path": "/api/v4/feeds/geolocation/export/2026-11-14",
"formats": [
{
"format": "parquet",
"size_bytes": 1128440217,
"checksum": "8c1f0a4e6b2d49735e8a9c0b1d2f3a4b5c6d7e8f90a1b2c3d4e5f60718293a4b"
},
{
"format": "csv",
"size_bytes": 913205774,
"checksum": "2e7d5c4b3a291807f6e5d4c3b2a1908f7e6d5c4b3a2918070f1e2d3c4b5a6978"
},
{
"format": "mmdb",
"size_bytes": 1604118392,
"checksum": "b4a3928170f6e5d4c3b2a1900f1e2d3c4b5a69788796a5b4c3d2e1f00112233a"
}
]
}
],
"next_cursor": "eyJkIjoiMjAyNi0xMS0xNCIsImgiOjk5fQ.Q2xhM0VtUGxlU2lnbmF0dXJl"
}
Download a snapshot
Returns a 307 redirect to a presigned R2 URL that is valid for 24 hours. The URL is minted per request and expires, so intermediaries must not cache it. Follow the redirect to download the file. Use format to choose which file, and the date string latest for the newest published day.
Path parameters
- Name
date- Type
- string
- Description
Either a
YYYY-MM-DDUTC date, or the literal stringlatestfor the newest published day.
Query parameters
- Name
format- Type
- string
- Description
One of
parquet,csv, ormmdb. Defaults toparquet. Thecsvfile is gzip-compressed.
Conditional requests
The response carries an ETag (the SHA-256 of the file you asked for, in quotes) and a Last-Modified header. Send the ETag back as If-None-Match to get an empty 304 while that file is unchanged. A 304 is not counted as an export.
Responses
| Code | Meaning |
|---|---|
307 | Redirect to a 24-hour presigned download URL. |
304 | The file matches your If-None-Match or If-Modified-Since header. No redirect is issued. |
400 | Bad date format, or a format that is not parquet, csv, mmdb, or tar.gz. |
401 | Missing or invalid API key. |
403 | API key lacks the GEOLOCATION_FEED scope. |
404 | No snapshot is published for that date yet, or it has no file in the requested format. |
Request
# Follow the 307 with -L and write to a file
curl -L -o geolocation.mmdb \
"https://api.synthient.com/api/v4/feeds/geolocation/export/latest?format=mmdb" \
-H "x-api-key: $SYNTHIENT_API_KEY"
Response
{
"type": "https://docs.synthient.com/errors/bad-request",
"title": "Bad request",
"status": 400,
"detail": "unknown format; expected parquet, csv, mmdb or tar.gz",
"instance": "4f1c2a9e7b3d4e5f8a6b9c0d1e2f3a4b"
}
Snapshot metadata
Returns JSON metadata for a daily snapshot: SHA-256 checksum and byte size of the requested file, row count, column schema with names and types, and every file of the day. No file body is returned.
Path parameters
- Name
date- Type
- string
- Description
Either a
YYYY-MM-DDUTC date, or the literal stringlatestfor the newest published day.
Query parameters
- Name
format- Type
- string
- Description
One of
parquet,csv, ormmdb. Defaults toparquet. Selects the file thatformat,size, andchecksumdescribe.
Response
- Name
stream- Type
- string
- Description
Always
geolocation.
- Name
kind- Type
- string
- Description
Always
"daily".
- Name
id- Type
- string
- Description
Snapshot identifier: the
YYYY-MM-DDdate, orlatestwhen requested aslatest.
- Name
format- Type
- string
- Description
The file that
sizeandchecksumdescribe: the requestedformat, or"parquet".
- Name
date- Type
- integer
- Description
Unix timestamp in seconds for the snapshot instant, the day's midnight UTC.
- Name
created_at- Type
- integer
- Description
Unix timestamp in seconds when the snapshot was indexed server-side.
- Name
size- Type
- integer
- Description
Size in bytes of the file named by
format.
- Name
rows- Type
- integer
- Description
Number of networks in the snapshot. Identical across formats.
- Name
checksum- Type
- string
- Description
Hex-encoded SHA-256 of the file named by
format, as downloaded.
- Name
schema.fields- Type
- array<object>
- Description
One entry per column of the Parquet file, in file order. The CSV header lists the same names.
- Name
schema.fields[].name- Type
- string
- Description
Column name.
- Name
schema.fields[].type- Type
- string
- Description
Column type: one of
string,int32,int64,float,double,bool,date,,bytes, orlist<...>of one of these.
- Name
formats- Type
- array<object>
- Description
Every file of the day as
format,size_bytes, andchecksum, Parquet first.
Request
curl -G https://api.synthient.com/api/v4/feeds/geolocation/export/2026-11-14/meta \
-H "x-api-key: $SYNTHIENT_API_KEY" \
--url-query "format=mmdb"
Response
{
"checksum": "b4a3928170f6e5d4c3b2a1900f1e2d3c4b5a69788796a5b4c3d2e1f00112233a",
"date": 1794614400,
"format": "mmdb",
"size": 1604118392,
"rows": 25304112,
"schema": {
"fields": [
{ "name": "network", "type": "string" },
{ "name": "city", "type": "string" },
{ "name": "region", "type": "string" },
{ "name": "region_code", "type": "string" },
{ "name": "country", "type": "string" },
{ "name": "country_code", "type": "string" }
]
},
"stream": "geolocation",
"kind": "daily",
"id": "2026-11-14",
"created_at": 1794701112,
"formats": [
{
"format": "parquet",
"size_bytes": 1128440217,
"checksum": "8c1f0a4e6b2d49735e8a9c0b1d2f3a4b5c6d7e8f90a1b2c3d4e5f60718293a4b"
},
{
"format": "csv",
"size_bytes": 913205774,
"checksum": "2e7d5c4b3a291807f6e5d4c3b2a1908f7e6d5c4b3a2918070f1e2d3c4b5a6978"
},
{
"format": "mmdb",
"size_bytes": 1604118392,
"checksum": "b4a3928170f6e5d4c3b2a1900f1e2d3c4b5a69788796a5b4c3d2e1f00112233a"
}
]
}
Columns
The Parquet file and the CSV carry the same columns, in the same order. The schema of the metadata endpoint lists every column of a given day with its type, so read it instead of hard-coding types.
| Group | Columns |
|---|---|
| Network | network |
| Location | city, region, region_code, country, country_code, continent, continent_code, latitude, longitude, timezone, postal_code, geoname_id, radius, city_estimate_registry |
| Autonomous system | asn, as_name, as_domain, as_type |
| Mobile carrier | carrier_name, mcc, mnc |
| Change markers | as_changed, geo_changed |
| Flags | is_anonymous, is_anycast, is_hosting, is_mobile, is_satellite, is_proxy, is_relay, is_tor, is_vpn |
| Privacy and usage | privacy_service, user_type, connection_type |
| Operator | isp, company_name, company_domain, company_inferred_from |
| Abuse contact | abuse_name, abuse_email, abuse_address, abuse_country, abuse_phone, abuse_network |
| Registration | registered_network_name, registered_network_block, registered_network_source, assignment |
| Risk | risk |
Most columns are strings; latitude and longitude are doubles, geoname_id and radius are 32-bit integers, as_changed and geo_changed are dates, and the nine is_* flags are booleans.
networkis a CIDR block such as203.0.113.0/24. Accept a bare address as a single-address network.asncan carry anASprefix (AS64500). Strip it before you parse the number.country_codeandcontinent_codeare two-letter codes.region_codeis the subdivision part of an ISO 3166-2 code, socountry_codeplus-plusregion_codegives the full code.- In the CSV, the
is_*flags are written astrueorfalse. - A value that is not known is an empty field in the CSV. This includes the autonomous system columns on networks with no origin AS.
as_typeanduser_typeare open sets of lowercase labels, such ashosting,cdn, andhome_ispforas_typeorresidential,business,hosting, andcellularforuser_type. Keep values you do not recognize.
Reading the MMDB file
The mmdb file is a MaxMind DB with the database type Synthient-Enterprise. It holds both IPv4 and IPv6 networks and opens with any MMDB reader. Look up an address to get the record of the network that contains it.
Look up an address
mmdblookup --file geolocation.mmdb --ip 1.1.1.1
MMDB record
This is the record returned for 1.1.1.1, shown as YAML. requested_lookup is the address that was looked up, and record is what the file stores for its network.
requested_lookup: 1.1.1.1
network: 1.1.1.0/24
record:
abuse:
address: PO Box 3646, South Brisbane, QLD 4101, Australia
country: AU
email: helpdesk@apnic.net
name: ABUSE APNICRANDNETAU
network: 1.1.1.0/24
phone: +61-7-3858-3188
assignment: static
city:
geoname_id: 2174003
names:
de: Brisbane
en: Brisbane
es: Brisbane
fa: بریزبن
fr: Brisbane
ja: ブリスベン
ko: 브리즈번
pt-BR: Brisbane
ru: Брисбен
zh-CN: 布里斯班
continent:
code: OC
geoname_id: 6255151
names:
de: Ozeanien
en: Oceania
es: Oceanía
fa: اقیانوسیه
fr: Océanie
ja: オセアニア
ko: 오세아니아
pt-BR: Oceania
ru: Океания
zh-CN: 大洋洲
country:
geoname_id: 2077456
is_in_european_union: false
iso_code: AU
names:
de: Australien
en: Australia
es: Australia
fa: استرالیا
fr: Australie
ja: オーストラリア
ko: 오스트레일리아
pt-BR: Austrália
ru: Австралия
zh-CN: 澳大利亚
location:
accuracy_radius: 76
geo_changed: "2026-10-23"
latitude: -27.4891
longitude: 153.0188
time_zone: Australia/Brisbane
privacy:
hosting: true
registered_network:
block: 1.1.1.0/24
name: APNIC-LABS
source: apnic-whois
subdivisions:
- geoname_id: 2152274
iso_code: QLD
names:
de: Queensland
en: Queensland
es: Queensland
fa: کوئینزلند
fr: Queensland
ja: クイーンズランド州
pt-BR: Queensland
ru: Квинсленд
traits:
as_changed: "2026-10-23"
autonomous_system_domain: cloudflare.com
autonomous_system_number: 13335
autonomous_system_organization: Cloudflare, Inc.
autonomous_system_type: cdn
is_anycast: true
is_hosting_provider: true
isp: Cloudflare, Inc.
organization: APNIC and Cloudflare DNS Resolver project
organization_domain: cloudflare.com
user_type: hosting
network
- Name
network- Type
- string
- Description
CIDR block of the network that contains the address. Your reader returns it with the record. Every address in the block shares the record.
abuse
- Name
abuse.address- Type
- string
- Description
Postal address of the abuse contact.
- Name
abuse.country- Type
- string
- Description
ISO 3166-1 alpha-2 country code of the abuse contact.
- Name
abuse.email- Type
- string
- Description
Email address for abuse reports.
- Name
abuse.name- Type
- string
- Description
Name of the abuse contact.
- Name
abuse.network- Type
- string
- Description
CIDR block the abuse contact is registered for.
- Name
abuse.phone- Type
- string
- Description
Phone number of the abuse contact.
assignment
- Name
assignment- Type
- string
- Description
How addresses in the network are assigned, such as
static.
city
- Name
city.geoname_id- Type
- integer
- Description
GeoNames identifier of the city.
- Name
city.names- Type
- map<string, string>
- Description
City name by language code, such as
en,de, orzh-CN.
continent
- Name
continent.code- Type
- string
- Description
Two-letter continent code.
- Name
continent.geoname_id- Type
- integer
- Description
GeoNames identifier of the continent.
- Name
continent.names- Type
- map<string, string>
- Description
Continent name by language code.
country
- Name
country.geoname_id- Type
- integer
- Description
GeoNames identifier of the country.
- Name
country.is_in_european_union- Type
- bool
- Description
Whether the country is a member of the European Union.
- Name
country.iso_code- Type
- string
- Description
ISO 3166-1 alpha-2 country code.
- Name
country.names- Type
- map<string, string>
- Description
Country name by language code.
location
- Name
location.accuracy_radius- Type
- integer
- Description
Radius around the coordinates within which the address is expected to be.
- Name
location.geo_changed- Type
- date
- Description
Date the location last changed, as
YYYY-MM-DD.
- Name
location.latitude- Type
- double
- Description
Latitude in decimal degrees.
- Name
location.longitude- Type
- double
- Description
Longitude in decimal degrees.
- Name
location.time_zone- Type
- string
- Description
IANA time zone name, such as
Australia/Brisbane.
privacy
- Name
privacy.hosting- Type
- bool
- Description
Whether the network is hosting, cloud or datacentre space.
registered_network
- Name
registered_network.block- Type
- string
- Description
CIDR block of the registration that covers the network.
- Name
registered_network.name- Type
- string
- Description
Name the block is registered under.
- Name
registered_network.source- Type
- string
- Description
Registry data the registration was read from, such as
apnic-whois.
subdivisions
- Name
subdivisions- Type
- list<object>
- Description
Subdivisions of the country that contain the location, such as a state or province.
- Name
subdivisions[].geoname_id- Type
- integer
- Description
GeoNames identifier of the subdivision.
- Name
subdivisions[].iso_code- Type
- string
- Description
Subdivision part of an ISO 3166-2 code, so
country.iso_codeplus-plus this value gives the full code.
- Name
subdivisions[].names- Type
- map<string, string>
- Description
Subdivision name by language code.
traits
- Name
traits.as_changed- Type
- date
- Description
Date the autonomous system last changed, as
YYYY-MM-DD.
- Name
traits.autonomous_system_domain- Type
- string
- Description
Domain of the autonomous system's operator.
- Name
traits.autonomous_system_number- Type
- integer
- Description
Number of the autonomous system that originates the network, without an
ASprefix.
- Name
traits.autonomous_system_organization- Type
- string
- Description
Name of the autonomous system's operator.
- Name
traits.autonomous_system_type- Type
- string
- Description
Type of the autonomous system. One of the network types.
- Name
traits.is_anycast- Type
- bool
- Description
Whether the network is announced from more than one location.
- Name
traits.is_hosting_provider- Type
- bool
- Description
Whether the network belongs to a hosting provider.
- Name
traits.isp- Type
- string
- Description
Name of the internet service provider.
- Name
traits.organization- Type
- string
- Description
Name of the organization that uses the network.
- Name
traits.organization_domain- Type
- string
- Description
Domain of that organization.
- Name
traits.user_type- Type
- string
- Description
Kind of user on the network, such as
residential,business,hosting, orcellular.
Network types
traits.autonomous_system_type carries one of these values, the same ones as the as_type column. The set is open, so keep values you do not recognize.
| Value | Meaning |
|---|---|
home_isp | Residential access network. |
business_broadband | Business access network. |
mobile | Mobile carrier. |
satellite | Satellite access network. |
hosting | Hosting, cloud or datacentre. |
cdn | Content delivery network. |
academic | University, school or research network. |
government | Government body. |
enterprise | A company's own network. |
personal | An individual's own network. |
critical_infra | Utilities, transport and similar. |
Keeping a local MMDB current
Fetch the metadata once a day, download only when the checksum changes, and verify the file before you swap it in. Use a fixed date for both requests so the metadata and the download describe the same snapshot.
Daily refresh
BASE=https://api.synthient.com/api/v4/feeds/geolocation/export
# 1. Resolve the newest day and its MMDB checksum
META=$(curl -sG "$BASE/latest/meta" \
-H "x-api-key: $SYNTHIENT_API_KEY" --url-query "format=mmdb")
DAY=$(echo "$META" | jq -r '.date | strftime("%Y-%m-%d")')
SUM=$(echo "$META" | jq -r '.checksum')
# 2. Download that day and verify it
curl -sL -o geolocation.mmdb.new "$BASE/$DAY?format=mmdb" \
-H "x-api-key: $SYNTHIENT_API_KEY"
echo "$SUM geolocation.mmdb.new" | sha256sum --check
# 3. Replace the live file in one step
mv geolocation.mmdb.new geolocation.mmdb
Response codes
See Errors for the full reference and retry guidance.