# 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/market/apis/context-dev/context-dev-extract-structured-data/?offering=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. Price update time: not supplied.
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"
}
```

## 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.

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

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