Delay in BAG key registration

Hi,

I requested an API key by phone for the BAG API for use in a hackathon. I received the API key via mail. However my GET call is returning a 401 error with the message “invalid key”. Although it’s probably an error in my code, I was just wondering if anyone has had to wait a couple of hours/days for their key to be officially registered?

Which of the BAG APIs are you using?
Where did you request the API key?
Can you share the request that fails? URL, query parameters, headers? (without sharing your API key of course)

I’m using the BAG individuele bevragingen. I’m using the Python request library with the following code:

url = 'https://api.bag.kadaster.nl/lvbag/individuelebevragingen/v2/'

response = requests.get(url,
	headers={'x-api-key' : 'API_KEY'}
)
print(response.text)

Hi Yaika,

In order to pin point the issue with the API Key I will need the name of the company to which the API key is registered. With this information I can check if the provided API Key is correct.
If you don’t want to share the name of the company on this forum, feel free to send me a personal message.

Kind regards,

Nathalie Vos
Kadaster BAG

At the hackathon a lot of temporary API keys for the day where given. If you got a key at a hackathon it could be expired.