Original heroes and villains with powers, teams and nemeses. Practice nested resources (/heroes/{id}/nemesis), filtering and role-based auth.
The Superhero API is the smallest resource tree in the catalog and the clearest one for practising nested routes: heroes own powers, and powers are addressed underneath their hero rather than in a flat collection. If you are writing a client that has to build URLs from parent ids, or tests that must clean up children before parents, this is the shape to rehearse on.
Base URL: https://funapi.dev/api/superheroes/v1 · 6 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.
capes, powers and their sworn enemies
GET /superheroes/v1/heroes — List heroes (paginated, filterable)GET /superheroes/v1/heroes/{id} — Get one heroGET /superheroes/v1/heroes/{id}/nemesis — Get a hero's nemesis (nested resource)POST /superheroes/v1/heroes — Register a new hero (requires Bearer auth)DELETE /superheroes/v1/heroes/{id} — Retire a hero (requires Bearer auth)POST /superheroes/v1/heroes/versus — Simulate a fight between two heroes (requires Bearer auth)