Create a new API key
To get your API Check API key login to the dashboard and create a new key using the following steps:
1. Navigate to the page https://app.apicheck.nl/api-keys and give your new API key a name, and click on the button “Maak API key”.
2. A new API key will be generated, and you can see the key in the table below. Copy the value of the column “Key” in the table.
Add the API key to the request
You must include your key with every request. In this example, replace YOUR_API_KEY
with your own API key.
Authorization HeaderX-API-KEY: <YOUR_API_KEY>
URLhttps://api.apicheck.nl/lookup/v1/postalcode/nl?postalcode=1234AB&number=1
CURL example curl --location --request GET 'https://api.apicheck.nl/lookup/v1/postalcode/nl?postalcode=1234AB&number=1'--header 'X-API-KEY: <YOUR_API_KEY>' --header 'Referer: <YOUR_REFERER>'
Note: setting the referer is not required, however, if you want to use the allowed hosts function, make sure to add it. If you have permitted hosts set, and no referer header is set all requests will be blocked.
Prevent unauthorized calls
To prevent your API key from being misused on other websites you have the option to only allow a list of HTTP referrers from using your key.
Note: HTTP referrers can be spoofed. Always check your API key usage for any abnormalities. Also, make sure to pass the referer header in your request.
Run and try out in Postman: