Skip to main content

Documentation 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.

SearchAPI ships with multiple deployment paths so you can run it wherever your workflow requires — a local Python environment, a container runtime, or a managed cloud service. All options expose the API on port 8000 and include the MCP server at /mcp.
Run SearchAPI directly on your machine using uv, an ultrafast Python package and project manager.Prerequisites: Python 3.13 or higher, uv installed.
1

Clone the repository

git clone https://github.com/Pratyay360/search-api.git
cd search-api
2

Install dependencies

uv sync
This installs all dependencies from pyproject.toml into an isolated virtual environment. The --frozen flag is not required for local development.
3

Start the server

uv fastapi run
The API is now available at http://localhost:8000.

Port and health check reference

DetailValue
Default port8000
Health check endpointGET /health
Expected health response{"status": "ok"}
Root endpointGET / — returns API status and MCP server path
MCP server/mcp

CORS configuration

SearchAPI allows all origins, methods, and headers by default. The CORSMiddleware is configured with allow_origins=["*"], which means you can call the API from any frontend, script, or tool without additional configuration.
CORS is intentionally open for flexibility in research and development workflows. If you are deploying SearchAPI in a production environment with sensitive data, restrict allow_origins to trusted domains by modifying main.py before building your image. SearchAPI is intended for educational and research use. You are responsible for complying with the terms of service of any upstream search engine and applicable laws in your jurisdiction.

Build docs developers (and LLMs) love