Endpoint
Custom search
POST
/
custom_search
curl --request POST \
--url https://node.apiopenperplex.com/custom_search \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"system_prompt": "<string>",
"user_prompt": "<string>",
"location": "us",
"model": "gpt-4o-mini",
"search_type": "general",
"return_images": false,
"return_sources": false,
"temperature": 0.2,
"top_p": 0.9
}'
{
"llm_response": "<string>",
"sources": [
{}
],
"images": [
{}
],
"response_time": 123,
"error": "<string>"
}
Authorizations
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
curl --request POST \
--url https://node.apiopenperplex.com/custom_search \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"system_prompt": "<string>",
"user_prompt": "<string>",
"location": "us",
"model": "gpt-4o-mini",
"search_type": "general",
"return_images": false,
"return_sources": false,
"temperature": 0.2,
"top_p": 0.9
}'
{
"llm_response": "<string>",
"sources": [
{}
],
"images": [
{}
],
"response_time": 123,
"error": "<string>"
}