post /v1/extract
AI structured extraction → JSON(schema 或 prompt 必填其一)
Costs 3 credits per call.
Auth: Authorization: Bearer ac-… · billed per call (see Credits) — envelope {success,data,credit_cost} or {success:false,error}.
Request body
| Field | Type | Description |
|---|---|---|
url * |
string uri (/^https?:///) |
Page URL to fetch (http or https). |
schema |
object |
|
prompt |
string (len≤4000) |
|
wait_for |
integer (≥0 ≤60000) |
Extra wait after page load, in ms (0–60000). Use for slow JS-heavy pages. |
timeout |
integer (≥1000 ≤60000) |
Request budget in ms (1000–60000). Default is provider default. |
Full request schema
{
"$ref": "#/components/schemas/ExtractRequest"
}Responses
| Status | Description | Body |
|---|---|---|
200 | OK | application/json — object |
default | Error | application/json — ErrorResponse |