> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.emtelligent.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.emtelligent.com/_mcp/server.

# Get job result

GET https://ocr.emtelligent.com/jobs/{job_id}/result

The OCR result of a job in state ``done``.

``timings=true`` adds ``page_timings``, the same object that the job
status endpoint returns.

Reference: https://docs.emtelligent.com/ocr/api/get-job-result

## Authentication

- `Authorization` header (bearer token, required) — An emtelligent API key, sent as `Authorization: Bearer <key>`.

## Request

### Path parameters

- `job_id` (string, required)

### Query parameters

- `timings` (boolean, optional, default: false) — Add `page_timings` to the response.

## Response

### 200

Successful Response

- `job_id` (string, required)
- `filename` (string, required)
- `total_pages` (integer, required)
- `failed_pages` (list of integer, required)
- `pages` (list of map from string to any, required)
- `page_timings` (PageTimingReport, optional, nullable) — Per-page timings for the render and OCR stages.

## Errors

### 401 Unauthorized Error

The bearer token is missing, unknown or expired, or the key does not have the `ocr:process` scope.

- `detail` (string, required)

### 402 Payment Required Error

Your organization is suspended or out of credit.

- `detail` (string, required)

### 404 Not Found Error

No job with this ID exists in your organization.

- `detail` (string, required)

### 409 Conflict Error

The job is not `done` yet. Poll the job status.

- `detail` (string, required)

### 410 Gone Error

The result will never be available. The job failed, or its results were deleted or are past the retention period.

- `detail` (string, required)

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

### 503 Service Unavailable Error

The service cannot verify the key at this time. Retry later.

- `detail` (string, required)

## Types

### PageTimingReport

Per-page timings for the render and OCR stages.

- `render` (PageTimingStats, optional) — Distribution of per-page durations for one stage, in milliseconds. ``count`` is the number of pages that finished the stage. The other fields are null until at least one page finishes.
- `ocr` (PageTimingStats, optional) — Distribution of per-page durations for one stage, in milliseconds. ``count`` is the number of pages that finished the stage. The other fields are null until at least one page finishes.
- `span_ms` (double, optional, nullable)
- `pages` (list of PageTiming, optional)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### PageTimingStats

Distribution of per-page durations for one stage, in milliseconds. ``count`` is the number of pages that finished the stage. The other fields are null until at least one page finishes.

- `count` (integer, optional, default: 0)
- `total_ms` (double, optional, default: 0)
- `min_ms` (double, optional, nullable)
- `max_ms` (double, optional, nullable)
- `mean_ms` (double, optional, nullable)
- `p50_ms` (double, optional, nullable)
- `p95_ms` (double, optional, nullable)
- `slowest_page` (integer, optional, nullable)

### PageTiming

One page's timeline. The ``*_start_ms`` and ``*_end_ms`` values are offsets in milliseconds from the start of the earliest page work in the job. The other ``*_ms`` values are durations. A field is null for a stage that the page has not finished.

- `page` (integer, required)
- `render_start_ms` (double, optional, nullable)
- `render_end_ms` (double, optional, nullable)
- `render_ms` (double, optional, nullable)
- `ocr_start_ms` (double, optional, nullable)
- `ocr_end_ms` (double, optional, nullable)
- `ocr_ms` (double, optional, nullable)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "job_id": "string",
  "filename": "string",
  "total_pages": 1,
  "failed_pages": [
    1
  ],
  "pages": [
    {}
  ],
  "page_timings": {
    "render": {
      "count": 0,
      "total_ms": 0,
      "min_ms": 1.1,
      "max_ms": 1.1,
      "mean_ms": 1.1,
      "p50_ms": 1.1,
      "p95_ms": 1.1,
      "slowest_page": 1
    },
    "ocr": {
      "count": 0,
      "total_ms": 0,
      "min_ms": 1.1,
      "max_ms": 1.1,
      "mean_ms": 1.1,
      "p50_ms": 1.1,
      "p95_ms": 1.1,
      "slowest_page": 1
    },
    "span_ms": 1.1,
    "pages": [
      {
        "page": 1,
        "render_start_ms": 1.1,
        "render_end_ms": 1.1,
        "render_ms": 1.1,
        "ocr_start_ms": 1.1,
        "ocr_end_ms": 1.1,
        "ocr_ms": 1.1
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://ocr.emtelligent.com/jobs/job_id/result"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://ocr.emtelligent.com/jobs/job_id/result';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://ocr.emtelligent.com/jobs/job_id/result"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://ocr.emtelligent.com/jobs/job_id/result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://ocr.emtelligent.com/jobs/job_id/result")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://ocr.emtelligent.com/jobs/job_id/result', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://ocr.emtelligent.com/jobs/job_id/result");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://ocr.emtelligent.com/jobs/job_id/result")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```