GET Async Batch Job Results enterprise only
Note
This is a synchronous call that streams CSV result data with chunked transfer-encoding.
The batch job results service allows you to retrieve the geocoded results for a completed batch job. Results are returned as CSV data with detailed location information for each processed record.
Resource URL
https://www.mapquestapi.com/geocoding/v1/batch/jobs/{jobId}/results
Resource Information
| Response Formats | CSV |
| Authentication | Yes (Requires Key) |
| Rate Limited | Yes |
Request Parameters
| Request Parameter | Description | Required |
|---|---|---|
| key | The API Key, which is needed to make requests to MapQuest services. | Yes |
Note: The jobId is specified in the URL path, not as a query parameter.
Response Format
The response is returned as:
- Content-Type:
text/plain - Transfer-Encoding:
chunked - Format: CSV with pipe (
|) delimited fields
CSV Field Descriptions
| Field | Type | Description |
|---|---|---|
recId | string | Record identifier (matches input recId or auto-generated) |
seqNumber | number | Sequence number of the result |
seqLength | number | Total length of the sequence |
position | string | Latitude and longitude coordinates in format (lat,lng) |
address | string | Formatted address string |
title | string | Display title for the location |
timezone | string | IANA time zone identifier for the location, e.g. America/Denver, if available. Only present when the job was created with includeTimezone=true; empty when time zone data is unavailable for the record |
timezoneOffset | string | The location's current offset from UTC in ±HH:MM format, accounting for daylight saving time at the time the job ran, if available. Only present when the job was created with includeTimezone=true; empty when time zone data is unavailable for the record |
Example Request
bash
curl -X GET "https://www.mapquestapi.com/geocoding/v1/batch/jobs/abc123-def456-ghi789/results?key=YOUR_API_KEY"Example Response
The response is a CSV stream with the following format:
csv
recId|seqNumber|seqLength|position|address|title
1|1|1|(39.74001,-104.99202)|Denver, CO, United States|Denver, CO, United States
2|1|1|(40.01574,-105.27924)|Boulder, CO, United States|Boulder, CO, United States
3|1|1|(39.19002,-106.81818)|Aspen, CO, United States|Aspen, CO, United StatesWhen the job was created with includeTimezone=true, two additional columns are appended. The columns are present on every row, and are empty for any record where time zone data is unavailable:
csv
recId|seqNumber|seqLength|position|address|title|timezone|timezoneOffset
1|1|1|(39.74001,-104.99202)|Denver, CO, United States|Denver, CO, United States|America/Denver|-06:00
2|1|1|(40.01574,-105.27924)|Boulder, CO, United States|Boulder, CO, United States|America/Denver|-06:00
3|1|1|(39.19002,-106.81818)|Aspen, CO, United States|Aspen, CO, United States|America/Denver|-06:00Important Notes
- Blocking Call: This is a synchronous request that returns immediately with results
- Authentication: Same API key as other endpoints, passed as query parameter
- Job ID: The job ID is passed in the URL path, not as a query parameter
- Job Status: Results are only available when the job status is
completed - Streaming Response: Results are streamed with chunked transfer-encoding for large datasets
- CSV Format: Results are returned as pipe-delimited CSV data
- Time Zone Columns: The
timezoneandtimezoneOffsetcolumns are only present when the job was created withincludeTimezone=true. If unavailable for a record, these columns are left empty - Content-Type: Response uses
text/plaincontent type - Error Handling: If the job failed or is still processing, this endpoint will return an error