Robotevents API wants some auth thing

I was trying to connect to the robotevents API to grab data for something, but, while in my browser (Vivaldi 2.11) I get what I expected, a JSON response, but when I try to use, for example, nano-get to grab data through a program, I get

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='https://www.robotevents.com/auth/login'" />

        <title>Redirecting to https://www.robotevents.com/auth/login</title>
    </head>
    <body>
        Redirecting to <a href="https://www.robotevents.com/auth/login">https://www.robotevents.com/auth/login</a>.
    </body>
</html>

as my response body.

3 Likes

https://www.robotevents.com/api/v2/accessRequest/create

7 Likes

Your browser likely contains a cookie with an API key. You can use Chrome to see what each site has stored in cookies. Reverse engineer that data to figure out the access token you need to send and the method. Usually this involves either sending the token via an HTTP header or as a JSON/XML field.

If it’s read from a cookie, and you can’t otherwise see it in the traffic, it’s probably being sent in the HTTP headers. Using something like Postman to play with it until you get it right, it’ll save you time.

Unless that link Barin posted is to documentation on how to get access, in which case do whatever that says. I’m too lazy to make an account to read it lol.

2 Likes

Ah, I didn’t realize you had to be logged in. I guess I really am perpetually logged-in to RobotEvents nowadays…

This is what the page looks like:
Screenshot_Chrome_Dev_20200617-223909

Even the menu entry for “Request Access” does not show up if you are not logged-in, which is probably where the confusion came from in the first place.

7 Likes

Man when did we get a publicly available API?

Hold up this is kind of awesome.

5 Likes

I have no idea. I never got the memo either.

This is going to be nice. Aren’t all the official scores in here? And matches, and events? Nice.

1 Like

Has anyone had any luck getting authorized?

1 Like

As of today, yes, I have been authorized.

Is there any agreement you had to make before being authorized?
i.e. you aren’t allowed to publicly disclose the api?

Afaik, the API reference is publicly available, you basically just need to apply and agree to the tos

Keep in mind that it took me quite a while to get approved.

4 Likes

image

8 Likes

I just got approved yesterday as well.

How do they send you the confirmation for the api access?

They will send an email to confirm your API access.

1 Like