# API pagiantion

**URL:** <https://discuss.write.as/t/api-pagiantion/48>\
**Category:** Development\
**Created:** [July 12, 2018, 8:19pm UTC](https://discuss.write.as/t/api-pagiantion/48 "2018-07-12T20:19:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![severak](https://discuss.write.as/user_avatar/discuss.write.as/severak/32/19_2.png) [@severak](https://discuss.write.as/u/severak)\
**Post date:** [July 12, 2018, 8:19pm UTC](https://discuss.write.as/t/api-pagiantion/48/1 "2018-07-12T20:19:31Z")

</div>

Hi,  
is it possible to paginate using “Retrieve collection posts” API call? ([https://developers.write.as/docs/api/#retrieve-collection-posts](https://developers.write.as/docs/api/#retrieve-collection-posts))

I am trying to create simple app for printing write.as articles to paper (nothing sophisticated - just fetch article markdown, render it as HTML and apply heavy print-optimized CSS inspired by [https://github.com/vladocar/Hartija---CSS-Print-Framework](https://github.com/vladocar/Hartija---CSS-Print-Framework)).

However, I need to translate slug of post e.g. `blog/we-just-released-a-few-updates-to-write-as-on-the-web` to it’s ID. I wanted to do it with enumeration of posts in collection, but it’s seems there is a limit of posts you can enumerate.

TL;DR - how to fetch page 2 in collection or how to translate full slug to ID?

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [July 14, 2018, 1:29pm UTC](https://discuss.write.as/t/api-pagiantion/48/2 "2018-07-14T13:29:43Z")

</div>

Sounds really cool! I’d love to see / promote that app when you’re finished, if you’d like to share it. But no pressure.

Both these things weren’t supported yet, so I’ve added them to the API. There’s a new endpoint for [retrieving a single collection post](https://developers.write.as/docs/api/#retrieve-a-collection-post) (which includes the post’s ID), and now you can add a `page` query parameter (e.g. `?page=2`) to the _Retrieve collection posts_ endpoint to get later pages.

---

<div class="post-metadata">

**Author:** ![cjeller1592](https://discuss.write.as/user_avatar/discuss.write.as/cjeller1592/32/128_2.png) [@cjeller1592](https://discuss.write.as/u/cjeller1592)\
**Post date:** [April 16, 2019, 3:10pm UTC](https://discuss.write.as/t/api-pagiantion/48/3 "2019-04-16T15:10:24Z")

</div>

Just wanted to bump this topic because I ran into this working with the API. I stumbled upon the page query parameter through trial and error. Before that I consulted the docs and noticed it wasn’t there.

Could we put the `page` query parameter in the docs to help others using the Retrieve Collection Posts method?

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [April 22, 2019, 10:44am UTC](https://discuss.write.as/t/api-pagiantion/48/4 "2019-04-22T10:44:15Z")

</div>

Yep, I’ll make sure this gets added to the documentation 👍

---

<div class="post-metadata">

**Author:** ![robjloranger](https://discuss.write.as/user_avatar/discuss.write.as/robjloranger/32/291_2.png) [@robjloranger](https://discuss.write.as/u/robjloranger)\
**Post date:** [June 21, 2019, 10:02pm UTC](https://discuss.write.as/t/api-pagiantion/48/5 "2019-06-21T22:02:19Z")

</div>

still needs updating, I was going to open an issue but the docs repo doesn’t have issue enabled.

---

<div class="post-metadata">

**Author:** ![cjeller1592](https://discuss.write.as/user_avatar/discuss.write.as/cjeller1592/32/128_2.png) [@cjeller1592](https://discuss.write.as/u/cjeller1592)\
**Post date:** [June 22, 2019, 1:53pm UTC](https://discuss.write.as/t/api-pagiantion/48/6 "2019-06-22T13:53:04Z")

</div>

I noticed that too. Could we have issues enabled for the API docs @matt?

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [June 23, 2019, 2:26pm UTC](https://discuss.write.as/t/api-pagiantion/48/7 "2019-06-23T14:26:20Z")

</div>

Great idea – done 🙂

---

<div class="post-metadata">

**Author:** ![cjeller1592](https://discuss.write.as/user_avatar/discuss.write.as/cjeller1592/32/128_2.png) [@cjeller1592](https://discuss.write.as/u/cjeller1592)\
**Post date:** [June 23, 2019, 5:08pm UTC](https://discuss.write.as/t/api-pagiantion/48/8 "2019-06-23T17:08:24Z")

</div>

Thanks @matt and @robjloranger ! I just opened up the issue [here](https://github.com/writeas/docs/issues/1). Feel free to follow through as needed.
