APIDataScrapers

Scrape Markdown

Retrieve scrape Markdown with the Context.dev API. Supply a formats and a URL. Sample fields include images and languages. Use the result as input for a related analysis or application.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Scrape Markdown

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

Playground

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

Request parameters
body*object

body

Scrape any URL into clean, LLM-ready Markdown.

Sample response

{
  "bytes": {
    "data": null,
    "requested": false,
    "success": null
  },
  "cache_metadata": {
    "age_ms": 229066653,
    "status": "hit"
  },
  "highlights": {
    "data": null,
    "requested": false,
    "success": null
  },
  "html": {
    "data": null,
    "requested": false,
    "success": null
  },
  "images": {
    "data": null,
    "requested": false,
    "success": null
  },
  "json": {
    "data": null,
    "requested": false,
    "success": null
  },
  "key_metadata": {
    "credits_consumed": 1
  },
  "markdown": {
    "data": "[Books to Scrape](https://books.toscrape.com/index.html) We love being scraped!\n\n- [Home](https://books.toscrape.com/index.html)\n- [Books](https://books.toscrape.com/catalogue/category/books_1/index.html)\n- [Poetry](https://books.toscrape.com/catalogue/category/books/poetry_23/index.html)\n- A Light in the Attic\n\n# A Light in the Attic\n\n£51.77\n\nIn stock (22 available)\n\n---\n\n**Warning!** This is a demo website for web scraping purposes. Prices and ratings here were randomly assigned and have no real meaning.\n\n## Product Description\n\nIt's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more\n\n## Product Information\n\nUPC | a897fe39b1053632\nProduct Type | Books\nPrice (excl. tax) | £51.77\nPrice (incl. tax) | £51.77\nTax | £0.00\nAvailability | In stock (22 available)\nNumber of reviews | 0",
    "requested": true,
    "success": true
  },
  "metadata": {
    "additionalMeta": {
      "content-type": "text/html; charset=UTF-8",
      "created": "24th Jun 2016 09:29",
      "viewport": "width=device-width"
    },
    "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
    "favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
    "headings": [
      {
        "level": 1,
        "text": "A Light in the Attic"
      },
      {
        "level": 2,
        "text": "Product Description"
      },
      {
        "level": 2,
        "text": "Product Information"
      }
    ],
    "language": "en-us",
    "robots": "NOARCHIVE,NOCACHE",
    "title": "A Light in the Attic | Books to Scrape - Sandbox"
  },
  "parsed": {
    "data": null,
    "requested": false,
    "success": null,
    "type": "custom"
  },
  "product": {
    "data": null,
    "requested": false,
    "success": null
  },
  "profile": null,
  "request_id": "5df523ed-80e7-40f1-b32b-b53ebec0c346",
  "screenshot": {
    "data": null,
    "requested": false,
    "success": null
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}

Response result

Response structure

Inferred from examples
  • bytesobject
    • datanull
    • requestedboolean
    • successnull
  • cache_metadataobject
    • age_msinteger
    • statusstring
  • highlightsobject
    • datanull
    • requestedboolean
    • successnull
  • htmlobject
    • datanull
    • requestedboolean
    • successnull
  • imagesobject
    • datanull
    • requestedboolean
    • successnull
  • jsonobject
    • datanull
    • requestedboolean
    • successnull
  • key_metadataobject
    • credits_consumedinteger
  • markdownobject
    • datastring
    • requestedboolean
    • successboolean
  • metadataobject
    • additionalMetaobject
      • content-typestring
      • createdstring
      • viewportstring
    • descriptionstring
    • faviconstring
    • headingsobject[]
      • levelinteger
      • textstring
    • languagestring
    • robotsstring
    • titlestring
  • parsedobject
    • datanull
    • requestedboolean
    • successnull
    • typestring
  • productobject
    • datanull
    • requestedboolean
    • successnull
  • profilenull
  • request_idstring
  • screenshotobject
    • datanull
    • requestedboolean
    • successnull
  • urlstring

Sellers

SellerPricingRequests · 30dPerformanceAccess
Context.dev — Scrape Markdown · POST · View API reference$0.002 / billing credit—
—successP50—
Loading...
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: 3. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/markdown
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/markdown' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "formats": {
    "markdown": true
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}'

Input parameters

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

ParameterLocationTypeRequiredDescription
formatsJSON request bodybodyobjectYes

const: {"markdown":true}

markdownParamsJSON request bodybodyobjectNo

additionalProperties: false

Nested fields and variants
body.markdownParams.includeImages boolean · Optional

Parent object: body.markdownParams

body.markdownParams.includeLinks boolean · Optional

Parent object: body.markdownParams

body.markdownParams.inlineImages string · Optional

Parent object: body.markdownParams

enum: "placeholder", "preserve"

body.markdownParams.sourcePreference array · Optional

Parent object: body.markdownParams

minItems: 1

Nested fields and variants

body.markdownParams.sourcePreference[] · Array item · string

maxAgeMsJSON request bodybodyintegerNo

minimum: 0 · maximum: 31536000000

sharedParamsJSON request bodybodyobjectNo

additionalProperties: false

Nested fields and variants
body.sharedParams.actions array · Optional

Parent object: body.sharedParams

minItems: 1 · maxItems: 5

Nested fields and variants

body.sharedParams.actions[] · Array item · object

Nested fields and variants

object

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

Parent object: body.sharedParams.actions[]

minLength: 1 · maxLength: 500

body.sharedParams.actions[].type string · Required

Parent object: body.sharedParams.actions[]

enum: "perform"

object

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

Parent object: body.sharedParams.actions[]

body.sharedParams.actions[].direction string · Optional

Parent object: body.sharedParams.actions[]

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

body.sharedParams.actions[].maxScrolls integer · Optional

Parent object: body.sharedParams.actions[]

minimum: 1 · maximum: 50

body.sharedParams.actions[].selector string · Optional

Parent object: body.sharedParams.actions[]

maxLength: 2000 · pattern: \S

body.sharedParams.actions[].type string · Required

Parent object: body.sharedParams.actions[]

enum: "scroll"

object

Nested fields and variants
body.sharedParams.actions[].milliseconds integer · Required

Parent object: body.sharedParams.actions[]

minimum: 0 · maximum: 30000

body.sharedParams.actions[].type string · Required

Parent object: body.sharedParams.actions[]

enum: "wait"

object

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

Parent object: body.sharedParams.actions[]

maxLength: 2048 · pattern: \S

body.sharedParams.actions[].type string · Required

Parent object: body.sharedParams.actions[]

enum: "waitFor"

body.sharedParams.country string · Optional

Parent object: body.sharedParams

pattern: ^[A-Za-z]{2}$

body.sharedParams.dismissCookies boolean · Optional

Parent object: body.sharedParams

body.sharedParams.dismissPopups boolean · Optional

Parent object: body.sharedParams

body.sharedParams.excludeSelectors array · Optional

Parent object: body.sharedParams

minItems: 1 · maxItems: 50

Nested fields and variants

body.sharedParams.excludeSelectors[] · Array item · string

body.sharedParams.headers object · Optional

Parent object: body.sharedParams

Nested fields and variants

body.sharedParams.headers.{name} · Named entries · string

body.sharedParams.includeFrames boolean · Optional

Parent object: body.sharedParams

body.sharedParams.includeSelectors array · Optional

Parent object: body.sharedParams

minItems: 1 · maxItems: 50

Nested fields and variants

body.sharedParams.includeSelectors[] · Array item · string

body.sharedParams.mainContentOnly boolean · Optional

Parent object: body.sharedParams

body.sharedParams.parsers object · Optional

Parent object: body.sharedParams

additionalProperties: false

Nested fields and variants
body.sharedParams.parsers.pdf object · Optional

Parent object: body.sharedParams.parsers

additionalProperties: false

Nested fields and variants
body.sharedParams.parsers.pdf.endPage integer · Optional

Parent object: body.sharedParams.parsers.pdf

minimum: 1

body.sharedParams.parsers.pdf.ocr string · Optional

Parent object: body.sharedParams.parsers.pdf

enum: "off", "auto"

body.sharedParams.parsers.pdf.startPage integer · Optional

Parent object: body.sharedParams.parsers.pdf

minimum: 1

body.sharedParams.profile object · Optional

Parent object: body.sharedParams

Nested fields and variants

existing

Nested fields and variants
body.sharedParams.profile.profileId string · Required

Parent object: body.sharedParams.profile

pattern: ^prof_[a-f0-9]{32}$

body.sharedParams.profile.type string · Required

Parent object: body.sharedParams.profile

const: "existing"

new

Nested fields and variants
body.sharedParams.profile.identifier string · Required

Parent object: body.sharedParams.profile

minLength: 1 · maxLength: 1024

body.sharedParams.profile.password string · Required

Parent object: body.sharedParams.profile

minLength: 1 · maxLength: 4096

body.sharedParams.profile.type string · Required

Parent object: body.sharedParams.profile

const: "new"

body.sharedParams.settleAnimations boolean · Optional

Parent object: body.sharedParams

body.sharedParams.theme string · Optional

Parent object: body.sharedParams

enum: "light", "dark"

body.sharedParams.viewport object · Optional

Parent object: body.sharedParams

additionalProperties: false

Nested fields and variants
body.sharedParams.viewport.height integer · Optional

Parent object: body.sharedParams.viewport

minimum: 240 · maximum: 4320

body.sharedParams.viewport.width integer · Optional

Parent object: body.sharedParams.viewport

minimum: 240 · maximum: 7680

body.sharedParams.waitFor integer | string · Optional

Parent object: body.sharedParams

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: 1 · maximum: 300000

urlJSON request bodybodystringYes

format: uri · pattern: ^https?://

zdrJSON request bodybodystringNo

enum: "enabled", "disabled"

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

Sample response

Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.

Documentation example (source abbreviated)
{
  "bytes": {
    "data": null,
    "requested": false,
    "success": null
  },
  "cache_metadata": {
    "age_ms": 229066653,
    "status": "hit"
  },
  "highlights": {
    "data": null,
    "requested": false,
    "success": null
  },
  "html": {
    "data": null,
    "requested": false,
    "success": null
  },
  "images": {
    "data": null,
    "requested": false,
    "success": null
  },
  "json": {
    "data": null,
    "requested": false,
    "success": null
  },
  "key_metadata": {
    "credits_consumed": 1
  },
  "markdown": {
    "data": "[Books to Scrape](https://books.toscrape.com/index.html) We love being scraped!\n\n- [Home](https://books.toscrape.com/index.html)\n- [Books](https://books.toscrape.com/catalogue/category/books_1/index.html)\n- [Poetry](https://books.toscrape.com/catalogue/category/books/poetry_23/index.html)\n- A Light in the Attic\n\n# A Light in the Attic\n\n£51.77\n\nIn stock (22 available)\n\n---\n\n**Warning!** This is a demo website for web scraping purposes. Prices and ratings here were randomly assigned and have no real meaning.\n\n## Product Description\n\nIt's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more\n\n## Product Information\n\nUPC | a897fe39b1053632\nProduct Type | Books\nPrice (excl. tax) | £51.77\nPrice (incl. tax) | £51.77\nTax | £0.00\nAvailability | In stock (22 available)\nNumber of reviews | 0",
    "requested": true,
    "success": true
  },
  "metadata": {
    "additionalMeta": {
      "content-type": "text/html; charset=UTF-8",
      "created": "24th Jun 2016 09:29",
      "viewport": "width=device-width"
    },
    "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
    "favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
    "headings": [
      {
        "level": 1,
        "text": "A Light in the Attic"
      },
      {
        "level": 2,
        "text": "Product Description"
      },
      {
        "level": 2,
        "text": "Product Information"
      }
    ],
    "language": "en-us",
    "robots": "NOARCHIVE,NOCACHE",
    "title": "A Light in the Attic | Books to Scrape - Sandbox"
  },
  "parsed": {
    "data": null,
    "requested": false,
    "success": null,
    "type": "custom"
  },
  "product": {
    "data": null,
    "requested": false,
    "success": null
  },
  "profile": null,
  "request_id": "5df523ed-80e7-40f1-b32b-b53ebec0c346",
  "screenshot": {
    "data": null,
    "requested": false,
    "success": null
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}

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.

View API Markdown
API Markdown
# Scrape Markdown

Retrieve scrape Markdown with the Context.dev API. Supply a formats and a URL. Sample fields include images and languages. Use the result as input for a related analysis or application.
## Available implementations
context-dev · Context.dev — Scrape Markdown: https://openany.si/markets/apis/capabilities/context-dev-scrape-markdown?offering=d291dcd3-87e6-4fcf-a977-66eb2703d20f · $0.002 / billing credit

## Selected API contract
Documentation: https://openany.si/apis/d291dcd3-87e6-4fcf-a977-66eb2703d20f
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/markdown
Price: $0.002 / billing credit
Pricing note: A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Provider: context-dev
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/markdown' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "formats": {
    "markdown": true
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Context.dev — Scrape Markdown",
  "endpoint": "https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/markdown",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Scrape any URL into clean, LLM-ready Markdown.",
      "json_schema": {
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "required": [
                "markdownParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "markdown": {
                      "const": true
                    }
                  },
                  "required": [
                    "markdown"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "screenshotParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "screenshot": {
                      "const": true
                    }
                  },
                  "required": [
                    "screenshot"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "imageParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "images": {
                      "const": true
                    }
                  },
                  "required": [
                    "images"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "parseParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "parse": {
                      "const": true
                    }
                  },
                  "required": [
                    "parse"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "formats": {
                  "properties": {
                    "parse": {
                      "const": true
                    }
                  },
                  "required": [
                    "parse"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "parseParams"
              ]
            }
          },
          {
            "if": {
              "required": [
                "highlightsParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "highlights": {
                      "const": true
                    }
                  },
                  "required": [
                    "highlights"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "formats": {
                  "properties": {
                    "highlights": {
                      "const": true
                    }
                  },
                  "required": [
                    "highlights"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "highlightsParams"
              ]
            }
          },
          {
            "if": {
              "required": [
                "jsonParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "json": {
                      "const": true
                    }
                  },
                  "required": [
                    "json"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "formats": {
                  "properties": {
                    "json": {
                      "const": true
                    }
                  },
                  "required": [
                    "json"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "jsonParams"
              ]
            }
          },
          {
            "if": {
              "required": [
                "productParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "product": {
                      "const": true
                    }
                  },
                  "required": [
                    "product"
                  ]
                }
              }
            }
          }
        ],
        "properties": {
          "formats": {
            "const": {
              "markdown": true
            },
            "type": "object"
          },
          "markdownParams": {
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "required": [
                    "inlineImages"
                  ]
                },
                "then": {
                  "properties": {
                    "includeImages": {
                      "const": true
                    }
                  },
                  "required": [
                    "includeImages"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "sourcePreference": {
                      "items": {
                        "not": {
                          "enum": [
                            "html-conversion"
                          ]
                        }
                      }
                    }
                  },
                  "required": [
                    "sourcePreference"
                  ]
                },
                "then": {
                  "properties": {
                    "includeImages": {
                      "not": {}
                    },
                    "includeLinks": {
                      "not": {}
                    },
                    "inlineImages": {
                      "not": {}
                    }
                  }
                }
              }
            ],
            "properties": {
              "includeImages": {
                "default": false,
                "type": "boolean"
              },
              "includeLinks": {
                "default": true,
                "type": "boolean"
              },
              "inlineImages": {
                "enum": [
                  "placeholder",
                  "preserve"
                ],
                "type": "string"
              },
              "sourcePreference": {
                "default": [
                  "html-conversion",
                  "markdown-direct"
                ],
                "items": {
                  "enum": [
                    "html-conversion",
                    "markdown-direct"
                  ],
                  "type": "string"
                },
                "minItems": 1,
                "type": "array",
                "uniqueItems": true
              }
            },
            "type": "object"
          },
          "maxAgeMs": {
            "default": 259200000,
            "maximum": 31536000000,
            "minimum": 0,
            "type": "integer"
          },
          "sharedParams": {
            "additionalProperties": false,
            "properties": {
              "actions": {
                "items": {
                  "discriminator": {
                    "propertyName": "type"
                  },
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "action": {
                          "maxLength": 500,
                          "minLength": 1,
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "perform"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "action"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "amount": {
                          "default": "viewport",
                          "oneOf": [
                            {
                              "maximum": 100000,
                              "minimum": 1,
                              "type": "integer"
                            },
                            {
                              "enum": [
                                "viewport",
                                "max"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "direction": {
                          "default": "down",
                          "enum": [
                            "down",
                            "up",
                            "left",
                            "right"
                          ],
                          "type": "string"
                        },
                        "maxScrolls": {
                          "default": 1,
                          "maximum": 50,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "selector": {
                          "maxLength": 2000,
                          "pattern": "\\S",
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "scroll"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "milliseconds": {
                          "maximum": 30000,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "type": {
                          "enum": [
                            "wait"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "milliseconds"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "selector": {
                          "maxLength": 2048,
                          "pattern": "\\S",
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "waitFor"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "selector"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "maxItems": 5,
                "minItems": 1,
                "type": "array"
              },
              "country": {
                "pattern": "^[A-Za-z]{2}$",
                "type": "string"
              },
              "dismissCookies": {
                "default": true,
                "type": "boolean"
              },
              "dismissPopups": {
                "default": false,
                "type": "boolean"
              },
              "excludeSelectors": {
                "items": {
                  "maxLength": 2048,
                  "pattern": "\\S",
                  "type": "string"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array",
                "uniqueItems": true
              },
              "headers": {
                "additionalProperties": {
                  "maxLength": 8192,
                  "pattern": "^[^\\r\\n]*$",
                  "type": "string"
                },
                "propertyNames": {
                  "not": {
                    "pattern": "^(?:[Hh][Oo][Ss][Tt]|[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Ll][Ee][Nn][Gg][Tt][Hh]|[Cc][Oo][Nn][Nn][Ee][Cc][Tt][Ii][Oo][Nn]|[Kk][Ee][Ee][Pp]-[Aa][Ll][Ii][Vv][Ee]|[Pp][Rr][Oo][Xx][Yy]-[Aa][Uu][Tt][Hh][Ee][Nn][Tt][Ii][Cc][Aa][Tt][Ee]|[Pp][Rr][Oo][Xx][Yy]-[Aa][Uu][Tt][Hh][Oo][Rr][Ii][Zz][Aa][Tt][Ii][Oo][Nn]|[Pp][Rr][Oo][Xx][Yy]-[Cc][Oo][Nn][Nn][Ee][Cc][Tt][Ii][Oo][Nn]|[Tt][Ee]|[Tt][Rr][Aa][Ii][Ll][Ee][Rr]|[Tt][Rr][Aa][Nn][Ss][Ff][Ee][Rr]-[Ee][Nn][Cc][Oo][Dd][Ii][Nn][Gg]|[Uu][Pp][Gg][Rr][Aa][Dd][Ee]|[Ee][Xx][Pp][Ee][Cc][Tt])$"
                  },
                  "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                },
                "type": "object"
              },
              "includeFrames": {
                "default": false,
                "type": "boolean"
              },
              "includeSelectors": {
                "items": {
                  "maxLength": 2048,
                  "pattern": "\\S",
                  "type": "string"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array",
                "uniqueItems": true
              },
              "mainContentOnly": {
                "default": false,
                "type": "boolean"
              },
              "parsers": {
                "additionalProperties": false,
                "properties": {
                  "pdf": {
                    "additionalProperties": false,
                    "properties": {
                      "endPage": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "ocr": {
                        "default": "off",
                        "enum": [
                          "off",
                          "auto"
                        ],
                        "type": "string"
                      },
                      "startPage": {
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "profile": {
                "discriminator": {
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "profileId": {
                        "pattern": "^prof_[a-f0-9]{32}$",
                        "type": "string"
                      },
                      "type": {
                        "const": "existing",
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "profileId"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "identifier": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      },
                      "password": {
                        "maxLength": 4096,
                        "minLength": 1,
                        "type": "string",
                        "writeOnly": true
                      },
                      "type": {
                        "const": "new",
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "identifier",
                      "password"
                    ],
                    "type": "object"
                  }
                ]
              },
              "settleAnimations": {
                "type": "boolean"
              },
              "theme": {
                "enum": [
                  "light",
                  "dark"
                ],
                "type": "string"
              },
              "viewport": {
                "additionalProperties": false,
                "properties": {
                  "height": {
                    "default": 900,
                    "maximum": 4320,
                    "minimum": 240,
                    "type": "integer"
                  },
                  "width": {
                    "default": 1440,
                    "maximum": 7680,
                    "minimum": 240,
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "waitFor": {
                "oneOf": [
                  {
                    "maximum": 30000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "maxLength": 2048,
                    "pattern": "\\S",
                    "type": "string"
                  }
                ]
              }
            },
            "type": "object"
          },
          "tags": {
            "items": {
              "maxLength": 50,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 20,
            "type": "array"
          },
          "timeoutOpts": {
            "additionalProperties": false,
            "default": {
              "behavior": "fail",
              "milliseconds": 90000
            },
            "properties": {
              "behavior": {
                "default": "fail",
                "enum": [
                  "fail",
                  "return-partial"
                ],
                "type": "string"
              },
              "milliseconds": {
                "maximum": 300000,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": [
              "milliseconds"
            ],
            "type": "object"
          },
          "url": {
            "format": "uri",
            "pattern": "^https?://",
            "type": "string"
          },
          "zdr": {
            "default": "disabled",
            "enum": [
              "enabled",
              "disabled"
            ],
            "type": "string"
          }
        },
        "required": [
          "url",
          "formats"
        ],
        "type": "object"
      },
      "location": "body",
      "name": "body",
      "nullable": false,
      "pointer": "",
      "required": true,
      "type": "object"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "usage",
    "priceMicroUsd": "2000",
    "rounding": "ceil",
    "unit": "credit",
    "unitQuantity": "1"
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Documentation example (source abbreviated)",
      "request": {
        "body": {
          "formats": {
            "markdown": true
          },
          "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "bytes": {
          "data": null,
          "requested": false,
          "success": null
        },
        "cache_metadata": {
          "age_ms": 229066653,
          "status": "hit"
        },
        "highlights": {
          "data": null,
          "requested": false,
          "success": null
        },
        "html": {
          "data": null,
          "requested": false,
          "success": null
        },
        "images": {
          "data": null,
          "requested": false,
          "success": null
        },
        "json": {
          "data": null,
          "requested": false,
          "success": null
        },
        "key_metadata": {
          "credits_consumed": 1
        },
        "markdown": {
          "data": "[Books to Scrape](https://books.toscrape.com/index.html) We love being scraped!\n\n- [Home](https://books.toscrape.com/index.html)\n- [Books](https://books.toscrape.com/catalogue/category/books_1/index.html)\n- [Poetry](https://books.toscrape.com/catalogue/category/books/poetry_23/index.html)\n- A Light in the Attic\n\n# A Light in the Attic\n\n£51.77\n\nIn stock (22 available)\n\n---\n\n**Warning!** This is a demo website for web scraping purposes. Prices and ratings here were randomly assigned and have no real meaning.\n\n## Product Description\n\nIt's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more\n\n## Product Information\n\nUPC | a897fe39b1053632\nProduct Type | Books\nPrice (excl. tax) | £51.77\nPrice (incl. tax) | £51.77\nTax | £0.00\nAvailability | In stock (22 available)\nNumber of reviews | 0",
          "requested": true,
          "success": true
        },
        "metadata": {
          "additionalMeta": {
            "content-type": "text/html; charset=UTF-8",
            "created": "24th Jun 2016 09:29",
            "viewport": "width=device-width"
          },
          "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
          "favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
          "headings": [
            {
              "level": 1,
              "text": "A Light in the Attic"
            },
            {
              "level": 2,
              "text": "Product Description"
            },
            {
              "level": 2,
              "text": "Product Information"
            }
          ],
          "language": "en-us",
          "robots": "NOARCHIVE,NOCACHE",
          "title": "A Light in the Attic | Books to Scrape - Sandbox"
        },
        "parsed": {
          "data": null,
          "requested": false,
          "success": null,
          "type": "custom"
        },
        "product": {
          "data": null,
          "requested": false,
          "success": null
        },
        "profile": null,
        "request_id": "5df523ed-80e7-40f1-b32b-b53ebec0c346",
        "screenshot": {
          "data": null,
          "requested": false,
          "success": null
        },
        "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
      }
    }
  ]
}
```

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
    Scrape any URL into clean, LLM-ready Markdown.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/markdown' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "formats": {
        "markdown": true
      },
      "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
    {
      "bytes": {
        "data": null,
        "requested": false,
        "success": null
      },
      "cache_metadata": {
        "age_ms": 229066653,
        "status": "hit"
      },
      "highlights": {
        "data": null,
        "requested": false,
        "success": null
      },
      "html": {
        "data": null,
        "requested": false,
        "success": null
      },
      "images": {
        "data": null,
        "requested": false,
        "success": null
      },
      "json": {
        "data": null,
        "requested": false,
        "success": null
      },
      "key_metadata": {
        "credits_consumed": 1
      },
      "markdown": {
        "data": "[Books to Scrape](https://books.toscrape.com/index.html) We love being scraped!\n\n- [Home](https://books.toscrape.com/index.html)\n- [Books](https://books.toscrape.com/catalogue/category/books_1/index.html)\n- [Poetry](https://books.toscrape.com/catalogue/category/books/poetry_23/index.html)\n- A Light in the Attic\n\n# A Light in the Attic\n\n£51.77\n\nIn stock (22 available)\n\n---\n\n**Warning!** This is a demo website for web scraping purposes. Prices and ratings here were randomly assigned and have no real meaning.\n\n## Product Description\n\nIt's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more\n\n## Product Information\n\nUPC | a897fe39b1053632\nProduct Type | Books\nPrice (excl. tax) | £51.77\nPrice (incl. tax) | £51.77\nTax | £0.00\nAvailability | In stock (22 available)\nNumber of reviews | 0",
        "requested": true,
        "success": true
      },
      "metadata": {
        "additionalMeta": {
          "content-type": "text/html; charset=UTF-8",
          "created": "24th Jun 2016 09:29",
          "viewport": "width=device-width"
        },
        "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
        "favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
        "headings": [
          {
            "level": 1,
            "text": "A Light in the Attic"
          },
          {
            "level": 2,
            "text": "Product Description"
          },
          {
            "level": 2,
            "text": "Product Information"
          }
        ],
        "language": "en-us",
        "robots": "NOARCHIVE,NOCACHE",
        "title": "A Light in the Attic | Books to Scrape - Sandbox"
      },
      "parsed": {
        "data": null,
        "requested": false,
        "success": null,
        "type": "custom"
      },
      "product": {
        "data": null,
        "requested": false,
        "success": null
      },
      "profile": null,
      "request_id": "5df523ed-80e7-40f1-b32b-b53ebec0c346",
      "screenshot": {
        "data": null,
        "requested": false,
        "success": null
      },
      "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Scrape Markdown with your agent

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