Parallel API / Extract
Parallel tool parallel-extract on looot: input fields, $0.001 per result, output shape, and code to run it with curl, JavaScript or Python.
Extracts relevant content from specific web URLs. The legacy Extract API reference (/v1beta/extract endpoint) is available here, and migration guide is here.
- Tool id:
parallel-extract - Provider: Parallel
- Job: Get extract (
extract.get) - Price: $0.001 per result. A call that fails at the provider costs $0.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
advanced_settings |
string | no | Advanced configuration for fetch policy, excerpt settings, and full content settings. May impact result quality and latency unless used carefully. When omitted, excerpts are enabled and full content is disabled by default. |
client_model |
string | no | The model generating this request and consuming the results. Enables optimizations and tailors default settings for the model’s capabilities. Example: “claude-opus-4-7” |
max_chars_total |
string | no | Upper bound on total characters across excerpts from all extracted results. |
objective |
string | no | As in SearchRequest, a natural-language description of the underlying question or goal driving the request. Used together with search_queries to focus excerpts on the most relevant content. |
search_queries |
string | no | Optional keyword search queries, as in SearchRequest. Used together with objective to focus excerpts on the most relevant content. |
session_id |
string | no | Session identifier to track calls across separate search and extract calls, to be used as part of a larger task. Specifying it may give better contextual results for subsequent API calls. |
urls |
array | yes | URLs to extract content from. Up to 20 URLs. |
Output
Shape of the run’s result, checked against 2 real answers:
{ usage: { name, count }[], errors: { url, content, error_type, http_status_code }[], results: { url, title, excerpts: string[], full_content, publish_date }[], metadata, warnings: { type, detail, message }[], extract_id, session_id }
Run it
Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.
Example input with placeholder values:
curl -X POST "https://api.looot.ai/v1/runs" \
-H "Authorization: Bearer $LOOOT_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"endpointId":"parallel-extract","input":{"urls":[],"client_model":"claude-opus-4-7"},"wait":30}'const response = await fetch("https://api.looot.ai/v1/runs", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
endpointId: "parallel-extract",
input: {
urls: [],
client_model: "claude-opus-4-7",
},
wait: 30,
}),
});
const run = await response.json();
console.log(run.status, run.result);import os
import uuid
import requests
response = requests.post(
"https://api.looot.ai/v1/runs",
headers={
"Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"endpointId": "parallel-extract",
"input": {
"urls": [],
"client_model": "claude-opus-4-7",
},
"wait": 30,
},
timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))To let looot pick among every provider of this job instead, send job:extract.get as endpointId; see the job page.