API Overview
The Zoo Arcadia REST API provides programmatic access to zoo information including animals, habitats, services, schedules, and testimonials. The API follows RESTful principles and returns responses in JSON format.Base URL
All API requests are made to:API Version
Current API version: 1.0.0The API version is included in the root endpoint response. Version information helps track compatibility and changes over time.
Available Endpoints
The Zoo Arcadia API provides the following endpoints:Animals
GET /api/animals- List all animals with their detailsGET /api/animals/show?id={id}- Get detailed information about a specific animal
Habitats
GET /api/habitats- List all habitats in the zooGET /api/habitats/show?id={id}- Get detailed information about a specific habitat
Services
GET /api/services- List all available zoo services
Schedules
GET /api/schedules- Get zoo opening hours and feeding schedules
Testimonials
GET /api/testimonials- Get validated visitor testimonials
Root Endpoint
GET /api- Returns API information and available endpoints
Response Format
All API responses are returned in JSON format with UTF-8 encoding and pretty-printed for readability.Successful Response
Successful requests return a response with the following structure:Root Endpoint Response
The root/api endpoint returns API metadata:
Error Handling
When an error occurs, the API returns an appropriate HTTP status code along with an error response:Common HTTP Status Codes
| Status Code | Description |
|---|---|
200 | Success - Request completed successfully |
400 | Bad Request - Invalid parameters or malformed request |
401 | Unauthorized - Authentication required |
404 | Not Found - Resource or endpoint doesn’t exist |
500 | Internal Server Error - Server-side error occurred |
Response Headers
All API responses include standard HTTP headers:Content-Type: application/json- All responses are JSONCache-Control: no-store, no-cache, must-revalidate- Responses are not cached
Rate Limiting
Currently, the Zoo Arcadia API does not implement rate limiting. However, please be considerate with your requests to ensure optimal performance for all users.Rate limiting may be implemented in future versions. Monitor API announcements for updates.
Data Format
All data is returned in JSON format with the following characteristics:- Character Encoding: UTF-8
- Pretty Printing: Enabled for human readability
- Unicode Characters: Unescaped (native UTF-8 characters preserved)
- Date Format: Standard SQL datetime format (YYYY-MM-DD HH:MM:SS)
Next Steps
Authentication
Learn about session-based authentication and securing your requests
Animals Endpoint
Explore the animals API endpoint and response structure