/api/characters
Get all characters
Section titled “Get all characters”Retrieve a paginated list of Characters from the database.
Endpoint: GET /api/characters
Query Parameters
Section titled “Query Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number for pagination |
limit | integer | 20 | Number of results per page |
https://gundam-api.pages.dev/api/characters?page=1&limit=10Response Format
Section titled “Response Format”{ "info": { "count": 150, "pages": 15, "next": "https://gundam-api.pages.dev/api/characters?page=2", "prev": null }, "results": [ { "id": 1, "wikiName": "amuro-ray", "wikiUrl": "https://gundam.fandom.com/wiki/Amuro_Ray", "name": "Amuro Ray", "header": "Ace pilot of the RX-78-2 Gundam", "details": "Amuro Ray is a Newtype and pilot...", "imgUrl": "https://example.com/amuro.jpg", "aliases": "White Devil", "species": "Human (Newtype)", "bloodType": "A", "height": "168 cm", "weight": "55 kg", "hairColor": "Brown", "eyeColor": "Brown", "age": "15", "birthDate": "U.C. 0059-11-04", "gender": "Male", "loveInterests": "Sayla Mass", "nationality": "Earth Federation", "affiliation": "Earth Federation Forces", "occupation": "Mobile Suit Pilot", "status": "Alive" } ]}Response Schema
Section titled “Response Schema”Info Object
count(integer): Total number of Characters in the databasepages(integer): Total number of pagesnext(string|null): URL for the next page, null if on last pageprev(string|null): URL for the previous page, null if on first page
Character Object
id(integer): Numeric identifier for the CharacterwikiName(string): URL-friendly name used as primary keywikiUrl(string): Link to the Character’s wiki pagename(string): Display name of the Characterheader(string|null): Brief description or header textdetails(string|null): Detailed description of the CharacterimgUrl(string|null): URL to an image of the Characteraliases(string|null): Alternate names or nicknamesspecies(string|null): Species informationbloodType(string|null): Blood typeheight(string|null): Height informationweight(string|null): Weight informationhairColor(string|null): Hair coloreyeColor(string|null): Eye colorage(string|null): Age informationbirthDate(string|null): Birth dategender(string|null): GenderloveInterests(string|null): Known love interestsnationality(string|null): Nationality or originaffiliation(string|null): Organizations or factionsoccupation(string|null): Occupation or rolestatus(string|null): Current status
Status Codes
Section titled “Status Codes”200 OK: Request successful500 Internal Server Error: Server error occurred
Error Response
Section titled “Error Response”{ "error": "Failed to fetch characters"}