---
search:
  tags:
    - extract
    - POST
seo:
  description: >-
    Read one web page and return the values a JSON Schema asks for,… Reference
    for the POST /api/v1/tools/extract_values endpoint in the Fieldwork gateway
    API.
sidebar:
  label: extract_values
  badge: POST
title: extract_values
type: openapi-operation
---
Read one web page and return the values a JSON Schema asks for, such as dimensions, materials or prices. Use when you have a URL and know which fields you need. Do not use when you need the whole page text (use read_page), or when the values are spread across several sites (use research_question). Defaults to firecrawl. Set provider to choose another supported provider; Fieldwork never switches providers after an error.

`POST /api/v1/tools/extract_values`

**Request body** (`application/json`, required)

- `provider` (string)
- `timeout` (integer) — Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

Request body example:

```json
{
  "provider": "exa",
  "timeout": 1,
  "url": "http://example.com",
  "schema": {},
  "prompt": "string",
  "maxAge": 0,
  "maxCharacters": 1
}
```

**Responses**

- `200` — The provider that ran the call and its normalized result.
- `default` — A refusal or a failed call. Branch on error.code; never parse the message.

Response example, 200:

```json
{
  "provider": "exa",
  "requestId": "string",
  "result": {
    "data": null,
    "fields": [
      {
        "citations": [
          {
            "excerpts": [
              "string"
            ],
            "title": "string",
            "url": "string"
          }
        ],
        "confidence": null,
        "field": "string",
        "reasoning": "string"
      }
    ],
    "meta": {
      "requestId": "string",
      "usage": {
        "costUsd": 0,
        "credits": 0,
        "units": {
          "property1": 0,
          "property2": 0
        }
      },
      "warnings": [
        "string"
      ]
    },
    "truncated": [
      {
        "length": 0,
        "path": "string",
        "shown": 0
      }
    ]
  }
}
```
