Giter Site home page Giter Site logo

rivalry_docs's Introduction

Rivalry.gg API

Available endpoints

Method Endpoint Usage Returns
GET /v1/games Get several games games
GET /v1/games/{id} Get a game game
GET /v1/matches Get several matches matches
GET /v1/matches/{id} Get a match match
GET /v1/tournaments Get several tournaments tournaments
GET /v1/tournaments/{id} Get a tournament tournament

Requests

The Rivalry.gg API is based on REST principles. Data resources are retrieved via standard HTTPS GET requests in UTF-8 format to an API endpoint.

Responses

Rivalry.gg API returns all successful response data as a JSON object with HTTP status code 200.

The requested data is always wrapped in a data field:

{
	"data": {

	}
}

Timestamps

Timestamps are returned in ISO 8601 format as Coordinated Universal Time (UTC) with a zero offset: YYYY-MM-DDTHH:MM:SSZ.

Pagination

Some endpoints return a paginated result set, taking page as a parameter: https://www.rivalry.gg/api/v1/games?page=1

When the results are paginated, pagination data will be added to the resource:

{
	"links": {
		"first": "https://www.rivalry.gg/api/v1/games?page=1",
		"last": "https://www.rivalry.gg/api/v1/games?page=1",
		"prev": null,
		"next": null
	},
	"meta": {
		"current_page": 1,
		"from": 1,
		"last_page": 1,
		"path": "https://www.rivalry.gg/api/v1/games",
		"per_page": 15,
		"to": 7,
		"total": 7
	}
}

rivalry_docs's People

Contributors

ryantology avatar d1am0nd avatar

Watchers

James Cloos avatar  avatar

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.