include and fields. Browse endpoints additionally accept filter, limit, page and order.
The values provided as query parameters MUST be url encoded when used directly. The client libraries will handle this for you.
Include
Tells the API to return additional data related to the resource you have requested. The following includes are available:- Posts & Pages:
authors,tags - Authors:
count.posts - Tags:
count.posts - Tiers:
monthly_price,yearly_price,benefits
&include=authors,tags.
For posts and pages:
&include=authorswill add"authors": [{...},]and"primary_author": {...}&include=tagswill add"tags": [{...},]and"primary_tag": {...}
&include=count.postswill add"count": {"posts": 7}to the response.
&include=monthly_price,yearly_price,benefitswill add monthly price, yearly price, and benefits data.
Fields
Limit the fields returned in the response object. Useful for optimizing queries, but does not play well with include. E.g. for posts&fields=title,url would return:
Formats
(Posts and Pages only) By default, onlyhtml is returned, however each post and page in Ghost has 2 available formats: html and plaintext.
&formats=html,plaintextwill additionally return the plaintext format.
Filter
(Browse requests only) Apply fine-grained filters to target specific data.&filter=featured:trueon posts returns only those marked featured.&filter=tag:getting-startedon posts returns those with the tag slug that matchesgetting-started.&filter=visibility:publicon tiers returns only those marked as publicly visible.
Limit
(Browse requests only) By default, only 15 records are returned at once.&limit=5would return only 5 records&limit=100will return 100 records (max)
Page
(Browse requests only) By default, the first 15 records are returned.&page=2will return the second set of 15 records.
Order
(Browse requests only) Different resources have a different default sort order:- Posts:
published_at DESC(newest post first) - Pages:
title ASC(alphabetically by title) - Tags:
name ASC(alphabetically by name) - Authors:
name ASC(alphabetically by name) - Tiers:
monthly_price ASC(from lowest to highest monthly price)
&order=published_at%20ascwould return posts with the newest post last

