PandaScore

PandaScore

Games & Comics

PandaScore is the provider of real-time statistics for the e-sports like CS-GO, Dota 2, Overwatch, League of Legends etc

Visit API

📚 Documentation & Examples

Everything you need to integrate with PandaScore

🚀 Quick Start Examples

PandaScore Javascript Examplejavascript
// PandaScore API Example
const response = await fetch('https://developers.pandascore.co/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Introduction to Pandascore API

Pandascore is a public API providing esports data. It offers the ability to retrieve data about games, players, and tournaments. The API is organized around RESTful principles and returns JSON-encoded responses.

In this blog post, we will explore how to use the Pandascore API and provide some example code in JavaScript. Let's get started!

Getting Started

To use the Pandascore API, you will need an API key. You can sign up for a free API key from their website here.

Once you have an API key, you can start making API requests. All requests to the API should be made using HTTPS.

API Endpoints

Pandascore API offers a variety of endpoints to access its data. Here are some of the endpoints provided by the API:

  • /tournaments: This endpoint retrieves information about esports tournaments, such as start and end dates, participants, and results.
  • /teams: This endpoint retrieves information about esports teams, such as team members, statistics, and rankings.
  • /games: This endpoint retrieves information about esports games, such as game title, release date, and game developers.
  • /matches: This endpoint retrieves information about esports matches, such as start and end times, participants, and results.

API Example Code in JavaScript

Here is some example JavaScript code to retrieve information about the latest League of Legends tournaments using the Pandascore API.

const axios = require('axios');
const API_KEY = 'YOUR_API_KEY';

// Retrieve the latest League of Legends tournaments
axios.get(`https://api.pandascore.co/lol/tournaments/upcoming`, {
  headers: {
    Authorization: `Bearer ${API_KEY}`,
  }
})
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.error(error);
  });

And here is an example of retrieving information about the top five most popular esports games:

const axios = require('axios');
const API_KEY = 'YOUR_API_KEY';

// Retrieve information about the top five most popular esports games
axios.get(`https://api.pandascore.co/games`, {
  headers: {
    Authorization: `Bearer ${API_KEY}`,
  },
  params: {
    'sort': '-popularity',
    'page[size]': 5,
  },
})
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.error(error);
  });

We hope this blog post helps you get started with using the Pandascore API. Happy coding!

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jun 3Jun 5Jun 7Jun 9Jun 11Jun 13Jun 15Jun 17Jun 19Jun 21Jun 23Jun 25Jun 27Jun 29Jul 204008001440Minutes
Online
Offline

Related APIs in Games & Comics