Spaces:
Sleeping
Sleeping
File size: 730 Bytes
0f02134 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | ---
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
|