Can we get an index of all the posts on a Ghost blog?


Do we have a way to get all the post titles and slugs (probably in JSON format) or something like that (like a sitemap)?

Of course, sitemap has all the URLs but there is no place to grab the title of that post with that.

My need is to have an index of posts in an Android app to provide offline search.

Thanks :slight_smile:

Hi @truekasun,

Ghost has a Content API for this purpose.

1 Like

Is there any way of getting all the posts without limiting? I mean if I don’t know how much records are there, I will probably not be able to set a limit. How can I make a request to retrieve all records?

It’s all there in the docs :slight_smile:

1 Like

Thank you very much! I was trying using limit=all on a resetlet client but did not get the result, that’s why I asked you. But it’s working when I try the URL on the browser.

Thanks again!

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