Spaces:
Sleeping
Sleeping
| title: Wikipedia Lookup API | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: docker | |
| pinned: false | |
| # Wikipedia Lookup API | |
| A simple FastAPI application that looks up Wikipedia URLs for any topic. | |
| ## Usage | |
| Send a GET request to the root endpoint (`/`) with a `topic` query parameter: | |
| ``` | |
| GET /?topic=Larry Page | |
| ``` | |
| ### Response | |
| ```json | |
| { | |
| "topic": "Larry Page", | |
| "url": "https://en.wikipedia.org/wiki/Larry_Page" | |
| } | |
| ``` | |
| ## Endpoints | |
| - `GET /` - Look up a Wikipedia URL for a topic | |
| - `GET /health` - Health check endpoint | |
| ## Example | |
| Visit: `https://your-space-url.hf.space/?topic=Python` | |
| ## Technology Stack | |
| - FastAPI | |
| - Wikipedia Python library | |
| - Uvicorn ASGI server | |