Game data
GET
https://ba.joexyz.online/api/v1/gifts/:idhttp://localhost:3000/api/v1/gifts/:idGets one gift, including its descriptions.
Parameters
id(path): The gift's numeric id.
Authentication
No authentication required.
Path parameters
| Name | Value |
|---|---|
| id | 5105 |
curl https://ba.joexyz.online/api/v1/gifts/5105const response = await fetch("https://ba.joexyz.online/api/v1/gifts/5105");
const data = await response.json();
console.log(data);import requests
url = "https://ba.joexyz.online/api/v1/gifts/5105"
response = requests.get(url)
print(response.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://ba.joexyz.online/api/v1/gifts/5105", nil)
if err != nil {
panic(err)
}
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
fmt.Println(string(data))
}curl http://localhost:3000/api/v1/gifts/5105const response = await fetch("http://localhost:3000/api/v1/gifts/5105");
const data = await response.json();
console.log(data);import requests
url = "http://localhost:3000/api/v1/gifts/5105"
response = requests.get(url)
print(response.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "http://localhost:3000/api/v1/gifts/5105", nil)
if err != nil {
panic(err)
}
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
fmt.Println(string(data))
}Response
{
"data": {
"id": 5105,
"name": "Airbook Rare",
"nameJP": "エイ~ブックレア",
"rarity": "SSR",
"expValue": 60,
"iconName": "item_icon_favor_lv2_5",
"isLovedByEveryone": false,
"adoredBy": [],
"lovedBy": [],
"likedBy": [],
"description": "A trendy laptop product that's one of the students' top three most-wanted items of the year. The expensive price tag doesn't seem to stop anyone.",
"descriptionJP": "「キヴォトス中の生徒が最も欲しい電子機器TOP3」に入る有名ノートパソコン。かなりの高級品。欲しい!でもやっぱ高い!",
"iconUrl": "https://ba.cdn.nimblebun.works/v2/images/items/item_icon_favor_lv2_5.webp"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Gift not found."
}
}