An open API service indexing awesome lists of open source software.

https://github.com/zequez/oculus-graph-sandbox

A web sandbox made in React and TypeScript to play around with the Oculus Graph API
https://github.com/zequez/oculus-graph-sandbox

Last synced: 7 months ago
JSON representation

A web sandbox made in React and TypeScript to play around with the Oculus Graph API

Awesome Lists containing this project

README

          

# Oculus Graph Sandbox

This little app was made while I was working on scraping the Oculus Store data for [GGFilter](http://www.ggfilter.com).

This repo comes with a web sandbox so you can make your own Oculus Graph API requests and see the results, hosted by Github pages on [oculus-graph-sandbox.zequez.com](http://oculus-graph-sandbox.zequez.com).

## How

To inspect the official client requests I used [Fiddler](www.telerik.com/fiddler), you can do it too, if you wish to reverse engineer the Oculus database.

## Endpoint

The Oculus Graph API endpoint is:

```
https://graph.oculus.com/graphql
```

## Query

To query the database you make a POST request with the following data in the body:

```
{
access_token: ,
method: 'GET',
q: ,
response_format: 'json'
}
```

Of course, you need to know how the database structure is to be able to submit a query that doesn't return with an error. You can see some examples on [src/examples.ts](https://github.com/zequez/oculus-graph-sandbox/tree/master/src/examples.ts) you can see the query I use to extract all the games data for GGFilter.

I'll try to properly document the database, maybe.

## Why TypeScript?

Because I wanted to try it.

## Similar projects

[if1live/oculus-graph](https://github.com/if1live/oculus-graph) has better documentation, although it doesn't have a sandbox. My requirements were just to get all the games.