Google Maps API — Authentication — FetchLayer Docs
FetchLayer fetchlayer.dev Sign in

Authentication

All requests use your FetchLayer API key as a Bearer token. No Google credentials are required.

Sending requests

bash
curl -X POST https://api.fetchlayer.dev/google-maps/reviews \
  -H "Authorization: Bearer ss-your-key" \
  -H "Content-Type: application/json" \
  -d '{"placeIdOrUrl":"PLACE_ID","pages":1,"maxReviews":20,"reviewsPerPage":20,"sortBy":"newest"}'

Keep your key secret

Only use API keys in server-side code and rotate a key immediately if it is exposed.

Authentication errors

A missing or invalid key returns HTTP 401.

json
{
  "error": "Invalid API key"
}