curl --request POST \
--url https://api.parallel.ai/alpha/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"objective": "<string>",
"search_queries": [
"<string>"
],
"processor": "base",
"max_results": 123,
"max_chars_per_result": 123,
"source_policy": {
"include_domains": "wikipedia.org",
"exclude_domains": "reddit.com"
}
}'
{
"search_id": "search_fcb2b4f3-c75e-4186-87bc-caa1a8381331",
"results": [
{
"url": "https://www.example.com",
"title": "Sample webpage title",
"excerpts": [
"Sample excerpt 1",
"Sample excerpt 2"
]
}
]
}
Searches the web.
curl --request POST \
--url https://api.parallel.ai/alpha/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"objective": "<string>",
"search_queries": [
"<string>"
],
"processor": "base",
"max_results": 123,
"max_chars_per_result": 123,
"source_policy": {
"include_domains": "wikipedia.org",
"exclude_domains": "reddit.com"
}
}'
{
"search_id": "search_fcb2b4f3-c75e-4186-87bc-caa1a8381331",
"results": [
{
"url": "https://www.example.com",
"title": "Sample webpage title",
"excerpts": [
"Sample excerpt 1",
"Sample excerpt 2"
]
}
]
}
Base class for search queries.
Successful Response
Output for the Search API.