# Context.dev — Extract Structured Data

Get Context.Dev Extract Structured Data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Context-dev, pass parameters such as maxDepth, maxPages, schema, and retrieve structured data including title, returned price text field, reported status, returned age ms field, and returned credits consumed field to search interfaces and source review, and integration reference.

Documentation: https://openany.si/context-dev/context-dev-extract-structured-data/6fef4136-9846-47f9-bedf-a13fcc111a21/
API ID: 6fef4136-9846-47f9-bedf-a13fcc111a21
Provider: context-dev
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/web/extract
Page update time: 2026-12-03T02:49:45.599Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:44.831Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "usage",
  "priceMicroUsd": "2000",
  "rounding": "ceil",
  "unit": "credit",
  "unitQuantity": "1"
}
```

## Usage and limits
## Context.dev — Extract Structured Data API

Extract Structured Data with the Context.dev API. Provide url in body, schema in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Search interfaces and source review**: Keep returned sources and query context together.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `data.title` | Title |
| `data.priceText` | Returned price text field |
| `status` | Reported status |
| `cache_metadata.status` | Reported status |
| `cache_metadata.age_ms` | Returned age ms field |
| `key_metadata.credits_consumed` | Returned credits consumed field |
| `metadata.maxCrawlDepth` | Returned max crawl depth field |
| `metadata.numBlocked` | Returned num blocked field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Context.dev — Extract Structured Data request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "properties": {
        "actions": {
          "items": {
            "discriminator": {
              "mapping": {
                "perform": "#/components/schemas/WebScrapePerformAction",
                "scroll": "#/components/schemas/WebScrapeScrollAction",
                "wait": "#/components/schemas/WebScrapeWaitAction"
              },
              "propertyName": "do"
            },
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "do": {
                    "enum": [
                      "wait"
                    ],
                    "type": "string"
                  },
                  "timeMs": {
                    "maximum": 30000,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "do",
                  "timeMs"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string"
                  },
                  "do": {
                    "enum": [
                      "perform"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "do",
                  "action"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "anyOf": [
                      {
                        "maximum": 100000,
                        "minimum": 1,
                        "type": "integer"
                      },
                      {
                        "enum": [
                          "viewport",
                          "max"
                        ],
                        "type": "string"
                      }
                    ]
                  },
                  "container": {
                    "maxLength": 2000,
                    "minLength": 1,
                    "type": "string"
                  },
                  "direction": {
                    "enum": [
                      "up",
                      "down",
                      "left",
                      "right"
                    ],
                    "type": "string"
                  },
                  "do": {
                    "enum": [
                      "scroll"
                    ],
                    "type": "string"
                  },
                  "maxScrolls": {
                    "maximum": 50,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "do"
                ],
                "type": "object"
              }
            ]
          },
          "maxItems": 5,
          "type": [
            "array",
            "null"
          ]
        },
        "factCheck": {
          "default": false,
          "type": "boolean"
        },
        "followSubdomains": {
          "default": false,
          "type": "boolean"
        },
        "includeFrames": {
          "default": false,
          "type": "boolean"
        },
        "instructions": {
          "maxLength": 2000,
          "type": "string"
        },
        "maxAgeMs": {
          "default": 604800000,
          "maximum": 2592000000,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "maxDepth": {
          "minimum": 0,
          "type": "integer"
        },
        "maxPages": {
          "default": 5,
          "maximum": 50,
          "minimum": 1,
          "type": "integer"
        },
        "pdf": {
          "additionalProperties": false,
          "default": {
            "shouldParse": true
          },
          "properties": {
            "end": {
              "minimum": 1,
              "type": "integer"
            },
            "shouldParse": {
              "default": true,
              "type": "boolean"
            },
            "start": {
              "minimum": 1,
              "type": "integer"
            }
          },
          "type": "object"
        },
        "schema": {
          "additionalProperties": {},
          "type": "object"
        },
        "settleAnimations": {
          "default": false,
          "type": "boolean"
        },
        "stopAfterMs": {
          "default": 80000,
          "maximum": 110000,
          "minimum": 10000,
          "type": "integer"
        },
        "tags": {
          "items": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 20,
          "type": "array"
        },
        "timeoutOpts": {
          "additionalProperties": false,
          "properties": {
            "behavior": {
              "default": "fail",
              "enum": [
                "fail",
                "return-partial"
              ],
              "type": "string"
            },
            "milliseconds": {
              "maximum": 300000,
              "minimum": 1000,
              "type": "integer"
            }
          },
          "required": [
            "milliseconds"
          ],
          "type": "object"
        },
        "url": {
          "format": "uri",
          "minLength": 1,
          "type": "string"
        },
        "waitForMs": {
          "maximum": 30000,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "zdr": {
          "default": "disabled",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string"
        }
      },
      "required": [
        "url",
        "schema"
      ],
      "type": "object",
      "description": "Crawl a website and return JSON matching a caller-supplied JSON Schema."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cache_metadata": {
      "type": "object",
      "properties": {
        "age_ms": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "priceText": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    },
    "key_metadata": {
      "type": "object",
      "properties": {
        "credits_consumed": {
          "type": "integer"
        }
      }
    },
    "metadata": {
      "type": "object",
      "properties": {
        "maxCrawlDepth": {
          "type": "integer"
        },
        "numBlocked": {
          "type": "integer"
        },
        "numFailed": {
          "type": "integer"
        },
        "numSkipped": {
          "type": "integer"
        },
        "numSucceeded": {
          "type": "integer"
        },
        "numUrls": {
          "type": "integer"
        }
      }
    },
    "request_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "urls_analyzed": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/context-dev/v1/web/extract' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "maxDepth": 0,
  "maxPages": 1,
  "schema": {
    "additionalProperties": false,
    "properties": {
      "priceText": {
        "description": "Price text including currency as printed; null if absent",
        "type": [
          "string",
          "null"
        ]
      },
      "title": {
        "description": "Exact book title printed on the page",
        "type": [
          "string",
          "null"
        ]
      }
    },
    "required": [
      "title",
      "priceText"
    ],
    "type": "object"
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "cache_metadata": {
    "age_ms": 12682395,
    "status": "hit"
  },
  "data": {
    "priceText": "£51.77",
    "title": "A Light in the Attic"
  },
  "key_metadata": {
    "credits_consumed": 10
  },
  "metadata": {
    "maxCrawlDepth": 0,
    "numBlocked": 0,
    "numFailed": 0,
    "numSkipped": 0,
    "numSucceeded": 1,
    "numUrls": 1
  },
  "request_id": "6e1701d4-1675-474b-a39a-15f6d065ed76",
  "status": "ok",
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
  "urls_analyzed": [
    "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide url in body (string); schema in body (object). Keep identifiers and URLs in the formats documented for this implementation.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- context-dev: https://openany.si/context-dev/context-dev-extract-structured-data/6fef4136-9846-47f9-bedf-a13fcc111a21/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
