from parallel import Parallel
client = Parallel()
extract = client.beta.extract(
urls=["https://www.example.com"],
excerpts=True,
full_content=True
)
print(extract.results)import Parallel from "parallel-web";
const client = new Parallel();
const extract = await client.beta.extract({
urls: ["https://www.example.com"],
excerpts: true,
full_content: true
});
console.log(extract.results);HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1beta/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/v1beta/extract \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"urls": ["https://www.example.com"],
"excerpts": true,
"full_content": true
}'{
"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"
}
]
}{
"type": "error",
"error": {
"ref_id": "extract_8a911eb27c7a4afaa20d0d9dc98d07c0",
"message": "Request validation error"
}
}Extract
Extracts relevant content from specific web URLs.
from parallel import Parallel
client = Parallel()
extract = client.beta.extract(
urls=["https://www.example.com"],
excerpts=True,
full_content=True
)
print(extract.results)import Parallel from "parallel-web";
const client = new Parallel();
const extract = await client.beta.extract({
urls: ["https://www.example.com"],
excerpts: true,
full_content: true
});
console.log(extract.results);HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1beta/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/v1beta/extract \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"urls": ["https://www.example.com"],
"excerpts": true,
"full_content": true
}'{
"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"
}
]
}{
"type": "error",
"error": {
"ref_id": "extract_8a911eb27c7a4afaa20d0d9dc98d07c0",
"message": "Request validation error"
}
}Authorizations
Headers
Body
Extract request.
If provided, focuses extracted content on the specified search objective.
If provided, focuses extracted content on the specified keyword search queries.
Fetch policy: determines when to return cached content from the index (faster) vs fetching live content (fresher). Default is to use a dynamic policy based on the search objective and url.
Show child attributes
Show child attributes
Include excerpts from each URL relevant to the search objective and queries. Note that if neither objective nor search_queries is provided, excerpts are redundant with full content.
Include full content from each URL. Note that if neither objective nor search_queries is provided, excerpts are redundant with full content.
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"
Response
Successful Response
Fetch result.
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
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