DocumentationGET /ine/{request_id}

GET /ine/{request_id}

GET parameters, stored-job states, and result expiration.

On this page
GET https://ocr.ecostudios.dev/api/v3/ine/{request_id}

GET returns the current stored state without starting, resuming, or repeating extraction. It consumes no additional reading unit.

Request

ParameterLocationContract
request_idPathJob identifier returned by the API.
X-API-KeyHeaderActive key for the account that owns the job.
AcceptHeaderOptional application/json.

No request body or Idempotency-Key is required.

Node.js 22+; TypeScript with Node.js types; Python 3 with requests. cURL saves the body in INE_RESULT_PATH and headers in INE_HEADERS_PATH, and prints only the HTTP status. The functions return the HTTP response without logging extracted data.

curl --silent --show-error --max-time 90 \
  --output "$INE_RESULT_PATH" \
  --dump-header "$INE_HEADERS_PATH" \
  --write-out '%{http_code}\n' \
  "https://ocr.ecostudios.dev/api/v3/ine/$INE_REQUEST_ID" \
  -H "X-API-Key: $INE_API_KEY" \
  -H 'Accept: application/json'

Each example performs one request without automatic retries or redirect following. The client timeout is 90 seconds; Python requests applies it to connection and read inactivity, not a total wall-clock deadline. HTTP error responses remain available to the caller.

Processing state

202 processing includes Retry-After: 2, a relative Location, and status_url: "/api/v3/ine/{request_id}". This is a stored state report, not a durable queue acknowledgment.

A job with an unconfirmed submission can transition from 202 to 409 submission_unknown. Failed and expired jobs do not become new jobs through GET or replay. Error actions distinguish temporary retrieval failures from terminal states.

Monthly quota, concurrency, rate limits, and pilot expiry do not block existing-result retrieval. Key revocation does.

Status handling

HTTPState or errorSemantics
200succeededCompleted reading with data, warnings, and expires_at.
202processingActive or pending job; next retrieval interval in Retry-After.
401invalid_api_keyAuthentication failed.
404not_foundUnknown job or job outside the authenticated account.
409submission_unknownOriginal submission state is unconfirmed.
410result_expiredResult-access window ended.
422Stored job failureTerminal state; subsequent retrieval does not restart extraction.
503Service or result unavailableTemporary or support-dependent condition identified by error.code and error.action.

An error's correlation request_id is not proof of a reserved job. Pre-reservation rejection can produce an identifier that returns 404 on GET.

Expiration

The access window is 23 hours from reservation. expires_at is its absolute deadline. Completion, GET, and replay do not extend this window.

Historical compatible results can have expires_at: null; the value does not imply indefinite retention. Jobs are shared across API versions, and /api/v3 projects the English representation without another extraction. Older extended results can omit data.address_parts and sources.address_parts; omitted objects represent unavailable parsed data.