π Bluey API Documentation
Welcome to the Bluey API documentation! This RESTful API allows you to explore detailed information about characters from the beloved animated series Bluey.
π Base URL
https://api.blueyapi.dev
𧩠Endpoints
curl https://api.blueyapi.dev/characters
curl https://api.blueyapi.dev/characters/1
πΉ GET /characters
Retrieve a list of all available characters.
β Response
{
"response": {
"data": [{
"_id": 1,
"name": "Bluey Heeler",
"age": 6,
"breed": "Blue Heeler",
"sourceUrl": "https://example.com",
"imageUrl": "https://example.com/image.jpg",
"episode": ["Magic Xylophone"],
"minisodes": [],
"books": [],
"createdAt": "2023-01-01T00:00:00.000Z",
"updatedAt": "2023-01-05T00:00:00.000Z",
"url": "https://api.blueyapi.dev/characters/1"
}],
"count": 1,
"timestamp": "2025-03-31T15:13:29.407Z"
},
"error": null
}
πΉ GET /characters/:id
Retrieve a specific character by its ID.
πΈ Parameters
Param | Type | Description |
---|---|---|
id | number | The ID of the character |
β Response
{
"response": {
"data": {
"_id": 1,
"name": "Bluey Heeler",
"age": 6,
"breed": "Blue Heeler",
"sourceUrl": "https://example.com",
"imageUrl": "https://example.com/image.jpg",
"episode": ["Magic Xylophone"],
"minisodes": [],
"books": [],
"createdAt": "2023-01-01T00:00:00.000Z",
"updatedAt": "2023-01-05T00:00:00.000Z",
"url": "https://api.blueyapi.dev/characters/1"
},
"timestamp": "2025-03-31T12:00:00.000Z"
},
"error": null
}
β οΈ Error Handling
Errors are formatted uniformly with the following structure:
{
"response": null,
"error": {
"message": "Character not found",
"stack": "...stack trace...",
"status": 404
}
}
All responses are wrapped using a global interceptor, ensuring consistent formatting for both success and error cases.
π§ͺ Tech Stack
- NestJS for backend and routing.
- class-transformer for serialization (DTO).
- Interceptor for global response formatting.
- Astro for frontend documentation and playground.
π¦ Future Improvements
- Search and filter endpoints (
/characters?name=Bluey
) - Pagination support
- Caching layer
- Related resources (episodes, locations, etc.)
π¨βπ» Author
Built with β€οΈ by Norman Torres as a way to explore modern backend and frontend frameworks, and share something fun inspired by his sonβs favorite show β Bluey.
ποΈ License
MIT