Racemanager API

  • Test API
    Competition
    Distance
    Heat
    
                            
                          
  • API's can be consumed in many different ways. Here are just two examples.

    PHP

    $url = "https://racemanager.no/api/page{ID}?lang={lang}";
    $json = file_get_contents($url);
    $json_data = json_decode($json, true);
    print_r($json_data);                      

    JQuery

    $(document).ready(function () {
      var data
      $.ajax({
        dataType: 'json',
        url: "https://racemanager.no/api/page/{ID}?lang={lang}",
        data: data,
        success: function (data) {
          console.log(data);
        },
      })
    })                      
  • https://racemanager.dk/api/page/competitions/{competition}/{distance}/{heat}
    Competition https://racemanager.dk/api/page/competitions/dm-i-ergo-2024
    Distance https://racemanager.dk/api/page/competitions/dm-i-ergo-2024/men-u16-k1-200
    Heat https://racemanager.dk/api/page/competitions/dm-i-ergo-2024/men-u16-k1-200/h1