Ghost api:; filter author and not id

Api version 0.1

My query has a filter looking like this
/ghost/api/v0.1/posts/?client_id=xxx&client_secret=xxx&filter=id:-5c0fce9d196da60001588a2a+authors:[james]

But I’m getting an error.
{

  • message: “The request failed validation.”,

  • context: “Error parsing filter”,

  • errorType: “ValidationError”

}

Any ideas why? Both filters work independently. But together with + operatior they fail.

You need to urlencode the value of the filter param.

I very strongly recommend upgrading to the v2 API:

Thanks for quick answer! I got it to work yesterday by url encoding the + character only

I will have a look at upgrading our API:s :slight_smile:

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