OpenAny
Get API keyAPI Key
APIDataScrapers

Context.dev logo
Context.Dev Extract Structured Data API

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.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Context.Dev Extract Structured Data API

Prepare your request, then continue with your agent.

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

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Context.Dev Extract Structured Data API

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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs body: body
Selected implementation context-dev · Context.dev — Extract Structured Data
Billing Follow the selected implementation pricing, billing unit, quantity and charge rules

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the JSON body and supported fields shown in the request template.
  3. Check the HTTP response and business result before reading optional fields.
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"
}'

Request and Response Examples

The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.

Published Context.dev — Extract Structured Data API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

Crawl a website and return JSON matching a caller-supplied JSON Schema.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
Context.dev — Extract Structured Data · POST · View API reference$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · context-devUSD / billing credit
Unit price
$0.002

A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/context-dev/v1/web/extract
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
schemaJSON request bodybodyobjectYes
Nested fields and variants

body.schema.{name} · Named entries · any

urlJSON request bodybodystringYes

minLength: 1 · format: uri

actionsJSON request bodybodyarray | nullNo

maxItems: 5

Nested fields and variants

body.actions[] · Array item · object

Nested fields and variants

object

Nested fields and variants
body.actions[].do string · Required

Parent object: body.actions[]

enum: "wait"

body.actions[].timeMs integer · Required

Parent object: body.actions[]

minimum: 0 · maximum: 30000

object

Nested fields and variants
body.actions[].action string · Required

Parent object: body.actions[]

minLength: 1 · maxLength: 500

body.actions[].do string · Required

Parent object: body.actions[]

enum: "perform"

object

Nested fields and variants
body.actions[].amount integer | string · Optional

Parent object: body.actions[]

body.actions[].container string · Optional

Parent object: body.actions[]

minLength: 1 · maxLength: 2000

body.actions[].direction string · Optional

Parent object: body.actions[]

enum: "up", "down", "left", "right"

body.actions[].do string · Required

Parent object: body.actions[]

enum: "scroll"

body.actions[].maxScrolls integer · Optional

Parent object: body.actions[]

minimum: 1 · maximum: 50

factCheckJSON request bodybodybooleanNo
followSubdomainsJSON request bodybodybooleanNo
includeFramesJSON request bodybodybooleanNo
instructionsJSON request bodybodystringNo

maxLength: 2000

maxAgeMsJSON request bodybodyinteger | nullNo

minimum: 0 · maximum: 2592000000

maxDepthJSON request bodybodyintegerNo

minimum: 0

maxPagesJSON request bodybodyintegerNo

minimum: 1 · maximum: 50

pdfJSON request bodybodyobjectNo

additionalProperties: false

Nested fields and variants
body.pdf.end integer · Optional

Parent object: body.pdf

minimum: 1

body.pdf.shouldParse boolean · Optional

Parent object: body.pdf

body.pdf.start integer · Optional

Parent object: body.pdf

minimum: 1

settleAnimationsJSON request bodybodybooleanNo
stopAfterMsJSON request bodybodyintegerNo

minimum: 10000 · maximum: 110000

tagsJSON request bodybodyarrayNo

maxItems: 20

Nested fields and variants

body.tags[] · Array item · string

timeoutOptsJSON request bodybodyobjectNo

additionalProperties: false

Nested fields and variants
body.timeoutOpts.behavior string · Optional

Parent object: body.timeoutOpts

enum: "fail", "return-partial"

body.timeoutOpts.milliseconds integer · Required

Parent object: body.timeoutOpts

minimum: 1000 · maximum: 300000

waitForMsJSON request bodybodyinteger | nullNo

minimum: 0 · maximum: 30000

zdrJSON request bodybodystringNo

enum: "enabled", "disabled"

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • cache_metadataobject
    • age_msinteger
    • statusstring
  • dataobject
    • priceTextstring
    • titlestring
  • key_metadataobject
    • credits_consumedinteger
  • metadataobject
    • maxCrawlDepthinteger
    • numBlockedinteger
    • numFailedinteger
    • numSkippedinteger
    • numSucceededinteger
    • numUrlsinteger
  • request_idstring
  • statusstring
  • urlstring
  • urls_analyzedstring[]

Usage billing

A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example (source abbreviated)

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 1

    Review these request fields before running. Keep the published provider and request method unchanged.

    body
    Crawl a website and return JSON matching a caller-supplied JSON Schema.
    Terminal · cURL
    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"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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"
      ]
    }

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.

Use Context.Dev Extract Structured Data API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.