POST /v1/data/url/scrape

Changed on

Public Data API facade for URL scraping. Supports normal API-key billing and accountless x402 quotes when called without Authorization or x-api-key and with x-x402: true. The request body uses urls: [...].

Request

  • Base URL
    https://api.nano-gpt.com/api
  • URL
    https://api.nano-gpt.com/api/v1/data/url/scrape
  • Auth
    • API key in header x-api-key
    • or HTTP bearer
    • or none

Headers

x-x402'true'

Set to true on unauthenticated accountless x402 quote requests. Without this header, unauthenticated requests return 401 missing_api_key.

Request body

urlsstring[] required

Array of URLs to scrape (maximum 5 URLs per request)

Example request

{
  "urls": [
    "https://example.com/article",
    "https://blog.com/post"
  ]
}

Response

Web scraping response with results for each URL

Changes