Discover/TomTom API
live

TomTom APItomtom.com

Access TomTom Traffic Index data: global city congestion rankings, AM/PM peak metrics, country-level rankings, and monthly traffic trends via 3 endpoints.

Endpoint health
verified 1d ago
get_congestion_rankings
get_country_rankings
get_city_details
3/3 passing latest checkself-healing
Endpoints
3
Updated
26d ago

What is the TomTom API?

The TomTom Traffic Index API exposes city-level congestion data across 3 endpoints, covering global rankings, country-specific rankings, and per-city detail. The get_congestion_rankings endpoint returns cities sorted by congestion score worldwide, while get_city_details delivers AM/PM peak-hour metrics and monthly trend data for a named city. All data reflects the 2025 TomTom Traffic Index report.

Try it
Maximum number of cities to return in the ranking.
Comma-separated list of country keys to include (e.g. 'united-kingdom,mexico,united-states-of-america'). Omitting returns cities from default set of countries.
api.parse.bot/scraper/3fe605e6-cddf-426b-a50d-77f32c3498b4/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/3fe605e6-cddf-426b-a50d-77f32c3498b4/get_congestion_rankings?limit=5&countries=united-kingdom' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace tomtom-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: TomTom Traffic Index — bounded, re-runnable; every call capped."""
from parse_apis.tomtom_traffic_index_api import TomTom, CityNotFound

client = TomTom()

# Global congestion rankings filtered to one country — limit caps total items.
for city in client.cities.list(countries="united-kingdom", limit=5):
    print(city.name, city.congestion_score, f"rank={city.rank}")

# Country-scoped rankings via the constructible Country resource.
uk = client.country(name="united-kingdom")
for city in uk.rankings(limit=3):
    print(city.name, city.congestion_score)

# Drill into one city's detailed traffic data via .first() then .details().
top_city = uk.rankings(limit=1).first()
if top_city:
    detail = top_city.details()
    metrics = detail.data.all
    print(detail.city, detail.year)
    print(f"  AM peak: hour={metrics.am.time}, congestion={metrics.am.c}%")
    print(f"  PM peak: hour={metrics.pm.time}, congestion={metrics.pm.c}%")
    for month in metrics.monthly[:2]:
        print(f"  {month.time}: {month.c}%")

# Typed error handling for a city that doesn't exist.
try:
    bad = client.city(key="nonexistent-city-xyz")
    bad.details()
except CityNotFound as exc:
    print(f"City not found: {exc.city}")

print("exercised: cities.list / country.rankings / city.details / CityNotFound")
All endpoints · 3 totalmissing one? ·

Get global city congestion rankings across multiple countries. Returns cities sorted by congestion score (highest first). Each city includes its key, name, country, AM/PM metrics, congestion score, and rank. When no countries are specified, defaults to the first 10 countries alphabetically from the internal list. Fetching many countries is expensive — one HTTP round-trip per country.

Input
ParamTypeDescription
limitintegerMaximum number of cities to return in the ranking.
countriesstringComma-separated list of country keys to include (e.g. 'united-kingdom,mexico,united-states-of-america'). Omitting returns cities from default set of countries.
Response
{
  "type": "object",
  "fields": {
    "year": "Data year string, currently '2025'",
    "ranking": "Array of city objects sorted by congestion_score descending, each containing key, name, country, ampm metrics object, congestion_score, and rank",
    "total_cities": "Total number of cities found across all queried countries"
  },
  "sample": {
    "data": {
      "year": "2025",
      "ranking": [
        {
          "key": "belfast",
          "ampm": {
            "c": 98.9,
            "s": 19498071.74,
            "v": 22.4,
            "fv": 44.7
          },
          "name": "Belfast",
          "rank": 1,
          "country": "United Kingdom",
          "congestion_score": 98.9
        }
      ],
      "total_cities": 34
    },
    "status": "success"
  }
}

About the TomTom API

What the API covers

The TomTom Traffic Index API surfaces congestion data from TomTom's annual Traffic Index, which benchmarks cities on how much extra travel time congestion adds to a typical trip. The API covers three scopes: global multi-country rankings, single-country rankings, and full detail for an individual city.

Endpoint breakdown

get_congestion_rankings accepts an optional countries parameter (comma-separated country keys such as united-kingdom,mexico) and an optional limit. It returns a ranking array where each object includes key, name, country, congestion_score, rank, and an ampm metrics object. The total_cities field tells you how many cities matched across all queried countries.

get_country_rankings takes a required country key and an optional limit, returning the same city-object structure scoped to one country. The response includes the country name in title case alongside the ranking array and total_cities count.

get_city_details takes a required city key (e.g. london, new-york-ny) obtained from either ranking endpoint. The data object contains a nested all key with base, am, pm, and ampm sub-objects — each carrying fields c (congestion percentage), v, fv, and s — plus monthly trend data covering the full year.

Data freshness and keys

All three endpoints return a year field currently set to 2025. City and country keys follow a lowercase hyphenated format; the ranking endpoints are the canonical source for valid keys to pass into get_city_details.

Reliability & maintenanceVerified

The TomTom API is a managed, monitored endpoint for tomtom.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when tomtom.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official tomtom.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
1d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Building a city comparison tool that ranks metros by congestion_score across selected countries.
  • Plotting monthly traffic trend data from get_city_details to visualize seasonal congestion patterns.
  • Filtering get_country_rankings by country to identify the most congested cities in a single market.
  • Feeding AM peak congestion percentages into a commute-cost calculator for employee relocation analysis.
  • Powering a real estate research dashboard that surfaces traffic conditions for cities under consideration.
  • Generating country-level congestion league tables for logistics and fleet planning reports.
  • Alerting users when a city's congestion_score rank changes between annual index releases.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does TomTom offer an official developer API?+
Yes. TomTom provides an official developer platform at developer.tomtom.com covering routing, maps, traffic flow, and incidents. The Parse API specifically surfaces the TomTom Traffic Index annual rankings and city detail data, which is a separate dataset from the real-time traffic flow API.
What does the `ampm` metrics object contain in the ranking endpoints versus `get_city_details`?+
In the ranking endpoints (get_congestion_rankings and get_country_rankings), each city object includes a summary ampm metrics object alongside congestion_score and rank. In get_city_details, the data.all key expands this into separate am, pm, ampm, and base sub-objects, each with fields for congestion percentage (c), plus v, fv, and s values, and adds monthly trend data.
Does the API cover real-time or historical traffic data beyond the annual index?+
Not currently. The API covers the 2025 TomTom Traffic Index, which is an annual snapshot — endpoints return yearly congestion scores, AM/PM peak metrics, and monthly trend data for that index year. Real-time traffic flow or multi-year historical comparison is not included. You can fork this API on Parse and revise it to add endpoints pulling from additional index years or real-time sources.
How do I get a valid city key to use with `get_city_details`?+
City keys follow a lowercase hyphenated format (e.g. london, new-york-ny, mexico-city). The reliable way to retrieve valid keys is to call get_congestion_rankings or get_country_rankings first and read the key field from each city object in the ranking array.
Is there pagination support for the ranking endpoints?+
The ranking endpoints accept a limit parameter to cap how many cities are returned, but there is no offset or cursor-based pagination. If you need cities beyond the default set, increase limit or filter by specific countries. You can fork the API on Parse and revise it to add offset-based pagination if your use case requires iterating through large result sets.
Page content last updated . Spec covers 3 endpoints from tomtom.com.
Related APIs in Maps GeoSee all →
timeout.com API
Discover restaurants, events, attractions, and city guides across multiple locations with the Time Out API. Search for things to do, browse upcoming events and movies, explore new restaurant openings, find hotels, and access curated content like Time Out Market recommendations and cultural listings.
trends.google.com API
Discover what's trending right now in any country by accessing the top search topics with real-time search volume, growth rates, and related queries. Stay informed on trending categories and see which searches are gaining the most momentum in your target markets.
beta.trademap.org API
Analyze international trade patterns by accessing comprehensive goods and services trade statistics, time series data, and trade indicators across countries and product classifications. Track trade flows using standardized HS and EBOPS product codes to compare performance metrics and coverage across different markets and time periods.
culturetrip.com API
Discover travel inspiration and plan your next adventure by browsing curated travel articles, destination guides, and bookable trips organized by region and city. Search for specific destinations, compare trip dates and prices, and explore popular cities to find the perfect getaway.
iqair.com API
Monitor real-time and historical air quality data worldwide, including global rankings, city-specific pollution details, and map visualizations. Search live city rankings and access comprehensive air quality information to track pollution levels across the globe.
ratp.fr API
Monitor real-time traffic conditions and service disruptions across Paris's RATP and RER networks to plan your commute efficiently. Get instant updates on line statuses, delays, and service alerts for all metro and regional rail lines.
trademap.org API
Access comprehensive global trade statistics including bilateral trade flows, product exports by country, and historical trade indicators to analyze international commerce trends. Monitor trade data availability and retrieve time series information to track how specific products and countries perform in the global market.
citymapper.com API
Get real-time transit information including live stop arrivals, service status, and line details across major cities worldwide. Search for nearby transit options and stay informed with service alerts to plan your commute efficiently.