oslew docs
Console
Menu

BatchaddressoperationId batch_results

GET/v1/batch/{id}/results

A finished job's answers, as JSON lines or as a table.

The answers are stored once, as lines, and converted on the way out. While the job is still running this is 409 with its progress, not 404: the job exists.

Send Authorization: Bearer sk_live_…. The key's plan must include theaddress product; which plans do.

Explained in Errors, Batch jobs and Clean a customer CSV.

Example

The answers as a table.

curl
curl -G "https://api.oslew.com/v1/batch/KNBDU4TD1RrnARXRKn0jodCf/results" \
  -H "Authorization: Bearer $GEO_API_KEY" \
  --data-urlencode 'format=csv'
Python
from oslew import Client

# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")

text = client.batch_results("KNBDU4TD1RrnARXRKn0jodCf", format="csv")
print(text)
TypeScript
import { Client } from "@oslew/client";

// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });

const text = await client.batch_results("KNBDU4TD1RrnARXRKn0jodCf", { format: "csv" });
console.log(text);
Response — HTTP/1.1 200 OK
id,q,name,lat,lon,precision,precision_m,confidence,tied_at_top,formatted,house_number,street,locality,region,postcode,country,source,release,license,error
cust-001,"Avenida Insurgentes Sur 1602, 03940",AVENIDA INSURGENTES SUR 1602,19.364069672979937,-99.18198831998704,rooftop,6.756173533775122,0.72772276,1,"AVENIDA INSURGENTES SUR 1602, Ciudad de México, 03940, MX",1602,AVENIDA INSURGENTES SUR,Ciudad de México,,03940,MX,overture-addresses,2026-08-19.0,"permissive (per-source, see record)",
cust-002,Museo Soumaya,Museo Soumaya,19.44062110346353,-99.2046595360656,poi,6.756173533775122,0.5,1,"Museo Soumaya, Miguel Hidalgo, CMX, MX",,,Miguel Hidalgo,CMX,,MX,overture-places,2026-08-19.0,CDLA-Permissive-2.0,
cust-003,"Paseo de la Reforma 222, Ciudad de México",AVENIDA PASEO DE LA REFORMA 222,19.42905748976803,-99.1621778772732,rooftop,6.756173533775122,0.352459,1,"AVENIDA PASEO DE LA REFORMA 222, Ciudad de México, 06600, MX",222,AVENIDA PASEO DE LA REFORMA,Ciudad de México,,06600,MX,overture-addresses,2026-08-19.0,"permissive (per-source, see record)",
cust-004,"Calle Madero 1, 06000",CALLE TACUBA 1,19.435964227232493,-99.1402969208942,rooftop,6.756173533775122,0.5,1,"CALLE TACUBA 1, Ciudad de México, 06000, MX",1,CALLE TACUBA,Ciudad de México,,06000,MX,overture-addresses,2026-08-19.0,"permissive (per-source, see record)",
cust-005,"Calle Que No Existe 99999, 03940",CALLE HERA,19.365038165737747,-99.17921975464016,street,6.756173533775122,0.5,13,"CALLE HERA, Ciudad de México, 03940, MX",,CALLE HERA,Ciudad de México,,03940,MX,overture-addresses,2026-08-19.0,"permissive (per-source, see record)",

A real response, captured from the service at commit b8f4bde-dirty.

Path

NameTypeDescription
id
pathrequired
string

Query

NameTypeDescription
format
query
string
jsonl | csv
default jsonl

Responses

200 — One line or one row per input row, in the input's order, carrying back the caller's own id.

application/x-ndjson

string

text/csv

string

With RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset(and their X-RateLimit-* aliases); see rate limits.

Refusals

Every refusal is a JSON object with an error string, except where noted.

401No key, or one that is unknown, revoked or suspended.
403The key's plan does not include this route's product, or the request is larger than the plan allows. The body names the plan that does.
404No job with that id.
409Not finished: running, queued, failed or cancelled. The body is BatchNotDone:
  • doneintegerrequired
  • errorstringrequired
    that job is running, queued, failed or cancelled.
  • remaining_sintegerrequired
  • rowsintegerrequired
429This product's bucket is empty: the key is going faster than its plan's sustained rate. Wait Retry-After seconds; nothing is used up. Carries Retry-After.
503The pod cannot reach the control plane and its entitlements are too old to trust. Retry.

A malformed query string or JSON body is refused by the framework before this route runs, in plain text rather than JSON; see errors.

More examples

Asking for the results before the job is done
curl
curl "https://api.oslew.com/v1/batch/KNBDU4TD1RrnARXRKn0jodCf/results" \
  -H "Authorization: Bearer $GEO_API_KEY"
Python
from oslew import Client

# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")

text = client.batch_results("KNBDU4TD1RrnARXRKn0jodCf")
print(text)
TypeScript
import { Client } from "@oslew/client";

// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });

const text = await client.batch_results("KNBDU4TD1RrnARXRKn0jodCf");
console.log(text);
Response
HTTP/1.1 409 Conflict
content-type: application/json
ratelimit-limit: 20
ratelimit-remaining: 99
ratelimit-reset: 1

{
  "done": 0,
  "error": "that job is queued",
  "remaining_s": 5,
  "rows": 5
}

A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.

The answers as JSON lines
curl
curl -G "https://api.oslew.com/v1/batch/KNBDU4TD1RrnARXRKn0jodCf/results" \
  -H "Authorization: Bearer $GEO_API_KEY" \
  --data-urlencode 'format=jsonl'
Python
from oslew import Client

# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")

text = client.batch_results("KNBDU4TD1RrnARXRKn0jodCf", format="jsonl")
print(text)
TypeScript
import { Client } from "@oslew/client";

// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });

const text = await client.batch_results("KNBDU4TD1RrnARXRKn0jodCf", { format: "jsonl" });
console.log(text);
Response — HTTP/1.1 200 OK
{"id":"cust-001","q":"Avenida Insurgentes Sur 1602, 03940","name":"AVENIDA INSURGENTES SUR 1602","lat":19.364069672979937,"lon":-99.18198831998704,"precision":"rooftop","precision_m":6.756173533775122,"confidence":0.72772276,"tied_at_top":1,"normalized":{"house_number":"1602","street":"AVENIDA INSURGENTES SUR","locality":"Ciudad de México","postcode":"03940","country":"MX","formatted":"AVENIDA INSURGENTES SUR 1602, Ciudad de México, 03940, MX"},"provenance":{"name":"overture-addresses","release":"2026-08-19.0","license":"permissive (per-source, see record)"}}
{"id":"cust-002","q":"Museo Soumaya","name":"Museo Soumaya","lat":19.44062110346353,"lon":-99.20465953606559,"precision":"poi","precision_m":6.756173533775122,"confidence":0.5,"tied_at_top":1,"normalized":{"locality":"Miguel Hidalgo","region":"CMX","country":"MX","formatted":"Museo Soumaya, Miguel Hidalgo, CMX, MX"},"provenance":{"name":"overture-places","release":"2026-08-19.0","license":"CDLA-Permissive-2.0"}}
{"id":"cust-003","q":"Paseo de la Reforma 222, Ciudad de México","name":"AVENIDA PASEO DE LA REFORMA 222","lat":19.429057489768034,"lon":-99.16217787727321,"precision":"rooftop","precision_m":6.756173533775122,"confidence":0.352459,"tied_at_top":1,"normalized":{"house_number":"222","street":"AVENIDA PASEO DE LA REFORMA","locality":"Ciudad de México","postcode":"06600","country":"MX","formatted":"AVENIDA PASEO DE LA REFORMA 222, Ciudad de México, 06600, MX"},"provenance":{"name":"overture-addresses","release":"2026-08-19.0","license":"permissive (per-source, see record)"}}
{"id":"cust-004","q":"Calle Madero 1, 06000","name":"CALLE TACUBA 1","lat":19.435964227232493,"lon":-99.1402969208942,"precision":"rooftop","precision_m":6.756173533775122,"confidence":0.5,"tied_at_top":1,"normalized":{"house_number":"1","street":"CALLE TACUBA","locality":"Ciudad de México","postcode":"06000","country":"MX","formatted":"CALLE TACUBA 1, Ciudad de México, 06000, MX"},"provenance":{"name":"overture-addresses","release":"2026-08-19.0","license":"permissive (per-source, see record)"}}
{"id":"cust-005","q":"Calle Que No Existe 99999, 03940","name":"CALLE HERA","lat":19.365038165737747,"lon":-99.17921975464016,"precision":"street","precision_m":6.756173533775122,"confidence":0.5,"tied_at_top":13,"normalized":{"street":"CALLE HERA","locality":"Ciudad de México","postcode":"03940","country":"MX","formatted":"CALLE HERA, Ciudad de México, 03940, MX"},"provenance":{"name":"overture-addresses","release":"2026-08-19.0","license":"permissive (per-source, see record)"}}

A real response, captured from the service at commit b8f4bde-dirty.

Rendered from the OpenAPI document at commit b8f4bde-dirty; the same document is served at/v1/openapi.json and generates both clients.