Filter for tags with spaces


#1

A get request to

http://localhost:2368/ghost/api/v2/content/posts/?key=<GHOST_API_KEY>&filter=tag:Getting%20Started

is returning a 400. How do I filter an api call for posts that have a tag that has spaces?


#2

In filters tag is an alias for tags.slug - slugs cannot have spaces. The slug for the getting started tag is getting-started. If you want to filter on name, you’d need to pass the full path tags.name and also use a string with quotes: