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
- Host: GitHub
- URL: https://github.com/zequez/oculus-graph-sandbox
- Owner: Zequez
- Created: 2017-03-29T03:26:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T17:12:34.000Z (about 5 years ago)
- Last Synced: 2025-05-16T14:44:55.421Z (about 1 year ago)
- Language: TypeScript
- Size: 549 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.