Discover/tomtom.com API
live

tomtom.com APItomtom.com

Access TomTom Traffic Index data via API. Get global city congestion rankings, AM/PM peak scores, and monthly traffic trends for cities worldwide.

Endpoints
3
Updated
4mo ago
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.
Use it in your codegrab 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'
All endpoints · 3 totalclick to expand

Get global city congestion rankings across multiple countries. Returns cities sorted by congestion score (highest first). When no countries are specified, defaults to the first 10 countries alphabetically from the internal list.

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, 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.com API

The TomTom Traffic Index API exposes congestion data for cities worldwide across 3 endpoints, covering global rankings, per-country rankings, and detailed city-level traffic metrics. The get_city_details endpoint returns base congestion scores alongside AM and PM peak breakdowns and a full 12-month trend array, giving developers structured access to the same index TomTom publishes annually.

Endpoints and Coverage

The API provides three endpoints. get_congestion_rankings returns a globally sorted list of cities by congestion score — a percentage indicating how much longer an average trip takes compared to free-flow conditions. You can scope it with a comma-separated countries parameter (e.g. united-kingdom,mexico,united-states-of-america) and cap results with limit. Without a countries filter, it defaults to the first 10 countries alphabetically from the internal list. The response includes year, total_cities, and a ranking array where each city object carries key, name, country, congestion_score, and AM/PM metrics.

Country and City Depth

get_country_rankings narrows results to one country at a time using a required country parameter in lowercase hyphenated format (e.g. france, united-states-of-america). It returns the same city-level fields sorted by congestion_score descending, plus a total_cities count for that country. For deeper analysis, get_city_details accepts a city key (e.g. london, new-york-ny) and returns a nested data object containing base, am, pm, and ampm metrics, as well as a monthly array covering traffic trends across the year.

Data Shape and Freshness

All three endpoints return a year field — currently '2025' — reflecting the Traffic Index edition the data corresponds to. City keys follow a consistent lowercase hyphenated convention across all endpoints, so a key value from get_congestion_rankings can be passed directly to get_city_details. The monthly array in city details enables trend visualization, showing how congestion shifts across calendar months rather than a single annual average.

Common use cases
  • Rank cities by congestion score to inform corporate relocation or office siting decisions
  • Compare AM vs PM peak congestion across cities in a specific country using get_country_rankings
  • Build a monthly traffic trend chart for a target city using the monthly array from get_city_details
  • Filter global rankings to a custom set of countries to benchmark regional traffic conditions
  • Enrich logistics route planning tools with city-level congestion scores and peak-hour differentials
  • Power a public dashboard showing the most and least congested cities by country
  • Support urban planning research by pulling structured annual congestion index data by city
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 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 have an official developer API?+
Yes. TomTom offers an official developer platform at developer.tomtom.com, which includes Traffic Flow, Routing, and Maps APIs. Those APIs require a TomTom API key and are separate from this Parse API, which surfaces the annual Traffic Index congestion rankings data.
What does `get_city_details` return beyond a single congestion score?+
It returns a data object with nested base, am, pm, and ampm breakdowns, along with a monthly array that shows how congestion levels shift across the year. The year field indicates which Traffic Index edition the figures belong to.
What happens if I call `get_congestion_rankings` without specifying the `countries` parameter?+
The endpoint defaults to the first 10 countries alphabetically from the internal country list. To control which countries appear, pass a comma-separated string to the countries parameter — for example, united-states-of-america,france,germany.
Does the API cover historical Traffic Index data from previous years?+
Not currently. All three endpoints return data for the current edition, indicated by the year field set to '2025'. You can fork this API on Parse and revise it to add endpoints that retrieve data from prior index years if that coverage is available on the source.
Can I retrieve real-time or live traffic conditions through this API?+
No real-time traffic data is exposed. The API covers the annual TomTom Traffic Index — a ranked, aggregated congestion dataset — rather than live flow or incident data. You can fork this API on Parse and revise it to target live traffic endpoints if that data shape fits your use case.
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.