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:
- Constants and 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://{baseURL}/origindestination/{versionNumber}/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 |
|---|---|
| The base URL for calling TomTom services. Value: |
| Version of the service to call. Value: The current value is |
| 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. |
| Job name, given for the user’s convenience. |
| Email of the analysis’ owner. |
| Job status . One of the following values:
|
| Current value of the job progress (0-100). |
| Job creation time in |
| Time definition of the analysis. |
| How many trips were counted. Updates when the analysis is in progress. |
| Date and time start of the analysis in the format:
|
| Date and time end of the analysis in the format:
|
| Estimated time in seconds to change the analysis status from
|
| Type of the created analysis. |
| Map type used during the analysis . Supported types are: |
| URL to the regions defined in the analysis. Your API Key needs to be added to the URL. |
| List of the results available only
when the analysis has a status of |
| Object containing links to aggregated histogram statistics CSV files.
Only present when |
| URL to download the aggregated durations histogram CSV file. |
| URL to download the aggregated lengths histogram CSV file. |
| URL to download the aggregated average speeds histogram CSV file. |
Response example
{ "analysisInfo": { "id": "4521660963097771615", "name": "Example analysis", "type": "FLOW_MATRIX", "owner": "user@example.com", "developerId": "user@example.com", "status": "ACCEPTED", "creationTime": "2026-04-22T11:49Z", "startAnalysisTime": "2026-04-22T11:49Z", "endAnalysisTime": "2026-04-22T11:55Z", "tripsCounted": "1902537", "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": "WHOLE" }, "tripStats": true, "aggregatedTripStats": true, "dataSources": "ALL", "passMatrix": true, "map": { "type": "OPEN_DSEG", "version": "2026.04.0900" }, "mapMatchOption": "AUTO", "isMapMatched": true, "mapType": "ORBIS" }, "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" } ], "aggregatedHistogramStats": { "durationsLink": "{durationsLink}", "lengthsLink": "{lengthsLink}", "avgSpeedsLink": "{avgSpeedsLink}" }}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. |
| URL to the partial analysis trips lengths histogram result. Your API Key needs to be added to the URL. |
| URL to the partial analysis trips start hour of day histogram result. Your API Key needs to be added to the URL. |
| URL to the partial analysis trips average speeds histogram result. Your API Key needs to be added to the URL. |
| Trips result file size in megabytes. 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 to exclude from the given range in |
| Time range of the result. |
| Start time of the time range in |
| End time of the time range in |
Trips response structure
Field | Description |
|---|---|
| Array of links between regions. |
Response interpretation example
{ "links": [[0,0,0,100], [0,1,1,200], ...]}The response contains a list of ‘links’. Each link contains information about trips between regions and looks like this:
[Origin region index (number), Destination region index (number), Via region index (number), Amount of trips (number)]
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 |