Git Product home page Git Product logo

rainbow-six-siege-player-stats-api's Issues

Missing operator specific stats

In the link with all of the different possible stats, it's missing stats for many operators. Would it be possible for that to be updated?

&season= parameter for getStats.php

More of a question than an issue. I'm new to GitHub and don't know how to message the developers. Is there a way to use the season parameter in the URL when making an api request for getStats.php? I'm looking for a way to see the stats of a player from a specific season. In addition, can the value be from 0-17, or 1-18, or what would it be?

Default progression not working

Hi,
when i set default-progression = true in config file, progression fields not show, i only can add GET param to make it works.

Thanks

Added support for $platform

I have added support for platforms specification, perfectly backward compatible (99%).
If you are interested, how can you send the new code?
I hope to help someone with that improvement.

Example:
http://website.net/api/getStats.php?name=yyy&platform=psn&appcode=xxx

Thanks for reading :)

Help me!

Hi, where can i obtain an appcode?

Update README.md

(New parameters, results changed for getUser.php & getStats.php)

UBI url error

Hello, I'm using your Ubi API , but it seems to have a problem when login is called, i get an error 404 File or diretory not found.
The ressource you are looking for might have been removed, had its name changed, or its temporarily unavailable.

it seems the URL is no longer good and that Ubisoft is maybe changed this url can you please help me to correct this problem.

getSmallUser.php does not return expected data format

getSmallUser.php return's json format like this -
[
uid{
uid : id
nick : nickname
}
]
but the readme states that the data should be like this -
[
{
uid : id
nick : nickname
}
]
As a result I can't access the array when searched by nickname because uid itself is a variable.

Add Level-Info to getUser.php

{
    "player_profiles": [{
        "xp": 5858,
        "profile_id": "09ef2790-ee5a-4909-b9dc-4e4042dbed7d",
        "lootbox_probability": 4150,
        "level": 284
    }]
}

Add kills and operator stats.

First off, I'd like to thank you for working on this. It's nice to be able to host this on my own machine and not worry about rate limits.

I don't know if it's on your roadmap already, but the addition of kills and operator stats for both casual and ranked would be really nice to have.

getUser does not work with spaced nicknames

hello, as the title suggest: php version doesn't work with spaced nicknames.

for example;
nickname: oa1907 (my psn account and it has no space)
url: getUser.php?appcode=test&platform=psn&name=oa1907
WORKS WELL

BUT
nickname: Search Meh Up
url: getUser.php?appcode=test&platform=xbl&name=SEARCH%20MEH%20UP
DOES NOT WORK!
"error":{"message":"User not found!"}}}}

Help

Hey, I am a little confused about the installation. Any help?

Ubi API returns 400

Are there any online resources on how to use Ubisoft's API?

Because I tried implementing your code in Java and started with the login functionality, but the server always returns 400 (Bad Request). You can check out my code over at https://github.com/scrouthtv/R6StatsAPI.

I used your method to contact Ubi Servers and login (had to change something with the content length, but that should work). Do you have an idea, why your code works for me, but my implementation doesn't?

Thanks in advance.

GET Rank API call gives 404 error

Upon making this GET request with all below headers:

66fcdb38-e7c2-45dd-a1c4-acbd7086d00f spaceId is after basic auth Session call, which is owner here.
profile_ids is the otherProfile profileId. Am I do it correct ?

https://public-ubiservices.ubi.com/v1/spaces/66fcdb38-e7c2-45dd-a1c4-acbd7086d00f/sandboxes/OSBOR_PC_LNCH_A/r6karma/players?board_id=pvp_ranked&season_id=-1&profile_ids=b5072e90-ad85-4bd8-9d18-e0bfe5f2aba5,&region_id=apac

I get following error:

{
    "errorCode": 1003,
    "message": "Resource 'https://public-ubiservices.ubi.com/v1/spaces/66fcdb38-e7c2-45dd-a1c4-acbd7086d00f/sandboxes/OSBOR_PC_LNCH_A/r6karma/players' not found.",
    "httpCode": 404,
    "errorContext": "UbiServices.Gateway",
    "moreInfo": "A link to more information will be coming soon. Please contact UbiServices for more support.",
    "transactionTime": "2020-08-26T11:19:57Z",
    "transactionId": "17724d77-2a2b-4da0-8cf3-aa2365b3683b"
}

need stats ranked

i trying : &stats=ranked_pvp but is not working
"rankedpvp_matchwon":126,
"rankedpvp_kills":723,
"rankedpvp_death":773,
"rankedlpvp_matchlost":130,
"rankedpvp_matchplayed":256,
"rankedpvp_timeplayed":204662,

Handle "Too many calls" error

Today i have received an error like this:

{
   "message":"Too many calls per profile id: 40078dc7-5f24-49a6-ad27-070c9c528f6c",
   "errorCode":1100,
   "httpCode":429,
   "errorContext":"Profiles Client Legacy",
   "moreInfo":"6/27/2018 10:32:45 AM",
   "transactionTime":"2018-06-27T10:25:02.7549934Z",
   "transactionId":"857682de-a880-4bdf-ac67-f203270908ae"
}

But with api returns only:

{ 
   players: []
}

There is a way to handle errors on frontend? Like add error messages maybe...

{ 
   players: [], 
   "error_message":  "Too many calls per profile id: 40078dc7-5f24-49a6-ad27-070c9c528f6c"
}

Current match infos

(Me again!)
Days ago i notice that with uplay api you can get infos about current playing match in R6, there is a possibility to add it in this api?

Thanks!

Some stats not displayed

Hi, i have a config file:

<?php

$config = array(
	"appcode" => "xxx",
	"ubi-email" => "xxx",
	"ubi-password" => "xxx",
	"default-region" => "emea",
	"default-stats" => "progression_level,progression_xp,rankedpvp_matchwon,rankedpvp_matchlost,rankedpvp_matchwlratio,rankedpvp_kills,rankedpvp_death,rankedpvp_kdratio,rankedpvp_timeplayed,casualpvp_death,casualpvp_kdratio,casualpvp_kills,casualpvp_matchlost,casualpvp_matchplayed,casualpvp_matchwlratio,casualpvp_matchwon,casualpvp_timeplayed,generalpve_revive,generalpvp_suicide,generalpvp_reinforcementdeploy,generalpvp_barricadedeployed,generalpvp_bulletfired,generalpvp_bullethit,generalpvp_meleekills,generalpvp_penetrationkills,weapontypepvp_killassists"
	// all stats: https://gist.github.com/LaxisB/3924cfdc35562b719d1c891cdb895366
);

?>

With lots of stats, but when i call your api i show only a part of that stats:

{  
   "players":{  
      "40078dc7-5f24-49a6-ad27-070c9c528f6c":{  
         "casualpvp_matchwon":225,
         "generalpvp_reinforcementdeploy":4735,
         "generalpvp_barricadedeployed":2379,
         "rankedpvp_timeplayed":771465,
         "generalpvp_penetrationkills":247,
         "rankedpvp_death":2842,
         "generalpvp_bullethit":33688,
         "generalpvp_suicide":9,
         "generalpvp_meleekills":8,
         "generalpvp_bulletfired":73879,
         "casualpvp_matchplayed":513,
         "casualpvp_death":1598,
         "generalpve_revive":17,
         "casualpvp_kills":1067,
         "rankedpvp_matchlost":320,
         "casualpvp_matchlost":288,
         "rankedpvp_matchwon":307,
         "casualpvp_timeplayed":417366,
         "rankedpvp_kills":1923,
         "nickname":"Sidelux00"
      }
   }
}

I have made a mistake or there are some problems?

WAMP server

hey,
i download your project and uploaded to my local server environment (i use wamp). the problem
when i want to display my user info it come with a issue.

URL

localhost/getUser.php?name=ALC0N.&platform=uplay&appcode=tester01

Result

{"players":{"ALC0N.":{"nickname":"ALC0N.","error":{"message":"User not found!"}}}}

But when i upload to my online hosting space it work.

i'm asking u is there any solution to the my local server environment.

{error:true} ?

Yeah, i have set up everything everywhere and now i got this page when i try to do a request. Nothing in error.log
{error:true}

Problem with the API

(sorry for my english)

Hello, i tried to make a get request to getOperators.php?name=FeedMeImHunfry7?appcode=testman

but it shows nothing...

New Operator

Hello, can you please add the Maverick and Clash gadget operator key ?
like
capitao : operatorpvp_capitao_lethaldartkills
sledge : operatorpvp_sledge_hammerhole
etc ...
thank you
:D

"User not found!" error sometimes when the user does exist.

I have an iOS app using this API. Very often, since the last update to the source code of this project, my app will be unable to get the stats and all that is returned is the JSON structure of { error: { message: "User not found!" } }. However, I can't reproduce this issue by using the API in a browser.

I don't see how it could be an issue in my app because it IS reading the data from the API, but the API is only returning an error message.

But I also don't see how it could be an issue on the API-Wrapper's end because it's just the middleman in getting the data from Ubi and translating it into raw JSON.

Any idea what's up?

Gist for all stats missing

//All stats: https://gist.github.com/LaxisB/3924cfdc35562b719d1c891cdb895366

The gist no longer exists.

UBIAPI Login not working

Hello, I'm trying to use your Ubi API , but it seems to have a problem when login is called, i get an error 404 File or diretory not found.
The ressource you are looking for might have been removed, had its name changed, or its temporarily unavailable.

it seems the URL "https://connect.ubi.com/ubiservices/v2/profiles/sessions" is no longer good and that Ubisoft is maybe changed this url can you please help me to correct this problem.
Thank you

Rate limits?

There are some sorts of rate limits for account?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.