VATSIM Member by callsign

Updated Feb 07 2022

Return information about VATSIM member by his callsign. Output is a JSON-formatted string.

Output fields:

  • result: will contain search result
      vid: member VATSIM ID
  • info: this key contain value found which represents number of found members with given parameters

Usage

Endpoint: /cs_info/{CALLSIGN}

Request method: GET

Headers:

Header parameterDescription
X-API-Key Your unique API key

Example request:

Python

    import requests

    url = "https://api.vacc-ua.org/api/cs_info/ukr457"

    headers = {
        'X-API-Key': "123456",
        'Cache-Control': "no-cache"
    }

    response = requests.request("GET", url, headers=headers)
    print(response.text)

PHP

    <?php

    $curl = curl_init();

    curl_setopt_array($curl, array(
        CURLOPT_PORT => "443",
        CURLOPT_URL => "https://api.vacc-ua.org/api/cs_info/ukr457",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => "",
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 30,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => "GET",
        CURLOPT_HTTPHEADER => array(
            "Cache-Control: no-cache",
            "X-API-Key: 123456"
        ),
    ));

    $response = curl_exec($curl);
    $err = curl_error($curl);

    curl_close($curl);

    if ($err) {
        echo "cURL Error #:" . $err;
    } else {
        echo $response;
    }

Example response:


{
    "result": {
        "vid": "1300518"
    },
    "info": {
        "found": 1
    }
}