SearchAPI exposes a set of HTTP endpoints built on FastAPI, each designed for a specific content type. Every endpoint accepts query parameters in the URL, requires no authentication, and returns a JSON array of URLs (or DOIs for the paper search endpoint). The service is self-hosted — deploy it locally or on any cloud provider and call it atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pratyay360/searchapi/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:8000 by default.
Base URL
localhost:8000 with your host and port. See the deployment guide for cloud and container options.
Request format
All endpoints useGET. Parameters are passed as URL query string key-value pairs — there is no request body.
Authentication
No authentication is required. All endpoints are open by default. CORS is enabled for all origins, so you can call the API from any frontend, script, or agent.Response format
All endpoints returnapplication/json. Successful responses return HTTP 200 with a JSON array.
/search/paper) returns an array of DOI strings instead of URLs:
Error responses
| Status | When it occurs |
|---|---|
400 | Bad request or search engine error on /search/, /search/engine, /search/paper |
500 | Internal error on /searchpdfs/, /search/specific/, /repositories/, /wiki/, /books/, /news/, /useragent/ |
MCP server
SearchAPI ships with a built-in MCP server mounted at/mcp. All endpoints are available as MCP tools, letting AI assistants such as Claude call them directly without writing code. See the MCP server guide for setup instructions.
All endpoints
| Method | Path | Description |
|---|---|---|
GET | /search/ | General web search across multiple engines |
GET | /search/engine | Search using a specific engine (Bing, Google, DuckDuckGo, etc.) |
GET | /search/paper | Academic paper search via Crossref, returns DOIs |
GET | /books/ | Book search, returns URLs |
GET | /news/ | News article search, returns URLs |
GET | /searchpdfs/ | Search for PDF documents, returns direct PDF URLs |
GET | /search/specific/ | Search for files by filetype (pdf, docx, pptx, etc.) |
GET | /repositories/ | Search GitHub and GitLab repositories |
GET | /wiki/ | Search across Wikipedia and Wikimedia sites |
GET | / | Service status and MCP server path |
GET | /health | Health check endpoint |
GET | /useragent/ | Random user agent string |