Key Usage Statistics for Maritime API

You are here:
< All Topics

Parameters

You can use various parameters to view the key usage statistics.

Example:

https://api.datalastic.com/api/v0/stat?api-key={YOUR_API_KEY}

Response:

{   
 "data": {
        "user_id""{YOUR_API_KEY}",
        "key_status""Valid",
        "requests_made"112,
        "requests_remaining"888
    },

    "meta": {
        "duration"0.004715806,
        "endpoint""/api/v0/stat",
        "success"true
    }
}

Country

View Country details by ISO2 or ISO3 code in Datalastic maritime API function. 

Parameters:

  • ISO2 – 2 letter country code (‘US’, ‘VC’, …)
  • ISO3 – 3 letter country code (‘USA’, ‘VCT’, …)

Example:

https://api.datalastic.com/api/v0/country?api-key={YOUR_API_KEY}&iso2=VC
https://api.datalastic.com/api/v0/country?api-key={YOUR_API_KEY}&iso3=MEX

Response:

{
 "data": {
        "iso_alpha_2": "VC",
        "iso_alpha_3": "VCT",
        "iso_numeric": "670",
        "name": "Saint Vincent and the Grenadines",
        "name_official": "Saint Vincent and the Grenadines"
    },
    "meta": {
        "duration": 0.014567385,
        "endpoint": "/api/v0/country",
        "success": true
    }
}

Countries

List of all countries

Parameters:

 countries

Example:

http://api.datalastic.com/api/v0/countries?api-key={YOUR_API_KEY}

Response:

{
 "data": [
   {
     "iso_alpha_2": "AF",
     "iso_alpha_3": "AFG",
     "iso_numeric": "004",
     "name": "Afghanistan",
     "name_official": "Afghanistan"
 },
 {
     "iso_alpha_2": "AX",
     "iso_alpha_3": "ALA",
     "iso_numeric": "248",
     "name": "Åland Islands",
     "name_official": "Åland Islands"
 },
 ...
 {
     "iso_alpha_2": "ZW",
     "iso_alpha_3": "ZWE",
     "iso_numeric": "716",
     "name": "Zimbabwe",
     "name_official": "Zimbabwe"
 }
 ],
     "meta": {
     "duration": 0.016276123,
     "endpoint": "/api/v0/countries",
     "success": true
 }
} 

Port

View maritime port details available in Datalastic maritime API. 

Parameters:

  • uuid – UUID of port
  • unlocode – UNLOCODE of port

Example:

https://api.datalastic.com/api/v0/port?api-key={YOUR_API_KEY}&uuid=c80eb30c-6727-e2fa-1eae-303de4dd9111
https://api.datalastic.com/api/v0/port?api-key={YOUR_API_KEY}&unlocode=ESAGP

Response:

{
    "data": {

        "uuid""c80eb30c-6727-e2fa-1eae-303de4dd9111",

        "port_name""KUKAINEN",

        "country_iso""FI",

        "country_name""Finland",

        "unlocode"null,

        "port_type""Marina",

        "lat"60.815,

        "lon"21.2761,

        "area_lvl1""Baltic Sea",

        "area_lvl2""Bothnia Gulf"

    },

    "meta": {

        "duration"0.004491687,

        "endpoint""/api/v0/port",

        "success"true

    }

}
Table of Contents