# Chapters

Warning

This data is provided by groups. We do our best to resolve duplicates, but we cannot guarantee there won't be duplicated data.

# List all Chapters

You can use this endpoint to return a paginated list of all chapters within the database, this is ordered by latest first based on the created_at property.

# Endpoint

GET /chapters

# Parameters

Name Type Description Required
group_id integer Filter latest chapters for a specific group.
manga_id integer Filter latest chapters for a specific manga.
language_id integer Filter latest chapters for a specific language.
per_page integer Set the number of results you want on each page (1 - 120).
created_at datetime Filter latest chapters based on date & time (>=, Y-m-d H:i:s).
updated_at datetime Filter latest chapters based on date & time (>=, Y-m-d H:i:s).

# Available Languages

ID Name
24 Arabic
140 English
156 French
423 Polish
425 Portuguese
441 Russian
494 Spanish
540 Turkish

# Response

{
  "data": [
    {
      "id": 1798,
      "unique_id": "e9baa26e-6fe5-4b57-b3e8-d0500b69befc",
      "manga_id": 108,
      "name": "Turn 5",
      "number": "5",
      "group_id": 58,
      "language_id": 140,
      "created_at": "2021-04-03T10:33:18.000000Z",
      "updated_at": "2021-04-03T10:33:18.000000Z"
    },
    {
      "id": 652,
      "unique_id": "cd156fc4-4843-46ff-bbaa-31f1c74e74dd",
      "manga_id": 52,
      "name": null,
      "number": "11",
      "group_id": 30,
      "language_id": 140,
      "created_at": "2021-04-02T00:03:43.000000Z",
      "updated_at": "2021-04-02T00:03:43.000000Z"
    }
  ],
  "links": {
    "first": "http:\/\/genkan.io\/api\/v1\/chapters?page=1",
    "last": null,
    "prev": null,
    "next": "http:\/\/genkan.io\/api\/v1\/chapters?page=2"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "path": "http:\/\/genkan.io\/api\/v1\/chapters",
    "per_page": 24,
    "to": 24
  }
}

# Get Chapter Details

You can use this endpoint to return details about a specific chapter using the id. Both the group information and pages are available using this endpoint.

The file_size property within the pages array is stored in bytes.

# Endpoint

GET /chapters/:id

# Response

{
  "data": {
    "id": 3774,
    "unique_id": "95838609-1c2a-4293-bb0f-5b7dcbba93c8",
    "manga_id": 28,
    "name": "Prolog",
    "number": "0",
    "group": {
      "id": 19,
      "unique_id": "639954fd-379c-4e18-ae5c-9c300736a67d",
      "name": "Demonic World",
      "description": "We are polish group that provides translation of manhwa, manhua and manga.\r\n\r\nJesteśmy polską grupą zajmującą się tłumaczeniami manhwy, manhuy oraz mangi.\r\n\r\nNasz Discord:\r\nhttps:\/\/discord.gg\/cHXAzhvhqS"
    },
    "language_id": 423,
    "pages": [
      {
        "id": 35480,
        "file_name": "00.jpg",
        "file_size": 640209,
        "image_url": "https:\/\/cdn.genkan.io\/file\/genkan-io\/manga\/d328b733-7635-471f-afb8-7c9edfb34322\/chapters\/95838609-1c2a-4293-bb0f-5b7dcbba93c8\/00.jpg",
        "proxy_image_url": "https:\/\/images.weserv.nl?q=100&output=webp&errorredirect=https%3A%2F%2Fcdn.genkan.io%2Ffile%2Fgenkan-io%2Fmanga%2Fd328b733-7635-471f-afb8-7c9edfb34322%2Fchapters%2F95838609-1c2a-4293-bb0f-5b7dcbba93c8%2F00.jpg&il=1&url=ssl%3Acdn.genkan.io%2Ffile%2Fgenkan-io%2Fmanga%2Fd328b733-7635-471f-afb8-7c9edfb34322%2Fchapters%2F95838609-1c2a-4293-bb0f-5b7dcbba93c8%2F00.jpg"
      },
      {
        "id": 35481,
        "file_name": "6-f001d876b2049efc851f5b7ef6cd9b54ee1b63dc7bf3f1f31c84ffb0859c7b61.jpg",
        "file_size": 2014106,
        "image_url": "https:\/\/cdn.genkan.io\/file\/genkan-io\/manga\/d328b733-7635-471f-afb8-7c9edfb34322\/chapters\/95838609-1c2a-4293-bb0f-5b7dcbba93c8\/6-f001d876b2049efc851f5b7ef6cd9b54ee1b63dc7bf3f1f31c84ffb0859c7b61.jpg",
        "proxy_image_url": "https:\/\/images.weserv.nl?q=100&output=webp&errorredirect=https%3A%2F%2Fcdn.genkan.io%2Ffile%2Fgenkan-io%2Fmanga%2Fd328b733-7635-471f-afb8-7c9edfb34322%2Fchapters%2F95838609-1c2a-4293-bb0f-5b7dcbba93c8%2F6-f001d876b2049efc851f5b7ef6cd9b54ee1b63dc7bf3f1f31c84ffb0859c7b61.jpg&il=1&url=ssl%3Acdn.genkan.io%2Ffile%2Fgenkan-io%2Fmanga%2Fd328b733-7635-471f-afb8-7c9edfb34322%2Fchapters%2F95838609-1c2a-4293-bb0f-5b7dcbba93c8%2F6-f001d876b2049efc851f5b7ef6cd9b54ee1b63dc7bf3f1f31c84ffb0859c7b61.jpg"
      }
    ],
    "created_at": "2021-04-07T18:59:41.000000Z",
    "updated_at": "2021-04-07T18:59:41.000000Z"
  }
}