Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetch a web page or PDF and extract clean structured outputs.
cURL
curl --request POST \ --url https://api.gainflow.ai/v1/scrape \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "<string>" } '
import requests url = "https://api.gainflow.ai/v1/scrape" payload = { "url": "<string>" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({url: '<string>'}) }; fetch('https://api.gainflow.ai/v1/scrape', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "data": { "url": "<string>", "final_url": "<string>", "title": "<string>", "markdown": "<string>", "html": "<string>", "raw_html": "<string>", "screenshot": "<string>", "links": [ { "url": "<string>", "text": "<string>" } ], "parsed": {} }, "meta": { "request_id": "<string>", "status_code": 123, "content_type": "<string>", "fetched_at": "2023-11-07T05:31:56Z", "cached": true, "country": "<string>", "credits_used": 123, "duration_ms": 123, "engine": "http" } }
{ "type": "<string>", "title": "<string>", "status": 123, "code": "UNAUTHORIZED", "request_id": "<string>", "detail": "<string>" }
Either a Gainflow API key (gf_live_*) or a WorkOS AuthKit OAuth 2.1 JWT.
Optional 24-hour idempotency key (max 128 chars). Reusing with a different payload returns 409 Conflict.
1 - 128
2048
1 - 5
markdown
html
raw_html
links
screenshot
Show child attributes
^[A-Z]{2}$
0 <= x <= 604800
1000 <= x <= 30000
Force rendering in the L4 Camoufox browser engine. When false, Gainflow automatically escalates SPA shells and anti-bot challenges.
Optional wait after DOMContentLoaded when rendered in the L4 browser engine.
0 <= x <= 10000
Optional browser actions executed before extraction (triggers L4 Camoufox).
10
Scraped page result