Getting posts from API - primary_tag is null, while tag is set

I am getting posts, but primary_tag for post entries is null (in ghost web it is set and visible),
what is wrong? I need to take tags using the API.

You have to use include=tags.

Thanks.
Didn’t find this example in your API docs, but the following URL does the job
https://blog.ghost.io/ghost/api/v0.1/posts/?include=tags

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