A simple AI-written web search API built with Flask.
- Perform web searches
- Retrieve search results with titles and snippets
- Swagger UI documentation
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Start the server:
python server.py - Access the API at
http://localhost:4000 - View Swagger documentation at
http://localhost:4000/docs
- GET
/search?q={query}: Perform a web search
To run the application using Docker:
- Build the image:
docker build -t search-api . - Run the container:
docker run -p 4000:4000 search-api
MIT License