Which AppId/ApiKey to use with Algolia Places?

Hello Community,

I am running in my terminal exactly the command described here: https://community.algolia.com/places/rest.html#authentication

$ curl -X POST 'https://places-dsn.algolia.net/1/places/query' \
  -H 'X-Algolia-Application-Id: YourApplicationId' \
  -H 'X-Algolia-API-Key: YourAPIKey' \
  --data '{"query": "Paris"}'

Where I replaced YourApplicationId with QI87BUMMY2 (app name is Sh*t! I Smoke), and YourAPIKey by the “Search-Only API Key” I found on my dashboard at this url https://www.algolia.com/apps/QI87BUMMY2/api-keys.

The response I get is

{"message":"Invalid Application-ID or API key","status":403}

Am I missing something? I granted you read access to my accounts.


Dev support answered me, the correct URL to use is “https://QI87BUMMY2.algolia.net/1/indexes/places/query

Actually for future references, this is not enough to authenticate correctly your requests.

A Places app ID starts with pl to distinguish them from regular Algolia apps.

We recently updated the Places landing page and documentation to avoid this confusion. But just in case, you need to create a Places app and do no reuse your previous regular apps:

Hope that helps!

1 Like