API Reference
Auto-generated
Firecrawl Compat
API reference for firecrawl compat endpoints.
Auto-generated
This page was generated from the OpenAPI spec. Run
make generate-docs to refresh after spec changes.POST /api/v0/crawl
POST
/api/v0/crawlCrawl a website (Firecrawl-compatible)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Required | The URL to crawl |
| excludePaths | string[] | Optional | excludePaths |
| includePaths | string[] | Optional | includePaths |
| maxDepth | integer | Optional | Maximum depth to crawl relative to the entered URLDefault: 2 |
| ignoreSitemap | boolean | Optional | Ignore the website sitemap when crawlingDefault: False |
| limit | integer | Optional | Maximum number of pages to crawlDefault: 10 |
| scrapeOptions | object | Optional | Scrape options embedded in a Firecrawl crawl request. |
Request Example
Bash
curl -X POST https://api.alterlab.io/api/v0/crawl \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "example_url",
"maxDepth": 2,
"ignoreSitemap": false
}'Response Example
JSON
{
"success": true,
"id": "example",
"url": "example"
}GET /api/v0/crawl/{crawl_id}
GET
/api/v0/crawl/{crawl_id}Get crawl status (Firecrawl-compatible)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| crawl_id | string | Required | crawl_id |
Request Example
Bash
curl -X GET https://api.alterlab.io/api/v0/crawl/<crawl_id> \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response Example
JSON
{
"success": true,
"status": "example",
"total": 0,
"completed": 0,
"creditsUsed": 0,
"expiresAt": "example"
}DELETE /api/v0/crawl/{crawl_id}
DELETE
/api/v0/crawl/{crawl_id}Cancel a crawl (Firecrawl-compatible)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| crawl_id | string | Required | crawl_id |
Request Example
Bash
curl -X DELETE https://api.alterlab.io/api/v0/crawl/<crawl_id> \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response Example
JSON
{
"status": "ok"
}POST /api/v0/map
POST
/api/v0/mapMap a website (Firecrawl-compatible)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Required | The URL to map |
| search | string | Optional | search |
| ignoreSitemap | boolean | Optional | Ignore the website sitemap when crawlingDefault: False |
| sitemapOnly | boolean | Optional | Only return URLs found in the sitemapDefault: False |
| includeSubdomains | boolean | Optional | Include subdomains of the websiteDefault: False |
| limit | integer | Optional | Maximum number of links to returnDefault: 5000 |
Request Example
Bash
curl -X POST https://api.alterlab.io/api/v0/map \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "example_url",
"ignoreSitemap": false,
"sitemapOnly": false,
"includeSubdomains": false
}'Response Example
JSON
{
"success": true,
"links": [],
"alterlab": "example"
}