Characters, homeworlds and starships from a fictional space opera. Practice CRUD, Bearer auth, nested resources, pagination and optimistic concurrency.
The Star Wars API covers characters, planets and starships — three related collections with enough cross-references to make filtering interesting. It is a good first stop for anyone building a client that has to resolve ids across resources and page through more records than fit in a single response.
Base URL: https://funapi.dev/api/galaxy/v1 · 11 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.
five worlds, one swamp
GET /galaxy/v1/planets — List all planetsGET /galaxy/v1/planets/{id} — Get one planetrebels, empire, and neutral parties
GET /galaxy/v1/characters — List characters (paginated, filter by affiliation)GET /galaxy/v1/characters/{id} — Get one characterGET /galaxy/v1/characters/{id}/homeworld — Get a character's homeworld (nested resource)POST /galaxy/v1/characters — Add a character (requires Bearer auth)PUT /galaxy/v1/characters/{id} — Update a character (requires Bearer auth)DELETE /galaxy/v1/characters/{id} — Remove a character (requires Bearer auth)freighters to capital ships
GET /galaxy/v1/starships — List starships, filter by classGET /galaxy/v1/starships/random — A random starshipGET /galaxy/v1/starships/{id} — Get one starship