DLive API
  • Overview
  • Authentication(OAuth2)
    • OAuth 2.0
    • Scopes
  • API
    • Overview
    • Query
    • Mutation
    • Subscription (Web socket)
    • Limits
  • Bot
    • Bot Account
Powered by GitBook
On this page

Was this helpful?

  1. API

Overview

PreviousScopesNextQuery

Last updated 8 months ago

Was this helpful?

We adopt at DLive instead of traditional RESTful API. GraphQL has significant over RESTful in terms of flexibility, type-safeness, etc.

The schema file could be found .

Documentation on our public GraphQL API types could be found .

Our GraphQL API endpoint is:

https://api.dlive.tv

Developers could use third-party GraphQL clients such as to interact with DLive API.

Access token is passed by authorization header. All requests must have an authorization header. This could either be app access tokens or user access token given in OAuth process.

Any query would return json response in the format:

{
    "data":...
    "errors":...
}

Data could be null and errors could be present. If present, errors should be a list of errors.

We would provide some sample queries in this doc.

GraphQL
advantage
here
here
apollo client