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.
Queue an asynchronous batch scrape of up to 1,000 URLs.
cURL
curl --request POST \ --url https://api.gainflow.ai/v1/batches \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "urls": [ "<string>" ] } '
import requests url = "https://api.gainflow.ai/v1/batches" payload = { "urls": ["<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({urls: ['<string>']}) }; fetch('https://api.gainflow.ai/v1/batches', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "queued", "total_items": 123, "completed_items": 123, "failed_items": 123, "created_at": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z" }
{ "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.
1 - 1000
2048
1 - 4
markdown
html
raw_html
links
Show child attributes
^[A-Z]{2}$
Accepted batch job
queued
running
completed
canceled
failed