Get Started
Quickstart
Create an API key, make one web search request, and understand the response.
Get an API key
Sign up at dashboard.search1api.com, then open API Keys and create a key. New accounts receive 100 credits without a credit card.
Keep the key server-side. For local development, put it in an environment variable:
export SEARCH1API_KEY="YOUR_API_KEY"Search the web
curl -X POST https://api.search1api.com/search \
-H "Authorization: Bearer $SEARCH1API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "best open source vector databases"}'Read the response
{
"searchParameters": {
"query": "best open source vector databases",
"max_results": 5
},
"results": [
{
"title": "Qdrant - Vector Database",
"link": "https://qdrant.tech/",
"snippet": "Qdrant is an open source vector database...",
"content": ""
}
]
}Search returns up to five results by default. snippet is the search engine summary. content is populated when you ask Search1API to crawl a result.
Decide what to build next
Your first request is complete. From here:
- If the model needs full page text, learn how to use
crawl_resultsin Improving search results. - If you are starting from a URL or need structured data, use Choosing an endpoint.
- Before production, review Authentication, Credits and limits, and Error handling.