Skip to content

/api/gundams

Retrieve a paginated list of Gundam mobile suits from the database.

Endpoint: GET /api/gundams

ParameterTypeDefaultDescription
pageinteger1Page number for pagination
limitinteger20Number of results per page
https://gundam-api.pages.dev/api/gundams?page=1&limit=10
{
"info": {
"count": 150,
"pages": 15,
"next": "https://gundam-api.pages.dev/api/gundams?page=2",
"prev": null
},
"results": [
{
"id": 1,
"wikiName": "rx-78-2-gundam",
"wikiUrl": "https://gundam.fandom.com/wiki/RX-78-2_Gundam",
"gundamName": "RX-78-2 Gundam",
"header": "Earth Federation prototype mobile suit",
"details": "The RX-78-2 Gundam is a mobile suit...",
"imgUrl": "https://example.com/gundam-image.jpg",
"pilots": "Amuro Ray"
}
]
}

Info Object

  • count (integer): Total number of Gundams in the database
  • pages (integer): Total number of pages
  • next (string|null): URL for the next page, null if on last page
  • prev (string|null): URL for the previous page, null if on first page

Gundam Object

  • id (integer): Unique identifier for the Gundam
  • wikiName (string): URL-friendly name used as primary key
  • wikiUrl (string): Link to the Gundam’s wiki page
  • gundamName (string): Display name of the Gundam
  • header (string|null): Brief description or header text
  • details (string|null): Detailed description of the Gundam
  • imgUrl (string|null): URL to an image of the Gundam
  • pilots (string|null): Names of known pilots
  • 200 OK: Request successful
  • 500 Internal Server Error: Server error occurred
{
"error": "Failed to fetch gundams"
}