Strapi V4 search by slug instead ID

Hi,

Updating because I just found it:

http://localhost:1337/api/your-content-type-plural?filters[your-slug-field-name][operator]=your-slug-goes-here
# In my case:
http://localhost:1337/api/posts?filters[slug][$eq]=entrada-de-prueba-2

Source: REST API - Strapi Developer Docs

5 Likes