Filter for tags with spaces

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?

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:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.