GptOracle | The Otaku

GptOracle | The Otaku · GPT-Aktionen

Kitsu API

Kitsu API allows for discovering, tracking, and interacting with anime data.

  • GET /animeRetrieve a list of anime with various filtering and search options.
Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "Kitsu API",
    "description": "Kitsu API allows for discovering, tracking, and interacting with anime data.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://kitsu.io/api/edge",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/anime": {
      "get": {
        "operationId": "getAnime",
        "summary": "Retrieve a list of anime with various filtering and search options.",
        "parameters": [
          {
            "in": "query",
            "name": "filter[categories]",
            "schema": {
              "type": "string"
            },
            "description": "Filter by anime categories."
          },
          {
            "in": "query",
            "name": "filter[text]",
            "schema": {
              "type": "string"
            },
            "description": "Search anime by text query."
          },
          {
            "in": "query",
            "name": "page[limit]",
            "schema": {
              "type": "integer"
            },
            "description": "Limit the number of anime to retrieve."
          },
          {
            "in": "query",
            "name": "page[offset]",
            "schema": {
              "type": "integer"
            },
            "description": "The offset from which to start the anime list."
          },
          {
            "in": "query",
            "name": "sort",
            "schema": {
              "type": "string"
            },
            "description": "Sort by attributes in ascending or descending order."
          },
          {
            "in": "query",
            "name": "include",
            "schema": {
              "type": "string"
            },
            "description": "Include related resources in the response."
          },
          {
            "in": "query",
            "name": "fields[users]",
            "schema": {
              "type": "string"
            },
            "description": "Specify a set of fields to include in the response."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with a list of anime.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Anime"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Anime": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "slug": {
                "type": "string"
              },
              "synopsis": {
                "type": "string"
              },
              "titles": {
                "type": "object"
              },
              "canonicalTitle": {
                "type": "string"
              },
              "averageRating": {
                "type": "string"
              },
              "startDate": {
                "type": "string"
              },
              "endDate": {
                "type": "string"
              },
              "popularityRank": {
                "type": "integer"
              },
              "ratingRank": {
                "type": "integer"
              },
              "ageRating": {
                "type": "string"
              },
              "ageRatingGuide": {
                "type": "string"
              },
              "subtype": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "posterImage": {
                "type": "object"
              },
              "coverImage": {
                "type": "object"
              },
              "episodeCount": {
                "type": "integer"
              },
              "episodeLength": {
                "type": "integer"
              },
              "youtubeVideoId": {
                "type": "string"
              },
              "showType": {
                "type": "string"
              },
              "nsfw": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ]
      }
    }
  }
}

Jikan API

An unofficial MyAnimeList API that provides extensive data about anime and manga.

  • GET /animeSearch for anime with various filters.
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Jikan API",
    "description": "An unofficial MyAnimeList API that provides extensive data about anime and manga.",
    "version": "4.0.0"
  },
  "servers": [
    {
      "url": "https://api.jikan.moe/v4",
      "description": "Official Jikan API server"
    }
  ],
  "paths": {
    "/anime": {
      "get": {
        "operationId": "searchAnime",
        "summary": "Search for anime with various filters.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Search query (title of the anime).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number of the search results.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of search results per page.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Type of anime (e.g., tv, movie, ova).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "score",
            "in": "query",
            "description": "Filter by score.",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Airing status of the anime (e.g., airing, completed, upcoming).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rating",
            "in": "query",
            "description": "Audience rating of the anime (e.g., g, pg, r).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "genres",
            "in": "query",
            "description": "Filter by genre IDs (comma-separated).",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Anime"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Anime": {
        "type": "object",
        "properties": {
          "mal_id": {
            "type": "integer",
            "description": "MyAnimeList ID of the anime."
          },
          "url": {
            "type": "string",
            "description": "URL to the anime's MyAnimeList page."
          },
          "title": {
            "type": "string",
            "description": "Title of the anime."
          },
          "type": {
            "type": "string",
            "description": "Type of the anime (TV, movie, OVA, etc.)."
          },
          "score": {
            "type": "number",
            "description": "Score of the anime."
          },
          "status": {
            "type": "string",
            "description": "Airing status of the anime."
          },
          "synopsis": {
            "type": "string",
            "description": "Synopsis of the anime."
          },
          "episodes": {
            "type": "integer",
            "description": "Number of episodes."
          },
          "genres": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Genres of the anime."
          }
        }
      }
    }
  }
}