AI Web Scraper
Pull the fields you name from any list of web pages. Give the pages and either a list of fields (price, plan names, services, team members, opening hours, anything the page shows) or plain instructions; AI reads each page and returns one row per page with a column per field. Pages that do not load are listed in the file and cost nothing.
$0.019 per page extracted
POST /api/v1/scrape/ai-web-scraperParameters
| Name | Type | Required | Description |
|---|---|---|---|
urls | string[] | Required | Web pages, one per item (up to 5,000 a run). Domains are fine (acme.com reads the home page).Example: ["https://acme.com/pricing", "bakery.co.uk"] |
fields | string[] | object[] | Optional | The fields to pull, up to 40: names, or { name, description } to say more about one. Each becomes a column. Send fields or instructions.Example: ["company name", {"name": "phone", "description": "main phone number"}, "what they sell"] |
instructions | string | Optional | What to pull from each page in plain words, up to 2,000 characters. Without fields, the columns are the names the AI gives what it found.Example: Pull the store name, the brands they carry and their opening hours. |
Examples
Named fields from a list of pages
curl -X POST https://app.scrapercity.com/api/v1/scrape/ai-web-scraper \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"urls": ["https://acme.com/pricing", "bakery.co.uk"],
"fields": ["company name", "what they sell", {"name": "phone", "description": "main phone number"}, "city"]
}'Check status and download
curl -X GET https://app.scrapercity.com/api/v1/scrape/status/{runId} \
-H "Authorization: Bearer YOUR_API_KEY"
# When status is SUCCEEDED, download the CSV
curl -L https://app.scrapercity.com/api/downloads/{runId} -o ai-web-scraper.csvUse Cases
- •Prices and plan names from a list of competitor pricing pages
- •Services, cities served and phone numbers from local business websites
- •Any detail a page shows, as clean columns, for a list too long to read by hand
Best Practices
- •Charged per page the AI extracted; a page that does not load is listed in the file with status failed and costs nothing
- •Columns: url, status (extracted or failed), title, one column per field, error
Every scrape returns a runId. Poll GET /api/v1/scrape/status/{runId} until it completes, then download via GET /api/downloads/{runId}?format=csv.
Authenticate every request with Authorization: Bearer YOUR_API_KEY. See the full API reference for authentication, rate limits and error codes.