Kitsu API
kitsu.io · Media
Anime and manga database — titles, ratings, episodes, genres, characters, and streaming links. JSON:API format. No API key required for public data.
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
Search anime
Search for Attack on Titan.
https://kitsu.io/api/edge/anime?page[limit]=3&filter[text]=Attack on Titan
Hover any highlighted part to learn what it does
Headers — extra info sent with the request
| Accept | application/vnd.api+json |
| Content-Type | application/vnd.api+json |
curl -X GET "https://kitsu.io/api/edge/anime?page[limit]=3&filter[text]=Attack%20on%20Titan" \ -H "Accept: application/vnd.api+json" \ -H "Content-Type: application/vnd.api+json"
import requests
params = {
"page[limit]": "3",
"filter[text]": "Attack on Titan"
}
headers = {
"Accept": "application/vnd.api+json",
"Content-Type": "application/vnd.api+json"
}
response = requests.get(
"https://kitsu.io/api/edge/anime",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://kitsu.io/api/edge/anime');
url.searchParams.set('page[limit]', '3');
url.searchParams.set('filter[text]', 'Attack on Titan');
const response = await fetch(url, {
headers: {
'Accept': 'application/vnd.api+json',
'Content-Type': 'application/vnd.api+json'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://kitsu.io/api/edge/anime")
q := baseURL.Query()
q.Set("page[limit]", "3")
q.Set("filter[text]", "Attack on Titan")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("Accept", "application/vnd.api+json")
req.Header.Set("Content-Type", "application/vnd.api+json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://kitsu.io/api/edge/anime")
uri.query = URI.encode_www_form({
"page[limit]" => "3",
"filter[text]" => "Attack on Titan"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["Accept"] = "application/vnd.api+json"
req["Content-Type"] = "application/vnd.api+json"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://kitsu.io/api/edge/anime?" . http_build_query([
"page[limit]" => "3",
"filter[text]" => "Attack on Titan"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"Accept: application/vnd.api+json",
"Content-Type: application/vnd.api+json"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Get trending anime
Get currently trending anime.
https://kitsu.io/api/edge/trending/anime
Hover any highlighted part to learn what it does
Headers — extra info sent with the request
| Accept | application/vnd.api+json |
curl -X GET "https://kitsu.io/api/edge/trending/anime" \ -H "Accept: application/vnd.api+json"
import requests
headers = {
"Accept": "application/vnd.api+json"
}
response = requests.get(
"https://kitsu.io/api/edge/trending/anime",
headers=headers,
)
print(response.json())const url = 'https://kitsu.io/api/edge/trending/anime';
const response = await fetch(url, {
headers: {
'Accept': 'application/vnd.api+json'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://kitsu.io/api/edge/trending/anime"
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("Accept", "application/vnd.api+json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://kitsu.io/api/edge/trending/anime")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["Accept"] = "application/vnd.api+json"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://kitsu.io/api/edge/trending/anime";
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"Accept: application/vnd.api+json"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- No API key needed
- Set Accept: application/vnd.api+json header
- Search anime: GET /edge/anime?filter[text]=naruto&page[limit]=5
- Trending: GET /edge/trending/anime
- Manga: GET /edge/manga?filter[text]=one+piece