Hi.
We have many pages with different locale target. I want to fetch pages data only for specific locale target.
Request URL:
https://cdn.builder.io/api/v3/content/page?apiKey=......&userAttributes.locale=en_us
returns an empty array.
Could you provide a correct request url?
Thanks and regards
Andrzej
Hello
The URL you provided looks mostly correct, but double-checking the locale attribute setup in your content might help. Here’s a sample request URL that should work, assuming your locale setup is correct:
https://cdn.builder.io/api/v3/content/page?apiKey=YOUR_API_KEY&query={“data.locale”:“en_us”}
Replace YOUR_API_KEY
with your actual Builder.io API key.
If this doesn’t resolve the issue, it could be worth reviewing the locale settings in your Builder.io
Thank you
nathaniel