Documentation
Developer docs
Create a key, call one endpoint, read one response format. Every scraper’s parameters are in the API reference.
Last updated 1 December 2026
Quick start
- Create an account and verify your email (50 free credits, granted once).
- Open the URL Scraper to test scripts interactively.
- Generate an API key under API Keys and call
POST /v1/run.
MCP server for AI agents
Prefer not to write code? Connect Claude Code, Codex, Cursor, VS Code, Claude or ChatGPT to https://mcp.datafor.dev/mcp and every scraper becomes a tool your agent can call, on the same credits.
claude mcp add --transport http --scope user datafor https://mcp.datafor.dev/mcpAPI reference
Send your API key in the x-api-key header. Every scraper runs through one endpoint with a JSON body of script_name and params. The parameters of each script are listed in theAPI reference (also as an OpenAPI file) and by GET /v1/scripts.
POST /v1/run
x-api-key: <your key>
Content-Type: application/json
{ "script_name": "url_scraper", "params": { "url": "https://example.com" } }Response fields (200)
- correlation_id
- ID of this run.
- transaction_id
- ID of the credit charge for this run.
- script_name
- The script that ran.
- cost
- Credits charged.
- result
- The script’s output (JSON).
- balance_after
- Your credit balance after the charge.
Errors
- 400
- Malformed body or unknown script_name.
- 401
- Missing or invalid API key.
- 402
- Not enough credits.
- 500 / 504
- The worker failed or timed out. The credit is refunded (refunded: true).
Product pages show a full request and response for each scraper — start with the URL Scraper.
Logo API
Company logos as plain image URLs — no POST /v1/run, no queue. Put the URL in an <img> tag with your publishable key (pk_…, under API Keys). It only loads logos and never spends credits, so it is safe in HTML. Logo requests are free.
<img src="https://api.datafor.dev/v1/logo/stripe.com?token=pk_…&size=64" alt="Stripe">
<img src="https://api.datafor.dev/v1/logo/name/Shopify?token=pk_…&format=webp" alt="Shopify">The first request for a domain reads the website (web app manifest, apple-touch-icon, SVG and large icons, structured-data logo, then the favicon) and caches the result; later requests come from cache in milliseconds. Logos refresh every 30 days, and domains without one are checked again after 3 days. Responses carry x-logo-domain, x-logo-source (manifest, apple-touch-icon, icon, jsonld, og-image, favicon or monogram), x-cache and an ETag, and may be cached for a day.
Endpoints
- GET /v1/logo/{domain}
- Logo image for a domain or website URL (stripe.com, https://www.stripe.com/pricing). Subdomains use the main domain.
- GET /v1/logo/name/{name}
- Looks the company name up, then returns that domain’s logo. x-logo-domain shows the match.
- GET /v1/logo/search?q=
- JSON list of matching brands: name, domain and a ready-to-use logo_url. Needs a secret key (x-api-key).
Query parameters
- token
- Your publishable key (pk_…) from API Keys. Or send a secret key in x-api-key from a server.
- size
- Edge in pixels, 16–512 (default 128). Images are square with transparent padding.
- retina
- true doubles size, for high-density screens.
- format
- png (default), webp or jpg. jpg has a white background.
- greyscale
- true for a black-and-white logo.
- fallback
- monogram (default): a letter tile when no logo exists. 404: an empty 404 so your onerror can take over.
Errors
- 400
- Not a public domain (IPs, localhost), or a bad size/format/fallback.
- 401
- Missing or invalid key, or a secret sk_ key in the URL (error: secret_key_in_url).
- 404
- No logo, only with fallback=404.
- 429
- Over 1,200 requests or 60 uncached lookups per minute. See Retry-After.
SDKs
There are no official SDKs yet. The API is plain HTTPS and JSON, so any HTTP client works. Here is the same call in six languages; you can also try scripts interactively in the dashboard playground.
import os, requests
response = requests.post(
"https://api.datafor.dev/v1/run",
headers={"x-api-key": os.environ["DATAFOR_API_KEY"]},
json={
"script_name": "url_scraper",
"params": {
"url": "https://example.com",
"formats": "markdown"
},
},
)
print(response.json())Architecture
Public site (datafor.dev) · Dashboard (app.datafor.dev) · API gateway · Dedicated crawling workers on separate infrastructure.
Need early access to docs or enterprise deployment? Contact us.