Tell the API which fields you want and get them back as JSON. Use AI when every page looks different, or CSS selectors when you know exactly where the data lives.
Or try the free Web Data Extraction toolUse whichever fits each site. Both run on the same key.
| Feature | AI query | CSS selectors |
|---|---|---|
| How you ask | Describe the JSON shape in plain words | Name each field and its selector |
| Best for | Pages with different layouts | Sites you scrape again and again |
| Setup | None | Pick selectors once per site |
| Credits per page | 100, or 200 with the larger model | 1 |
Send a question and a responseStructure that names your fields and their types. The AI reads the page and fills them in, so one request works across sites that all look different.
Query API docsName each field and the selector where it lives. Ask for text or an attribute, or set multiple to true for every match as an array. Save the set once and reuse it for every page on that site.
Extract API docs
Headline, author, publish date and topic for research and monitoring tools.
Contact details, descriptions and key facts for enrichment.