Goto APIs

Countries API

General:

Basics:

Base-URL: https://capi.lagerkoll.com/v1/countries/
Parameters in the url should all be encoded and all data sent should be UTF-8

MAX number of requests per minute is set to 200.
When the limit is hit an error with code 429 is returned, with the header "Retry-After" containing the number of seconds you have to wait for your next request.

Headers:

Accept: application/json
Content-Type: application/json

Errors:

Code Description
900001 Credentials don't match
900101 Common error
900429 Too many requests
{
  "errorCode" : 900101,
  "errorMessage" : "Something went wrong on the server",
  "errorField" : null,
  "errorData" : null
}

Countries API:

Countries

Get countries

GETUrl:
Headers:
Accept: application/json or application/xml
Get a list of valid countries

Valid parameters:

Parameter Description Default value Allowed values
query

Body:
Successfull response:

{"countries": [{ "code": "code", "name": "name" }]}

Classes:

CountriesResponse

Field Type Description Default Mandatory Accepted values Example values Access
countries List R

Country

Field Type Description Default Mandatory Accepted values Example values Access
code String R
name String R