API

Introduction

The World Archery Api is a way to get generic and specific resources. All pages have a similar layout. On top the specific and common parameters: 2 optional parameters are common to all requests

Common Parameters

  • RBP INTEGER is the number of items returned by each call. Its default is 10 but if set to All it returns all the results... use with caution as the output can be extremely verbose.
  • Page INTEGER if the resulting items are more than RBP, the next RBP items can be retrieved increasing Page

Type Data type

M Mandatory

+ Multiple values separated with pipe "|"

Then follows the syntax used to call the api, with a button to create your own query.

Syntax Try it yourself

http://wa-api/v3/ATHLETEBIOGRAPHY/?Id=INTEGER [&RBP=INTEGER&Page=INTEGER]

http://wa-api/?v=3&content=ATHLETEBIOGRAPHY&Id=INTEGER [&RBP=INTEGER&Page=INTEGER]

The returning object is a standard JSON divided in 2 blocks:
  • pageInfo shows totalResults, resultsPerPage and page information.
  • items is an array of all the items retrieved by the request.
A typical response is showed. As an example this is the response for the API call /?v=3&content=INDIVIDUALELIMINATIONS&CompId=15798&CatCode=BM

Response

{
    "pageInfo": {
        "totalResults": 24,
        "resultsPerPage": 10,
        "page": 0
    },
    "items": [
        {
            "Code": "BM",
            "GoldHeader": "6",
            "XnineHeader": "5",
            "Results": {
                "-12": [
                    {
                        "Rnk": 1,
                        "Athlete": {
                            "Id": "8391",
                            "FName": "Garcia Fernandez",
                            "GName": "David",
                            "WNameOrd": false,
                            "NOC": "ESP"
                        },
                        "Score": 111,
                        "Gold": 6,
                        "Xnine": 6
                    },
                    {
                        "Rnk": 2,
                        "Athlete": {
                            "Id": "15908",
                            "FName": "Jonsson",
                            "GName": "Erik",
                            "WNameOrd": false,
                            "NOC": "SWE"
                        },
                        "Score": 110,
                        "Gold": 6,
                        "Xnine": 6
                    },
                    {
                        "Rnk": 3,
                        "Athlete": {
                            "Id": "7023",
                            "FName": "Ottosson",
                            "GName": "Martin",
                            "WNameOrd": false,
                            "NOC": "SWE"
                        },
                        "Score": 109,
                        "Gold": 4,
                        "Xnine": 8
                    },
                    {
                        "Rnk": 4,
                        "Athlete": {
                            "Id": "488",
                            "FName": "Fisher",
                            "GName": "Michael",
                            "WNameOrd": false,
                            "NOC": "AUS"
                        },
                        "Score": 105,
                        "Gold": 3,
                        "Xnine": 6
                    },
                    {
                        "Rnk": 5,
                        "Athlete": {
                            "Id": "7079",
                            "FName": "Seimandi",
                            "GName": "Giuseppe",
                            "WNameOrd": false,
                            "NOC": "ITA"
                        },
                        "Score": 104,
                        "Gold": 2,
                        "Xnine": 9
                    },
                    {
                        "Rnk": 6,
                        "Athlete": {
                            "Id": "12726",
                            "FName": "Roy",
                            "GName": "Olivier",
                            "WNameOrd": false,
                            "NOC": "FRA"
                        },
                        "Score": 104,
                        "Gold": 1,
                        "Xnine": 9
                    },
                    {
                        "Rnk": 7,
                        "Athlete": {
                            "Id": "6717",
                            "FName": "Ahjokivi",
                            "GName": "Pasi",
                            "WNameOrd": false,
                            "NOC": "FIN"
                        },
                        "Score": 99,
                        "Gold": 4,
                        "Xnine": 4
                    },
                    {
                        "Rnk": 8,
                        "Athlete": {
                            "Id": "7120",
                            "FName": "Kakas",
                            "GName": "Istvan",
                            "WNameOrd": false,
                            "NOC": "HUN"
                        },
                        "Score": 96,
                        "Gold": 2,
                        "Xnine": 6
                    }
                ],
                "-11": [
                    {
                        "Rnk": 1,
                        "Athlete": {
                            "Id": "15908",
                            "FName": "Jonsson",
                            "GName": "Erik",
                            "WNameOrd": false,
                            "NOC": "SWE"
                        },
                        "Score": 167,
                        "Gold": 7,
                        "Xnine": 13
                    },
                    {
                        "Rnk": 2,
                        "Athlete": {
                            "Id": "7079",
                            "FName": "Seimandi",
                            "GName": "Giuseppe",
                            "WNameOrd": false,
                            "NOC": "ITA"
                        },
                        "Score": 167,
                        "Gold": 7,
                        "Xnine": 13
                    }
                ]
            }
        }
    ]
}