from parallel import Parallel
client = Parallel()
search = client.search(
objective="Find latest information about Parallel Web Systems. Focus on new product releases, benchmarks, or company announcements.",
search_queries=["Parallel Web Systems products", "Parallel Web Systems announcements"],
)
print(search.results)import Parallel from "parallel-web";
const client = new Parallel();
const search = await client.search({
objective: "Find latest information about Parallel Web Systems. Focus on new product releases, benchmarks, or company announcements.",
search_queries: ["Parallel Web Systems products", "Parallel Web Systems announcements"],
});
console.log(search.results);HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1/search")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_queries\": [\n \"<string>\"\n ]\n}")
.asString();curl --request POST \
--url https://api.parallel.ai/v1/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"objective": "Find latest information about Parallel Web Systems. Focus on new product releases, benchmarks, or company announcements.",
"search_queries": ["Parallel Web Systems products", "Parallel Web Systems announcements"]
}'{
"search_id": "search_fcb2b4f3c75e418687bccaa1a8381331",
"results": [
{
"url": "https://www.example.com",
"title": "Sample webpage title",
"publish_date": "2024-01-15",
"excerpts": [
"Sample excerpt 1",
"Sample excerpt 2"
]
}
],
"session_id": "session_fcb2b4f3c75e418687bccaa1a8381331"
}{
"type": "error",
"error": {
"ref_id": "search_fcb2b4f3c75e418687bccaa1a8381331",
"message": "Request validation error"
}
}Search
from parallel import Parallel
client = Parallel()
search = client.search(
objective="Find latest information about Parallel Web Systems. Focus on new product releases, benchmarks, or company announcements.",
search_queries=["Parallel Web Systems products", "Parallel Web Systems announcements"],
)
print(search.results)import Parallel from "parallel-web";
const client = new Parallel();
const search = await client.search({
objective: "Find latest information about Parallel Web Systems. Focus on new product releases, benchmarks, or company announcements.",
search_queries: ["Parallel Web Systems products", "Parallel Web Systems announcements"],
});
console.log(search.results);HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1/search")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_queries\": [\n \"<string>\"\n ]\n}")
.asString();curl --request POST \
--url https://api.parallel.ai/v1/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"objective": "Find latest information about Parallel Web Systems. Focus on new product releases, benchmarks, or company announcements.",
"search_queries": ["Parallel Web Systems products", "Parallel Web Systems announcements"]
}'{
"search_id": "search_fcb2b4f3c75e418687bccaa1a8381331",
"results": [
{
"url": "https://www.example.com",
"title": "Sample webpage title",
"publish_date": "2024-01-15",
"excerpts": [
"Sample excerpt 1",
"Sample excerpt 2"
]
}
],
"session_id": "session_fcb2b4f3c75e418687bccaa1a8381331"
}{
"type": "error",
"error": {
"ref_id": "search_fcb2b4f3c75e418687bccaa1a8381331",
"message": "Request validation error"
}
}Authorizations
Body
Search request.
Concise keyword search queries, 3-6 words each. At least one query is required, provide 2-3 for best results. Used together with objective to focus results on the most relevant content.
Natural-language description of the underlying question or goal driving the search. Used together with search_queries to focus results on the most relevant content. Should be self-contained with enough context to understand the intent of the search.
Search mode preset: supported values are turbo, fast, basic, and advanced. Turbo mode is optimized for the fastest responses. Use Fast mode for high quality search within a 1-second latency budget. Basic mode offers low latency and works best with 2-3 high-quality search_queries. Advanced mode provides higher quality with more advanced retrieval and compression. Defaults to advanced when omitted.
turbo, fast, basic, advanced Upper bound on total characters across excerpts from all 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 source policy, fetch policy, and excerpt settings. May impact result quality and latency unless used carefully. When omitted, excerpts are enabled by default.
Show child attributes
Show child attributes
Response
Successful Response
Search response.
Search ID. Example: search_cad0a6d2dec046bd95ae900527d880e7
A list of search results, ordered by decreasing relevance.
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 search request, if any.
Show child attributes
Show child attributes
Usage metrics for the search request.
Show child attributes
Show child attributes