gta5-map / Social-Club-API-cheat-sheet

Basically a guide that explains how to parse Rockstar's Social Club to obtain a specific piece of information using it's internal JSON endpoints.
http://rockstar-api.rtfd.io
Do What The F*ck You Want To Public License
74 stars 7 forks source link

Jobs API? #17

Open AndySDH opened 5 years ago

AndySDH commented 5 years ago

Hello, Just stumbled across this, and I was wondering, is there an API also for the Jobs/Missions list? Thanks!

SerVB commented 4 years ago

It seems not documented here but there is one:

https://scapi.rockstargames.com/search/mission?dateRange=any&sort=likes&filter=myBookmarks&platform=pc&title=gtav&includeCommentCount=true&pageSize=2&searchTerm=

image

Somebody needs to find time to investigate it better and document.

Eznzo commented 3 years ago

Hi, I, too, stumbled across this and I wonder: how do I obtain the secret bearer token you show in the picture? Thanks!

SerVB commented 3 years ago

From browser dev tools ¯_(ツ)_/¯

I don't know a better way: haven't researched. The login was with Captcha, so it's not very straight-forward...

Eznzo commented 3 years ago

What is the url of the website where you found the token in the devtools?

SerVB commented 3 years ago

https://socialclub.rockstargames.com/jobs

Eznzo commented 3 years ago

That worked! Thanks for the very quick response, considering this issue is from a year ago!

SerVB commented 3 years ago

No problem.

Looks like now it works even with Authorization: None. But of course that info won't contain data specific to the account like last played timestamp.

Eznzo commented 3 years ago

Do you know if its possible to get more detailed information on a single job, like checkpoint positions for races or something like that?

SerVB commented 3 years ago

Should be possible because the browser somehow draws this data :) I haven't researched though. I would suggest you to try searching this data in dev tools requests.

CsteelComp commented 2 years ago

i have been trying to mod gta stats with social club and also add fast run and dunce cap. I have node js and i can run the rockstar server and also get my user info in. Im lost on the sending requests and scripts to the server . am i in the right direction or no