Web2API is a FastAPI web app for turning messy websites into structured outputs.
It includes two workflows:
- Storefront extraction: uses TinyFish + OpenAI to extract product-like results and render them in a table and UI preview
- Website analysis: fetches a live page, infers schema/page structure, and generates sample API endpoints
- FastAPI backend
- TinyFish-powered extraction
- OpenAI-powered schema shaping and showcase generation
- Product table preview
- UI-based product preview
- Website analysis studio
- Generated sample API endpoints
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reloadOpen:
http://127.0.0.1:8000/http://127.0.0.1:8000/docs
Create a .env file with:
TINYFISH_API_KEY=your_tinyfish_key
OPENAI_API_KEY=your_openai_keyOptional:
TINYFISH_URL=https://agent.tinyfish.ai/v1/automation/runFor Render:
- Build command:
pip install -r requirements.txt - Start command:
uvicorn main:app --host 0.0.0.0 --port $PORT
- The website-analysis workflow stores results in memory, so they reset on redeploy/restart.
- This is acceptable for a hackathon demo but not persistent production storage.