Python
cURL
Javascript
Response
import requests url = 'https://platform.gensee.ai/tool/search' params = { 'query': 'your_search_query', 'max_results': 5 } headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your-gensee-search-api-key' } response = requests.get(url, params=params, headers=headers) print(response.json())
curl -X GET \ 'https://platform.gensee.ai/tool/search?query=your_search_query&max_results=5' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer your-gensee-search-api-key'
const url = new URL('https://platform.gensee.ai/tool/search'); url.searchParams.append('query', 'your_search_query'); url.searchParams.append('max_results', '5'); fetch(url, { method: 'GET', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer your-gensee-search-api-key' } }) .then(response => response.json()) .then(data => console.log(data));
{ "search_response": [ { "title": "title of the result", "url": "source url", "content": "summary of the result...", } ], "elapsed_time": 450 }