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.
Get progress counters and scraped pages for a crawl job.
cURL
curl --request GET \ --url https://api.gainflow.ai/v1/crawls/{crawl_id} \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.gainflow.ai/v1/crawls/{crawl_id}" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.gainflow.ai/v1/crawls/{crawl_id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "start_url": "<string>", "status": "queued", "max_pages": 123, "max_depth": 123, "discovered_pages": 123, "completed_pages": 123, "failed_pages": 123, "created_at": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z", "pages": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "url": "<string>", "depth": 123, "status": "queued", "http_status": 123, "result": {}, "error": "<string>" } ] }
{ "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 <= x <= 100
Crawl job with scraped pages
queued
running
completed
canceled
failed
Show child attributes