Characters, locations and episodes from the animated sci-fi sitcom. Practice CRUD, Bearer auth, nested resources, pagination and optimistic concurrency.
The Rick and Morty API spans characters, locations and episodes across a multiverse, with characters appearing in many episodes. The many-to-many shape is the point: it is the catalog's best target for testing a client that has to de-duplicate records arriving from more than one relationship at once.
Base URL: https://funapi.dev/api/rickandmorty/v1 · 9 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.
GET https://funapi.dev/api/rickandmorty/v1/characters — List characters (paginated, filter by status). No token, no signup:
curl -i https://funapi.dev/api/rickandmorty/v1/characters
answers 200 OK with:
{
"page": 1,
"pageSize": 4,
"total": 8,
"totalPages": 2,
"data": [
{
"id": 1,
"name": "Rick Sanchez",
"species": "Human",
"status": "Alive",
"locationId": 1,
"_v": 1
},
{
"id": 2,
"name": "Morty Smith",
"species": "Human",
"status": "Alive",
"locationId": 1,
"_v": 1
},
{
"id": 3,
"name": "Summer Smith",
"species": "Human",
"status": "Alive",
"locationId": 1,
"_v": 1
},
{
"id": 4,
"name": "Beth Smith",
"species": "Human",
"status": "Alive",
"locationId": 1,
"_v": 1
}
]
}
eight characters, one dead
GET /rickandmorty/v1/characters — List characters (paginated, filter by status) · Responds with 200 400 404 Link to this endpointGET /rickandmorty/v1/characters/{id} — Get one character · Responds with 200 404 Link to this endpointGET /rickandmorty/v1/characters/{id}/location — Get a character's current location (nested resource) · Responds with 200 404 Link to this endpointPOST /rickandmorty/v1/characters — Add a character (requires Bearer auth) · Responds with 201 400 401 Link to this endpointPUT /rickandmorty/v1/characters/{id} — Update a character (requires Bearer auth) · Responds with 200 400 401 404 412 Link to this endpointDELETE /rickandmorty/v1/characters/{id} — Remove a character (portal them out of existence) (requires Bearer auth) · Responds with 204 401 403 404 412 Link to this endpointplanets, stations, and a dimension
GET /rickandmorty/v1/locations — List locations, filter by dimension · Responds with 200 Link to this endpointfive picks across seven seasons
GET /rickandmorty/v1/episodes — List episodes, filter by episode code · Responds with 200 Link to this endpointGET /rickandmorty/v1/episodes/random — A random episode · Responds with 200 Link to this endpointUnofficial and fan-made. The Rick and Morty API is a practice API that borrows a theme; it is not affiliated with, sponsored or endorsed by the owners of the names it references, which belong to them. Every record it returns is test data for exercising HTTP behaviour, not an authoritative source on the subject.
Last updated