from parallel import Parallel
client = Parallel()
extract = client.extract(
urls=["https://www.example.com"],
objective="Summarize the page",
)
print(extract.results)import Parallel from "parallel-web";
const client = new Parallel();
const extract = await client.extract({
urls: ["https://www.example.com"],
objective: "Summarize the page",
});
console.log(extract.results);HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1/extract")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ]\n}")
.asString();curl --request POST \
--url https://api.parallel.ai/v1/extract \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"urls": ["https://www.example.com"],
"objective": "Summarize the page"
}'{
"extract_id": "extract_8a911eb27c7a4afaa20d0d9dc98d07c0",
"results": [
{
"url": "https://www.example.com",
"title": "Example Title",
"excerpts": [
"Excerpted text ..."
],
"full_content": "Full content ..."
}
],
"errors": [
{
"url": "https://www.example.com",
"error_type": "fetch_error",
"http_status_code": 500,
"content": "Error fetching content from https://www.example.com"
}
],
"session_id": "session_8a911eb27c7a4afaa20d0d9dc98d07c0"
}{
"type": "error",
"error": {
"ref_id": "extract_8a911eb27c7a4afaa20d0d9dc98d07c0",
"message": "Request validation error"
}
}Extract
from parallel import Parallel
client = Parallel()
extract = client.extract(
urls=["https://www.example.com"],
objective="Summarize the page",
)
print(extract.results)import Parallel from "parallel-web";
const client = new Parallel();
const extract = await client.extract({
urls: ["https://www.example.com"],
objective: "Summarize the page",
});
console.log(extract.results);HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1/extract")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ]\n}")
.asString();curl --request POST \
--url https://api.parallel.ai/v1/extract \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"urls": ["https://www.example.com"],
"objective": "Summarize the page"
}'{
"extract_id": "extract_8a911eb27c7a4afaa20d0d9dc98d07c0",
"results": [
{
"url": "https://www.example.com",
"title": "Example Title",
"excerpts": [
"Excerpted text ..."
],
"full_content": "Full content ..."
}
],
"errors": [
{
"url": "https://www.example.com",
"error_type": "fetch_error",
"http_status_code": 500,
"content": "Error fetching content from https://www.example.com"
}
],
"session_id": "session_8a911eb27c7a4afaa20d0d9dc98d07c0"
}{
"type": "error",
"error": {
"ref_id": "extract_8a911eb27c7a4afaa20d0d9dc98d07c0",
"message": "Request validation error"
}
}Authorizations
Body
Extract request.
URLs to extract content from. Up to 20 URLs.
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.
Optional keyword search queries, as in SearchRequest. Used together with objective to focus excerpts on the most relevant content.
Upper bound on total characters across excerpts from all extracted results.
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.
1000The model generating this request and consuming the results. Enables optimizations and tailors default settings for the model's capabilities.
"claude-opus-4-7"
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.
Show child attributes
Show child attributes
Response
Successful Response
Extract response.
Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7
Successful extract results.
Show child attributes
Show child attributes
Extract errors: requested URLs not in the results.
Show child attributes
Show child attributes
Session identifier. Echoed back from the request if provided, otherwise generated by the server. Should be passed to future search and extract calls made by the agent as part of the same larger task.
"session_8a911eb27c7a4afaa20d0d9dc98d07c0"
Warnings for the extract request, if any.
Show child attributes
Show child attributes
Usage metrics for the extract request.
Show child attributes
Show child attributes