Analysis Preview
Purpose
Get a preview of the analysis by sending a GET request.
Request data
HTTPS Method: GET
For ease of viewing and identification:
- Parameters enclosed in curly brackets { } must be replaced with their values.
- Please see the following Request parameters section with the required and optional parameters tables for their values. The generic request format is as follows.
Format
https://api.tomtom.com/origindestination/1/analysis/flowmatrix/{id}?key={Your_API_Key}Example
https://api.tomtom.com/origindestination/1/analysis/flowmatrix/512?key={Your_API_Key}Request parameters
Required parameters | Description |
|---|---|
| Analysis number id. Value: The analysis number id. |
| Authorization key for access to the API. Value: Your valid API Key. |
Response data
Response structure
Field | Description |
|---|---|
| Information about the analysis. |
| Analysis number id, returned as a string. |
| Job name, given for the user’s convenience. |
| Analysis type. Always |
| Version of the analysis. It decides the shape of every result of this analysis, so read it before parsing them. |
| Job status. One of the following values:
|
| Current value of the job progress (0-100). |
| Estimated time in seconds to change the analysis status from
|
| Job creation time in |
| Date and time start of the analysis in the format:
|
| Date and time end of the analysis in the format:
|
| Time definition of the analysis. |
| Time zone as a
TZ database name. For example |
| Days of the week of the analysis. |
| List of date ranges of the analysis. |
| List of time ranges of the analysis. A trip is counted in a time range if it entered its origin region within that range. |
| Data sources the analysis runs on. |
| Whether histogram trip statistics were enabled for the analysis. |
| Whether the service actually map-matched the traces of this analysis. |
| The map used for map-matching, with |
| URL to the regions defined in the analysis. Your API Key needs to be added to the URL. |
| List of the results, one entry per date range and time range
combination. Available only when the analysis has a status of |
Response example
Replace {map_version} with the map version the analysis actually ran on; the value is returned by
the service and changes with the analyzed period.
{ "analysisInfo": { "id": "4521660963097771615", "name": "Example analysis", "type": "FLOW_MATRIX", "status": "ACCEPTED", "currentProgress": 100, "estimatedDuration": 360, "creationTime": "2026-04-22T11:49Z", "startAnalysisTime": "2026-04-22T11:49Z", "endAnalysisTime": "2026-04-22T11:55Z", "timeDefinition": { "dateRanges": [ { "startDate": "2026-04-06", "endDate": "2026-04-12", "exclusions": [], "daysOfWeek": ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"] } ], "timeRanges": [ { "startTime": "00:00", "endTime": "00:00" } ], "zoneId": "Europe/Warsaw", "daysOfWeek": ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"], "timeRangeCondition": "ENTERS_REGION" }, "tripStats": true, "dataSources": "ALL", "map": { "type": "OPEN_DSEG", "version": "{map_version}" }, "mapMatchOption": "AUTO", "isMapMatched": true, "mapType": "ORBIS", "analysisVersion": 2 }, "regionsLink": "https://api.tomtom.com/origindestination/rest/analysis/4521660963097771615/regions?version=...", "results": [ { "dateRange": { "startDate": "2026-04-06", "endDate": "2026-04-12", "exclusions": [], "daysOfWeek": ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"] }, "timeRange": { "startTime": "00:00", "endTime": "00:00" }, "tripsResultFileSize": 1.63e-4, "tripsWholeResultLink": "https://api.tomtom.com/origindestination/rest/analysis/flowmatrix/.../result/trips?dateRange=0&timeRange=0", "tripsPartialResultLink": "https://api.tomtom.com/origindestination/rest/analysis/flowmatrix/.../result/partial/trips?dateRange=0&timeRange=0", "hoursOfDayHistogramPartialResultLink": "https://api.tomtom.com/origindestination/rest/analysis/flowmatrix/.../result/partial/histogram?dateRange=0&timeRange=0&type=HOURS_OF_DAY", "lengthsHistogramPartialResultLink": "https://api.tomtom.com/origindestination/rest/analysis/flowmatrix/.../result/partial/histogram?dateRange=0&timeRange=0&type=LENGTHS", "durationsHistogramPartialResultLink": "https://api.tomtom.com/origindestination/rest/analysis/flowmatrix/.../result/partial/histogram?dateRange=0&timeRange=0&type=DURATIONS", "avgSpeedsHistogramPartialResultLink": "https://api.tomtom.com/origindestination/rest/analysis/flowmatrix/.../result/partial/histogram?dateRange=0&timeRange=0&type=AVG_SPEEDS" } ]}Response link structure
Field | Description |
|---|---|
| URL to the whole analysis trips result. |
| URL to the partial analysis trips result. Your API Key needs to be added to the URL. |
| URL to the partial analysis trips duration histogram result. Your API
Key needs to be added to the URL. Only present when |
| URL to the partial analysis trips lengths histogram result. Your API Key
needs to be added to the URL. Only present when |
| URL to the partial analysis trips hour of day histogram result.
Your API Key needs to be added to the URL. Only present when |
| URL to the partial analysis trips average speeds histogram result.
Your API Key needs to be added to the URL. Only present when |
| Trips result file size in megabytes, as a decimal number. It will help you decide if you want to download the whole or a partial result. |
| Date range of the result. |
| Start date of the date range in |
| End date of the date range in |
| List of dates excluded from the given range in |
| Days of the week of this date range. Only present when the date range declared its own list. |
| Date range name. Only present when the date range was given one. |
| Time range of the result. |
| Start time of the time range in |
| End time of the time range in |
Errors
If there is an error in the supplied parameters or any other internal problem, an error response is generated in the requested format.
Response codes
Code | Meaning & possible causes |
|---|---|
| OK |
| Bad Request |
| Unauthorized |
| Forbidden |
| Not Found |