Interact with the kitsu.io api using Go
go get github.com/KurozeroPB/kitsu-go
Simple example usage:
package main
import (
"fmt"
"github.com/KurozeroPB/kitsu-go"
)
func main() {
// Example to search for an anime
anime, e := kitsu.SearchAnime("fate/apocrypha", 0)
if e != nil {
fmt.Println(e)
return
}
fmt.Println(anime.Attributes.PosterImage.Original)
}
Parameter | Type | Description |
---|---|---|
query | string | The anime you want to search |
offset | int | Page offset |
Parameter | Type | Description |
---|---|---|
query | string | The manga you want to search |
offset | int | Page offset |
Parameter | Type | Description |
---|---|---|
query | string | The name of the character you want to search for |
Parameter | Type | Description |
---|---|---|
query | string | The name of the producer you want to search for |
Parameter | Type | Description |
---|---|---|
query | string | The name of the user you want to search for |
Parameter | Type | Description |
---|---|---|
query | string | The drama you want to search |
There are currently no dramas on kitsu so this will return an error until they add dramas to the website.
Parameter | Type | Description |
---|---|---|
id | int | The id of the anime you want to get |
Parameter | Type | Description |
---|---|---|
id | int | The id of the manga you want to get |
Parameter | Type | Description |
---|---|---|
id | int | The id of the user you want to get |
Parameter | Type | Description |
---|---|---|
id | int | The id of the user you want to get the stats from |
Manga searchCharacter searchProducers searchUsers searchDrama searchGet anime by idGet manga by idGet user by idGet user stats by id