/pesstatsdatabase-API

PHP parser for pesstatsdatabase.com which exposes simple to use, GET api

Primary LanguagePHP

pesstatsdatabase-API

PHP wrapper for pesstatsdatabase.com which exposes simple to use, GET api


This version is hosted at heroku (free account, so please be gentle with the usage) HERE: pes-editor.herokuapp.com

Usage: Send GET request to index.php with v,t,p or s parameters. Send request without parameters to see usage.

Parameters

  • v = ??? - GAME VERSION (INTEGER, 6=pes6, 2018=pes18)
  • p = ??? - playerId to fetch
  • s = ??? - playerName to search
  • t = ??? - teamId to fetch
  • n = ??? - teamName to search

Example workflow:

  1. Search for Real Madrid's teamId
    Request:index.php?n=Real%20Madrid
    Response: 33; Real Madrid CF
    (Format: teamId; teamName)

  2. Find all players in Real Madrid
    Request:index.php?t=33
    Response:Real Madrid CF
    1 - Keylor Navas; 10728;
    ...
    (Format: shirtNo - playerName; playerId)

  3. Find playerId by name
    Request:index.php?s=Cristiano%20Ronaldo
    Response:Cristiano Ronaldo; 774; Real Madrid CF; 33;
    (Format: playerName; playerId; TeamName; teamId)

  4. Get player stats
    Request:index.php?v=6&p=774
    Response: plaintext PSD stats for PES6