API for accessing data from genshin-journey.space.
The API is available through multiple endpoints to ensure reliability and language support:
Russian Data:
- Primary:
https://sushicat.pp.ua/api/genshin
- Fallback:
https://api.genshin-journey.space/.netlify/functions/index
Ukrainian Data:
- Primary:
https://sushicat.pp.ua/api/genshin-ua
- Fallback:
https://api.genshin-journey.space/.netlify/functions/index-ua
For simplicity in the examples below, [BASE_URL]
will generally refer to one of the primary base URLs (e.g., https://sushicat.pp.ua/api/genshin
). Choose the appropriate one for your needs.
The backend architecture consists of multiple components:
- Cockpit CMS (v0.12.x) - Main database containing most of the information
- Additional Scripts - Custom endpoints for weapons, artifacts, and comments
- Proxy API - Fallback server at
api.genshin-journey.space
with additional undocumented scripts
Most endpoints require an API Token: a4191046104f8f3674f788e804c2d0
The token can be used in two ways:
?token=a4191046104f8f3674f788e804c2d0
Cockpit-Token: a4191046104f8f3674f788e804c2d0
The API provides access to the following Cockpit CMS collections:
- charactersv2
- dict
- gacha
- gachaWeapons
- chronicle
- aboutv2
GET [BASE_URL]/api/collections/get/charactersv2?token=a4191046104f8f3674f788e804c2d0
GET Request:
GET [BASE_URL]/api/collections/get/charactersv2?sort[rarity]=-1&skip=0&limit=36&fields[name]=1&fields[nameeng]=1&fields[rarity]=1&fields[ico]=1&token=a4191046104f8f3674f788e804c2d0
POST Request:
POST [BASE_URL]/api/collections/get/charactersv2?token=a4191046104f8f3674f788e804c2d0
Content-Type: application/json
{
"fields": {
"name": 1,
"nameeng": 1,
"rarity": 1,
"ico": 1
},
"limit": 37,
"skip": 0,
"sort": {
"rarity": -1
}
}
Weapons data is obtained through custom scripts as they are not stored in the Cockpit CMS.
GET [BASE_URL]/additional/weapons/get.php?type=sword_normal
Available types: {weapon_type}_{sorting}
- Weapon types:
sword
,bow
,catalyst
,claymore
,polearm
- Sorting options:
normal
,reversed
,sorted
GET [BASE_URL]/additional/weapons/get.php?id=the_black_sword
The artifacts endpoint works identically to the weapons script but uses a different endpoint.
GET [BASE_URL]/additional/artefacts/get.php?type=normal
GET [BASE_URL]/additional/artefacts/get.php?id=noblesse_oblige
GET [BASE_URL]/additional/comments/get.php?branch=diona
GET [BASE_URL]/additional/comments/add.php?username=User123&avatar_id=1&comment=test123&branch=diona&code_use=CODE1
GET [BASE_URL]/additional/comments/delete.php?secret=(admin_code)&id=1
GET [BASE_URL]/additional/comments/promo_validation.php?code_view=CODE1
For testing purposes, you can use:
- Login:
test
- Password:
test123
Note: This provides limited access and is intended for testing only.
If the main server is unavailable, use the proxy server (not recommended for regular use):
GET https://api.genshin-journey.space/.netlify/functions/index/api/collections/get/charactersv2?filter[nameeng]=faruzan&token=a4191046104f8f3674f788e804c2d0
Images can be retrieved for both Russian and Ukrainian versions:
GET https://api.genshin-journey.space/.netlify/functions/img/genshin/storage/uploads/2023/05/11/Faruzan_Portrait_2_uid_645cad680f9f5.png
Convert images to BASE64 format (optimization in progress):
GET https://sushicat.pp.ua/api/image.php?path=api/genshin/storage/uploads/2022/12/05/itto-3-3_uid_638e1f8dd1901.jpg
For more detailed information about query parameters, filtering, and advanced usage, refer to the Cockpit CMS documentation as the API is built on Cockpit CMS v0.12.x.
- The backend architecture is complex with multiple data sources
- Some scripts and endpoints are undocumented (like AI service)
- The Cockpit CMS is legacy but contains the majority of the data
- Always use the primary URLs when possible; fallback URLs are for emergency use only