POST /v1 - FlareSolverr Compatible
This endpoint supports FlareSolverr request commands and explicit browser session management. See Browser Sessions for lifecycle commands and compatibility limits.
No authentication required.
Request
interface FlareSolverrRequest {
cmd?: 'request.get' | 'request.post' // default: 'request.get'
url: string // required for request.get / request.post
session?: string // reuse a named browser session
session_ttl_minutes?: number // rotate sessions older than this value
cookies?: InputCookie[] // import cookies before navigation
returnOnlyCookies?: boolean // omit solution.response
solveEmbeddedCaptchas?: boolean // TRAWL extension, default false
returnScreenshot?: boolean // include solution.screenshot
maxTimeout?: number // milliseconds, default SCRAPE_MAX_TIMEOUT_MS (60000)
postData?: string // body for request.post
headers?: Record<string, string>
proxy?: string | { url: string; username?: string; password?: string }
}Fields
| Field | Type | Required | Description |
|---|---|---|---|
cmd | string | No | "request.get" or "request.post" (default "request.get") |
url | string | Yes | The URL to scrape |
maxTimeout | number | No | Max wait in ms (default SCRAPE_MAX_TIMEOUT_MS, initially 60000); explicit values take precedence |
postData | string | No | POST body (only for request.post); defaults to form encoding when no content-type header is supplied. On native /scrape this field is named body. |
headers | object | No | Custom headers forwarded to the target across all tiers - see Custom Headers. For Prowlarr compatibility, contentType is accepted as Content-Type; serialized contentLength is ignored and recalculated by the HTTP client. An explicit standard Content-Type takes precedence. |
proxy | string | No | Per-request proxy override for Tier 3/4; with a session, set it on sessions.create instead, see Configuration § Proxies |
Detected blocking challenges must still pass the normal solver and wall checks. Optional form widgets on an accessible page are not solved by default, matching this endpoint's page-delivery purpose. To request their tokens too, set the TRAWL extension solveEmbeddedCaptchas: true. Solving is best effort; status: "ok" confirms page delivery, not a token from every widget. The native /scrape endpoint defaults to attempting embedded widgets.
Response
interface FlareSolverrResponse {
status: 'ok' | 'error'
message: string
startTimestamp: number // unix ms
endTimestamp: number // unix ms
version: '2.0.0'
solution: {
url: string // final URL after redirects
status: number // HTTP status code
headers: Record<string, string>
response?: string // raw HTML; omitted with returnOnlyCookies
screenshot?: string // base64 image when returnScreenshot is true
cookies: Cookie[]
userAgent: string
}
}
interface Cookie {
name: string
value: string
domain: string
path: string
expires: number
httpOnly: boolean
secure: boolean
sameSite?: string
}Examples
GET request (curl)
curl -s -X POST http://localhost:8191/v1 \
-H "Content-Type: application/json" \
-d '{
"cmd": "request.get",
"url": "https://nowsecure.nl",
"maxTimeout": 60000
}'GET request (JavaScript)
const res = await fetch('http://localhost:8191/v1', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
cmd: 'request.get',
url: 'https://nowsecure.nl',
maxTimeout: 60000,
}),
})
const data = await res.json()
// data.status === 'ok'
// data.solution.response → HTML string
// data.solution.cookies → Cookie[]
// data.solution.userAgent → browser UAGET request (Python)
import requests
res = requests.post('http://localhost:8191/v1', json={
'cmd': 'request.get',
'url': 'https://nowsecure.nl',
'maxTimeout': 60000,
}, timeout=65)
data = res.json()
assert data['status'] == 'ok'
html = data['solution']['response']
cookies = data['solution']['cookies']POST request
POST requests with postData must supply a content type. TRAWL accepts either a standard Content-Type header or Prowlarr's serialized headers.contentType representation at this compatibility endpoint. Native /scrape requests continue to require the standard header.
curl -s -X POST http://localhost:8191/v1 \
-H "Content-Type: application/json" \
-d '{
"cmd": "request.post",
"url": "https://example.com/api/login",
"postData": "username=user&password=pass",
"headers": { "Content-Type": "application/x-www-form-urlencoded" },
"maxTimeout": 30000
}'Error response
When the request fails, the response is still a FlareSolverr v2 envelope with status: "error" and an empty solution. The HTTP status code carries the failure class:
| Code | Meaning |
|---|---|
| 200 | status: "ok" (request succeeded) |
| 400 | Malformed request body |
| 429 | Pool exhausted - all browsers busy past BROWSER_ACQUIRE_TIMEOUT_MS |
| 500 | Internal error |
Example - pool exhausted (HTTP 429):
{
"status": "error",
"message": "Browser pool saturated, retry shortly",
"startTimestamp": 1700000000000,
"endTimestamp": 1700000015000,
"version": "2.0.0",
"solution": {
"url": "https://nowsecure.nl",
"status": 0,
"headers": {},
"response": "",
"cookies": [],
"userAgent": ""
}
}