Error: Request failed with status code 404 #556
Answered
by
wopian
Toskan4134
asked this question in
Question / Answer
-
I'm getting this error and I don't know why...
This is my .js code: const Kitsu = require('kitsu');
const kitsu = new Kitsu();
kitsu.get("Naruto").then(anime=>{
console.log(anime)
}) |
Beta Was this translation helpful? Give feedback.
Answered by
wopian
Jun 9, 2021
Replies: 1 comment
-
This request should be either: // Search all anime that has `Naruto` in its slug, title or synopsis
kitsu.get('anime', {
filter: {
text: 'Naruto'
}
}).then(anime=>{
console.log(anime)
}) // Get anime with the 'naruto' slug (https://kitsu.io/anime/naruto)
kitsu.get('anime', {
filter: {
slug: 'Naruto'
}
}).then(anime=>{
console.log(anime)
}) Check |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wopian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This request should be either:
Check
kitsu
's API documentation at https://github.com/wopian/kitsu/tree/master/packages/kitsu#get and kitsu.io's API documentation at https://hummingbird-me.github.io/api-docs/#tag/Anime/paths/~1anime/get