Player Vs Player Endpoints


This endpoint returns back information regarding the tournaments played between two players.

GET /pvp

Get player and tournament information.

Parameters

Required Parameter Description Example
Yes api_key Key needed to access API &api_key=RNDOAMGNAJTGQWKQ
Yes p1 Player 1 ID &p1=1
Yes p2 Player 2 ID &p2=6

Example

https://api.ifpapinball.com/v1/pvp?api_key=2FSp55Vy27vj6rAG&p1=1&p2=6
{
   "p1_player_id":1,
   "p2_player_id":5,
   "p1_first_name":"Keith",
   "p1_last_name":"Elwin",
   "p2_first_name":"Roy",
   "p2_last_name":"Wils",
   "p1_country_code":"US",
   "p2_country_code":"NL",
   "p1_excluded":"N",
   "p2_excluded":"N",
   "pvp":[
      {
         "tournament_name":"Pinball Expo Flip Out Tournament",
         "tournament_id":"3",
         "event_date":"2002-10-29",
         "event_name":"Main Tournament",
         "event_id":"1",
         "tournament_country_code":"US",
         "p1_finish_position":"6",
         "p2_finish_position":"13"
      },
      {
         "tournament_name":"Pinburgh (OLD)",
         "tournament_id":"944",
         "event_date":"2003-09-12",
         "event_name":"Main Tournament",
         "event_id":"1",
         "tournament_country_code":"US",
         "p1_finish_position":"2",
         "p2_finish_position":"12"
      },
      { ... more ... }
   ]
}