Search Jobs
Purpose
Use this endpoint to list all of your jobs, or just filter out a part of them.
Request data
HTTPS method: GET
Constants and parameters enclosed in curly brackets { } must be replaced with their values.
URL format
https://{baseURL}/traffic/trafficstats/job/search/{versionNumber}?key={Your_API_Key}Request parameters
The following table describes all of the parameters that can be used in a request. Required parameters must be used or the call will fail. Optional parameters may be used.
| Required parameters | Description |
|---|---|
| Base URL for calling the API. |
| Service version number. |
| Authorization key for access to the API. |
Optional parameters | Description |
|---|---|
| Index of a page with jobs. Page counting starts from 0. When the number
of jobs matching the specified search criteria is greater than
|
| Numer of jobs included in the page. The last page may have less jobs. |
| Earliest date of requesting jobs (inclusive). |
| Latest date of requesting jobs (inclusive). |
| Earliest date of completing jobs (inclusive). |
| Latest date of completing jobs (inclusive). |
| Name of job(s). By default exact match is done.
|
| Id of a job. |
| The type of jobs.
|
| The current state of jobs.
|
Request URL example
https://api.tomtom.com/traffic/trafficstats/job/search/1?key={Your_API_Key}&createdAfter=2018-01-01&createdBefore=2018-02-01&name=%London%&type=routeanalysis&state=DONEResponse data
Response example
{ "content": [ { "id": 123, "name": "London A501 weekdays", "type": "Route Analysis", "createdAt": "2018-01-02T10:22:33Z", "completedAt": "2018-01-02T11:28:22Z", "state": "DONE" }, { "id": 127, "name": "London A501 weekends", "type": "Route Analysis", "createdAt": "2018-01-02T10:18:47Z", "completedAt": "2018-01-02T11:24:07Z", "state": "DONE" }, { "id": 365, "name": "Waterloo Bridge in London City", "type": "Route Analysis", "createdAt": "2018-01-05T20:18:10Z", "completedAt": "2018-01-05T21:24:08Z", "state": "DONE" } ], "pageable": { "sort": { "sorted": true, "unsorted": false, "empty": false }, "pageSize": 20, "pageNumber": 0, "offset": 0, "paged": true, "unpaged": false }, "totalElements": 3, "last": false, "totalPages": 1, "first": true, "sort": { "sorted": true, "unsorted": false, "empty": false }, "numberOfElements": 20, "size": 20, "number": 0, "empty": false}Response fields - JSON
| Field | Description |
|---|---|
| The job ID. |
| Name of the job. |
| Type of the job.
|
| Job creation time. Timestamp in the format:
|
| Job completion time. Timestamp in the format:
|
| The job state:
|