Filter on locations list

Hi,
I’m try to get the location list filtering them by name but the name filter appears like not working.

I want to get only locations with the word “pizzeria”.

Following the docs here the url of the request looks like this

https://api.yext.com/v2/accounts/me/locations?filters=%5B%7B%22name%22%3A%7B%22contains%22%3A%5B%22pizzeria%22%5D%7D%7D%5D&v=20211116&limit=50&offset=0&access_token=xxxxxxxxxxxxxxxxxx

but I’m getting back all the locations.

Why i’s not filtering? What am I doing wrong?

Many thanks

Hi Alessandro,

Thanks for reaching out to the community! I took a look into this and the API endpoint you’re using doesn’t allow for filtering. I recommend using the Entities API to filter the results. Let us know how that goes!

Thank you!
Dana