Skip to content

API reference

Every scraper, every parameter.

All scrapers run through POST https://api.datafor.dev/v1/run with your key in the x-api-key header. This page is generated from the same registry the API validates against.

Last updated 1 December 2026

Which scrapers can I call?

8 scrapers are live. Each run costs the credits shown below; if the worker fails or times out, the credit is refunded automatically. Pass "async": true to get a 202 with a correlation_id and poll GET /v1/runs/{correlation_id}.

google_keyword_suggestor

Collect Google autocomplete keyword suggestions with configurable country, language, and depth.

Cost: 1 credit per run · Timeout: 120 s

Parameters of google_keyword_suggestor
ParameterTypeDescription
queryrequiredstringSeed keyword or phrase to expand (e.g. "sofa set").
countrystringISO-2 country code for geographic location (gl). Defaults to "tr". Default: tr.
languagestringISO-2 language code for suggestions (hl). Defaults to "tr". Default: tr.
depthintegerExpansion layers (1–2). Layer 2 also fetches suggestions for layer-1 results. 1–2. Default: 1.
cURL
curl -X POST https://api.datafor.dev/v1/run \
  -H "Content-Type: application/json" \
  -H "x-api-key: $DATAFOR_API_KEY" \
  -d '{
  "script_name": "google_keyword_suggestor",
  "params": {
    "query": "wireless headphones"
  }
}'

google_serp

Google search results as JSON: ranked organic results, shopping ads and product cards with prices.

Cost: 10 credits per run · Timeout: 120 s

Parameters of google_serp
ParameterTypeDescription
queryrequiredstringSearch query (e.g. "sofa set kuwait price").
countrystringISO-2 country code (gl). Defaults to "kw". Default: kw.
languagestringISO-2 language code (hl). Defaults to "en". Default: en.
pagesintegerNumber of SERP pages to fetch (1–3). Each page is ~10 organic results. 1–3. Default: 1.
cURL
curl -X POST https://api.datafor.dev/v1/run \
  -H "Content-Type: application/json" \
  -H "x-api-key: $DATAFOR_API_KEY" \
  -d '{
  "script_name": "google_serp",
  "params": {
    "query": "wireless headphones"
  }
}'

trendyol_store_products

Trendyol.com store/seller product listing by merchant id or store URL — listing only, no per-product detail requests.

Cost: 1 credit per run · Timeout: 90 s

Parameters of trendyol_store_products
ParameterTypeDescription
storerequiredstringMerchant id (e.g. "968") or a Trendyol store URL containing "mid=".
pagesintegerNumber of store listing pages to fetch (1–3). Defaults to 1. 1–3. Default: 1.
sortstringSort order. Defaults to BEST_SELLER. One of: SCORE, PRICE_BY_ASC, PRICE_BY_DESC, MOST_RECENT, BEST_SELLER, MOST_FAVOURITE, MOST_RATED. Default: BEST_SELLER.
cURL
curl -X POST https://api.datafor.dev/v1/run \
  -H "Content-Type: application/json" \
  -H "x-api-key: $DATAFOR_API_KEY" \
  -d '{
  "script_name": "trendyol_store_products",
  "params": {
    "store": "<store>"
  }
}'

trendyol_product_detail

Trendyol.com single product detail with seller (buybox) price comparison across all merchants.

Cost: 1 credit per run · Timeout: 60 s

Parameters of trendyol_product_detail
ParameterTypeDescription
productrequiredstringProduct id (e.g. "990828141") or a full Trendyol product URL.
cURL
curl -X POST https://api.datafor.dev/v1/run \
  -H "Content-Type: application/json" \
  -H "x-api-key: $DATAFOR_API_KEY" \
  -d '{
  "script_name": "trendyol_product_detail",
  "params": {
    "product": "<product>"
  }
}'

url_scraper

Scrape any URL — Markdown, raw or cleaned HTML, links, every image the page references (grouped by where it was found), and screenshots. Blocked requests are retried automatically.

Cost: 1 credit per run · Timeout: 90 s

Parameters of url_scraper
ParameterTypeDescription
urlrequiredstringAbsolute URL to scrape (e.g. https://example.com/page).
formatsstringComma-separated output formats: markdown, raw_html, cleaned_html, links, images, screenshot, full_page_screenshot. Defaults to "markdown". images returns { src, alt, source, context } where source is img, meta, structured_data, css_background, data_attribute, link, icon, media or script. screenshot/full_page_screenshot require use_proxy=true. Default: markdown.
use_proxybooleanTurn on network options: country/region/residential targeting and screenshots. Defaults to false; blocked requests are retried automatically either way. Default: false.
countrystringISO-2 proxy exit country (geoCode), e.g. "us", "tr". Defaults to any. Ignored unless use_proxy=true.
regionstringProxy exit continent (regionalGeoCode), used when country is not set. Ignored unless use_proxy=true. One of: europe, asia, africa, oceania, northamerica, southamerica.
residentialbooleanUse residential/mobile proxy network instead of datacenter. Defaults to false. Ignored unless use_proxy=true. Default: false.
devicestringViewport device profile: desktop, mobile, or tablet. Defaults to desktop. One of: desktop, mobile, tablet. Default: desktop.
cURL
curl -X POST https://api.datafor.dev/v1/run \
  -H "Content-Type: application/json" \
  -H "x-api-key: $DATAFOR_API_KEY" \
  -d '{
  "script_name": "url_scraper",
  "params": {
    "url": "https://example.com"
  }
}'