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


#1

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.


#2

You have to use include=tags.


#3

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


#4

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