search endpoint with a query string and specify the maximum number of results to return.
The examples below limit the number of search results to 5.
max_results is limited to 1000. Values above 1000 are clamped down to 1000.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to limit search results using supported SDKs or REST.
search endpoint with a query string and specify the maximum number of results to return.
The examples below limit the number of search results to 5.
max_results is limited to 1000. Values above 1000 are clamped down to 1000.from seltz import Seltz
client = Seltz()
# Get up to 5 results
response = client.search("Who is going to be Apple's next CEO?", max_results=5)
print(f"Found {len(response.documents)} documents")
for doc in response.documents:
print(f"- {doc.url}")
import { Seltz } from "seltz"
const client = new Seltz();
const result = await client.search({ query: "Who is going to be Apple's next CEO?", maxResults: 5 });
for (const doc of result.documents) {
console.log(`${doc.url}\n${doc.content}\n---`);
}
# Search the Web
curl -X POST https://api.seltz.ai/v1/search \
-H "x-api-key: $SELTZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Who is going to be Apple'\''s next CEO?", "max_results": 5}'