Helenis API
Start for free

API reference

AI Web Scraper API

Turn any web page into clean JSON: name your fields, get one object or every item of a list.

Host
ai-web-scraper-extract-structured-data-to-json.p.rapidapi.com
Base path
/v1/scraper
Auth
X-RapidAPI-Key, X-RapidAPI-Host
For agents
openapi.json · scraper.md

Extraction

Your fields, extracted from any page and checked against it.

Extract Structured Data

POST /v1/scraper/extract

Extract structured data from a web page with AI. Extract the fields you name from a web page URL as clean JSON; `multiple=true` returns every repeated item (product lists, job boards). 10 credits per page (20 above 10,000 characters of text), +5 per 5 items with `multiple=true`. Pages that need JavaScript are refused, not billed.

Parameters of Extract Structured Data
ParameterInTypeDescription
url required body string
fields required body object[]
multiple body boolean false: one object for the page's main entity; true: every repeated item (products, jobs, articles...) in `items`. Default False.
max_items body integer With multiple=true. Default 25.
curl -X POST "https://ai-web-scraper-extract-structured-data-to-json.p.rapidapi.com/v1/scraper/extract" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: ai-web-scraper-extract-structured-data-to-json.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://books.toscrape.com/",
    "multiple": true,
    "max_items": 20,
    "fields": [
      {
        "name": "title",
        "type": "string",
        "description": "full book title"
      },
      {
        "name": "price",
        "type": "number",
        "description": "price in GBP"
      },
      {
        "name": "in_stock",
        "type": "boolean"
      },
      {
        "name": "link",
        "type": "url",
        "description": "book page"
      }
    ]
  }'

Markdown

Any page as clean Markdown, no AI.

Convert Page to Markdown

GET /v1/scraper/markdown

Convert a web page to clean Markdown. LLM-ready Markdown of a page: headings, lists, tables and absolute links, without navigation, scripts or footers; plus its JSON-LD. No AI. 1 credit.

Parameters of Convert Page to Markdown
ParameterInTypeDescription
url required query string Web page to convert.
curl -G "https://ai-web-scraper-extract-structured-data-to-json.p.rapidapi.com/v1/scraper/markdown" \
  --data-urlencode "url=https://books.toscrape.com/" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: ai-web-scraper-extract-structured-data-to-json.p.rapidapi.com"

Response

{
  "url": "https://books.toscrape.com/",
  "final_url": "https://books.toscrape.com/",
  "title": "All products | Books to Scrape - Sandbox",
  "items": [
    {
      "title": "A Light in the Attic",
      "price": 51.77,
      "in_stock": true,
      "link": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
    },
    {
      "title": "Tipping the Velvet",
      "price": 53.74,
      "in_stock": true,
      "link": "https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"
    }
  ],
  "item_count": 20,
  "page_truncated": false,
  "credits": 30
}

From a real response (2 of 20 items shown). With multiple: false (default) you get data: {...} for the page's main subject.

Good to know

  • Descriptions say where to look ("price in GBP, without the symbol"). They are not prompts: asking to summarise, translate or answer questions returns null.
  • No JavaScript rendering: pages that only show content in the browser return page_empty, not billed.
  • Long pages: the first ~30,000 characters of content are read; page_truncated says so.
  • Free BASIC plan: up to 15 items per page with multiple=true (paid plans: up to 100).

Errors

Status code Meaning
400 invalid_request Bad field name or type, duplicate names, more than 30 fields.
400 invalid_url, site_unreachable, site_blocked, not_html The page could not be fetched, or is not a web page. Not billed.
400 page_empty No readable content without JavaScript. Not billed.
429 daily_limit_reached Daily safety limit of your plan; resets at 00:00 UTC.
503 ai_error, capacity_exhausted AI failure; retry. Not billed.

Use it from an AI agent

Add this MCP server and the AI Web Scraper - Any Website to JSON & Markdown actor becomes a tool your agent can call. Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify.

MCP server URL
https://mcp.apify.com?tools=helenisapi/ai-web-scraper-json-markdown

Prefer plain HTTP? Give your agent the OpenAPI document or the Markdown reference.

See the plans Error handling