Introduction

This documentation will help you understand the Attack on Titan API and all of its endpoints so you can use it in your next project.

REST

Base url: https://api.attackontitanapi.com

The base url contains information about all available API's endpoints. All requests are GET requests and go over https. All responses will return data in json.

GET https://api.attackontitanapi.com
{
    "characters": "https://api.attackontitanapi.com/characters",
    "episodes": "https://api./attackontitanapi.com/episodes",
    "locations": "https://api.attackontitanapi.com/locations",
    "organizations": "https://api.attackontitanapi.com/organizations",
    "titans": "https://api.attackontitanapi.com/titans"
}

There are currently 5 endpoints

Info and Pagination

The Attack on Titan automatically paginates requests with a maximum of 20 results per page.

Each response contains an info object with information about the response.

GET https://api.attackontitanapi.com/characters
{
    "info": {
      "count": 201,
      "pages": 11,
      "next_page": "https://api.attackontitanapi.com/characters?page=2",
      "prev_page": null
    },
    "results": [
        // ...
    ]
}