How to Filter Results on Deeply Nested fields in Strapi

Strapi provides you with multiple ways to filter results on relation’s fields deeply. This article will be covering the different ways to filter results using the following APIs:

This is a companion discussion topic for the original entry at

I believe it’s critical that the URL syntax is corrected, I lost a few hours because of the inconsistency between this tutorial and the docs here Filtering, Locale, and Publication State for REST API - Strapi Developer Docs

long story short, the valid query has the form of
GET /api/books?filters[authors][hobbies][$contain]=“dance”
and not
GET /api/books?filters\[authors\][hobbies][$contain]=“dance”

beware of those pesky \

1 Like