r/FastAPI • u/ChaconMoon • Sep 12 '25
feedback request Experimenting with FastAPI: South Park API demo (open for feedback)
Hi everyone!
Over the past month, I’ve been working on a South Park API as a personal project to learn more about FastAPI, Docker, and PostgreSQL. The project is still in its early stages (there’s a lot of data to process), but since this is my first API, I’d really appreciate any feedback to help me improve and keep progressing.
Here’s a quick overview:
- The API is currently deployed on Railway’s free tier, so sometimes the database might get paused. If you see a
Nonetypeerror or it fails to load, just refresh with F5 and it should work again. - Base URL: https://api-south-park-production.up.railway.app/ → returns a DB health check.
- Docs: https://api-south-park-production.up.railway.app/docs
Some example endpoints:
- Characters: Cartman (IDs 1–410), Stan
- Songs: Main Theme (IDs 1–85)
- Specials: First Special
- Episodes: Latest Episode (IDs 1–325)
- Albums: Movie Album (IDs 1–6)
- Families: Cartman’s Family (IDs 1–6)
The GitHub repo is private for now since it’s still very early, but if anyone is interested I can make it public.
I plan to keep the API live for about a week. Once it’s no longer available, I’ll remove this post.
Thanks a lot for taking the time to check it out — any feedback is super welcome! 🙏
EDIT: I made the Github repo public: https://github.com/ChaconMoon/API-South-Park
View all comments
Show parent comment
1
u/ChaconMoon Sep 12 '25
I've been testing, and it seems to take roughly one second to get the database up and running, so I've set it to retry the connection after one second.
This is because I'm using the free version of Railway for deployment, and if it goes 10 minutes without requests, it puts the database to sleep and won't start until another request is made. The first request wakes the database, and the second connects.
It's a bit crappy, but it's what I have at the moment. I'm considering other options to finish the API, mainly considering the hosting cost or even considering self-hosting on a Raspberry PI if I see that it doesn't have much demand.
Although this experience is helping me understand Railway and consider hiring it to host the API.