API data access

Access your location data from any other system via HTTPS calls.


  1. Click on Settings -> General -> API.

  2. Set API Status to Enabled, click on Regenerate icon to generate new API key, click "Save API setting" button. You can reset API key or change settings anytime.

  3. Send API HTTPS request to the following server and with required format:

    • Hostname: [YOUR GEOLINK DOMAIN], example: demo.geolink.io
    • URL: apidata.php
    • Port: 443
    • URL parameters: [uid] [apikey] [cmd]

      Required URL parameters with any API request

      URL parameter Example Description
      uid user@domain.com Username of account owner.
      apikey XK72KMMoqzbfaz39i2xG6NDNkk8OsbjTLlNJlGUyM API Key of account owner.
      cmd getdata Type of API command.

      Request GPS data

      URL parameter Required Value Example Description
      cmd yes getdata getdata Command to get GPS data. Always must be set as "getdata".
      imei yes [UNIT IMEI] 312345006395040 IMEI of the unit to get GPS data from.
      date_from yes [DATE FROM] 1452676136 Unix timestamp indicating start of GPS data selection.
      date_to yes [DATE TO] 1452687136 Unix timestamp indicating end of GPS data selection.
      offset no [DATA OFFSET] 500 In case your request returns more than 5000 records, you can further offset the selection to get all data.
      limit no [DATA LIMIT] 500 Limit the selection by number of records. Maximum number of returned records is 5000.
      Request example

      https://demo.geolink.io/apidata.php?uid=user@domain.com&apikey=XK72KNJlGUyM&cmd=getdata&imei=312345006395040&date_from=1452676136&date_to=1452687136

      Response format

      JSON object in the following format:

                     
      Array
      (
          [ok] => 1
          [msg] => 
          [result] => Array
              (
                  [date_from] => 1452676136
                  [date_to] => 1452687136
                  [offset] => 0
                  [limit] => 500
                  [imei] => 312345006395040
                  [rows] => 2
                  [data] => Array
                      (
                          [0] => Array
                              (
                                  [time] => 1222169349
                                  [latitude] => 22.574448333333333
                                  [longitude] => 113.90547833333333
                                  [altitude] => 0.0
                                  [speed] => 0.20372
                                  [hdop] => 
                                  [cog] => 
                                  [nsat] => 
                              )
      
                          [1] => Array
                              (
                                  [time] => 1222169349
                                  [latitude] => 22.574448333333333
                                  [longitude] => 113.90547833333333
                                  [altitude] => 0.0
                                  [speed] => 0.20372
                                  [hdop] => 
                                  [cog] => 0.0
                                  [nsat] => 
                              )
                      )
      
              )  
      )                              
                                             
                     

API data access allows you to retrieve GPS data programmatically and use in your own system.
If you require specific API commands, please contact us.