https://github.com/spikehd/ubiapi
Uplay/Ubisoft API for Node
https://github.com/spikehd/ubiapi
Last synced: about 2 months ago
JSON representation
Uplay/Ubisoft API for Node
- Host: GitHub
- URL: https://github.com/spikehd/ubiapi
- Owner: SpikeHD
- License: gpl-3.0
- Created: 2020-09-09T05:42:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T03:28:50.000Z (over 4 years ago)
- Last Synced: 2025-11-23T22:03:03.923Z (7 months ago)
- Language: JavaScript
- Size: 93.8 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚠️ Warning: Currently in Super Early Development! ⚠️
# UbiApi
An all-in-one Uplay/Ubisoft API wrapper written for NodeJS
# Features
* Get Ubisoft news data
* That's basically it so far
# Usage
~~`npm install ubiapi`~~
^ not published yet :P
## Ubisoft Class
The `Ubisoft` class is used for basic requests as well as authentication. You'll notice that you need to provide an "appid" in the constructor. The easiest way to get this is to:
1. Open the developer tools on your web browser
2. If possible, filter URLs by the word "public" (we're looking for the URL "https://public-ubiservices.ubi.com")
3. Find an `iplocation` GET request (look out for OPTIONS requests, they won't have what you're looking for)
4. Find "Ubi-AppId" in the request headers
Here's an example of how it works:
```js
const uapi = require('ubiapi')
const ubi = new uapi.Ubisoft('yourappid')
async function getUbiNews() {
return await ubi.getFeaturedNews()
}
getUbiNews()
```
# Todo
* Better news stuff (learning the filters and other params)
* User/profile specific data
* Game specific data (R6, For Honor, Division, etc.)
* The goal is to support as many games as possible
* Forum stuff maybe?