Search the web
curl --request POST \
--url https://api.repromptai.com/v1/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "What is the difference between a web search API and a research agent?"
}
'import requests
url = "https://api.repromptai.com/v1/search"
payload = { "query": "What is the difference between a web search API and a research agent?" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'What is the difference between a web search API and a research agent?'})
};
fetch('https://api.repromptai.com/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"query": "<string>",
"results": [
{
"title": "<string>",
"url": "<string>",
"position": 2,
"snippet": "<string>",
"date": "<string>"
}
],
"answer_box": {
"title": "<string>",
"answer": "<string>",
"snippet": "<string>",
"url": "<string>",
"date": "<string>"
},
"knowledge_graph": {
"title": "<string>",
"type": "<string>",
"description": "<string>",
"website": "<string>",
"facts": {}
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Search & Answers
Search the web
Returns a stable, normalized list of web search results.
POST
/
search
Search the web
curl --request POST \
--url https://api.repromptai.com/v1/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "What is the difference between a web search API and a research agent?"
}
'import requests
url = "https://api.repromptai.com/v1/search"
payload = { "query": "What is the difference between a web search API and a research agent?" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'What is the difference between a web search API and a research agent?'})
};
fetch('https://api.repromptai.com/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"query": "<string>",
"results": [
{
"title": "<string>",
"url": "<string>",
"position": 2,
"snippet": "<string>",
"date": "<string>"
}
],
"answer_box": {
"title": "<string>",
"answer": "<string>",
"snippet": "<string>",
"url": "<string>",
"date": "<string>"
},
"knowledge_graph": {
"title": "<string>",
"type": "<string>",
"description": "<string>",
"website": "<string>",
"facts": {}
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Natural-language web query.
Required string length:
1 - 1000⌘I