Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thebowja/starrail-data
Literally just a collection of JSONs. Data extracted directly from StarRailData repo.
https://github.com/thebowja/starrail-data
Last synced: 29 days ago
JSON representation
Literally just a collection of JSONs. Data extracted directly from StarRailData repo.
- Host: GitHub
- URL: https://github.com/thebowja/starrail-data
- Owner: theBowja
- License: mit
- Created: 2023-05-05T19:11:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T05:08:32.000Z (about 2 months ago)
- Last Synced: 2024-10-28T08:04:32.013Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://starrail-data.vercel.app
- Size: 75 MB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# starrail-data
Literally just a collection of JSONs. Data extracted directly from StarRailData repo.Requirements: Node 14+
# Web API
The web API is hosted by Vercel serverless functions. Base URL is: https://starrail-data.vercel.app
If you wish to create an API hosted somewhere else, it should be pretty easy to do it yourself since all the routes simply call a function in the `main.js` script.
## /api/config
TODO: Returns the list of available languages and folders. Proxy for `TODO`.
Example: https://starrail-data.vercel.app/api/config
## /api/[lang]/[folder]
Returns all data for a specific folder. Proxy for `getDataAll(lang, folder)`.
Example: https://starrail-data.vercel.app/api/EN/characters
## /api/[lang]/[folder]/[dataId]
Returns data for a specific data item. Proxy for `getDataItem(lang, folder, dataId)`.
Example: https://starrail-data.vercel.app/api/EN/characters/1001
## /api/[lang]/[folder]/search/[query]
Returns data for a specific data item. Proxy for `searchDataProps(lang, folder, query, properties)`.
Example: https://starrail-data.vercel.app/api/EN/characters/search/danheng