Title: WooCommerce API: Paging
Last modified: May 28, 2021

---

# WooCommerce API: Paging

 *  Resolved [alexlesa](https://wordpress.org/support/users/alexlesa/)
 * (@alexlesa)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-api-paging-2/)
 * Hi all,
 * I am attempting to help a client but having problems with what I believe is pagination.
   From what I can see, the first page on the woocommerce API should be 1 (not 0
   indexed) however this does not appear to be working for me.
 * See example request:
    [https://meditatemate.com.au/wc-api/v2/orders?status=processing&filter%5Blimit%5D=100&filter%5Bmeta%5D=true&page=1](https://meditatemate.com.au/wc-api/v2/orders?status=processing&filter%5Blimit%5D=100&filter%5Bmeta%5D=true&page=1)
 * This returns a different result set to:
    [https://meditatemate.com.au/wc-api/v2/orders?status=processing&filter%5Blimit%5D=100&filter%5Bmeta%5D=true&page=0](https://meditatemate.com.au/wc-api/v2/orders?status=processing&filter%5Blimit%5D=100&filter%5Bmeta%5D=true&page=0)
 * I thought this may be related to ordering, however in request 1, there is nothing
   returned on page 2. Can you please confirm if we should be starting with 0 or
   1?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [5 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-api-paging-2/#post-14492793)
 * Hello,
    According to the code, the first page should be 1, not 0.
 * I cannot check the links you sent as they are missing the consumer key and return
   nothing.
 *  Thread Starter [alexlesa](https://wordpress.org/support/users/alexlesa/)
 * (@alexlesa)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-api-paging-2/#post-14492968)
 * Hi Nicola,
 * Can you please confirm why the below request is returning no orders:
 * [https://meditatemate.com.au/wc-api/v2/orders?status=processing&filter%5Blimit%5D=100&filter%5Bmeta%5D=true&page=1&consumer_key=ck_f405e0fb57ef120328325e86397174689bbd8edc&consumer_secret=cs_709f8be1e89db0ef67d82d2cc2bdc2eaf20533f1](https://meditatemate.com.au/wc-api/v2/orders?status=processing&filter%5Blimit%5D=100&filter%5Bmeta%5D=true&page=1&consumer_key=ck_f405e0fb57ef120328325e86397174689bbd8edc&consumer_secret=cs_709f8be1e89db0ef67d82d2cc2bdc2eaf20533f1)
 * There are orders in the processing state, for example:
    [https://meditatemate.com.au/wc-api/v2/orders/3628?status=processing&filter%5Blimit%5D=100&filter%5Bmeta%5D=true&page=1&consumer_key=ck_f405e0fb57ef120328325e86397174689bbd8edc&consumer_secret=cs_709f8be1e89db0ef67d82d2cc2bdc2eaf20533f1](https://meditatemate.com.au/wc-api/v2/orders/3628?status=processing&filter%5Blimit%5D=100&filter%5Bmeta%5D=true&page=1&consumer_key=ck_f405e0fb57ef120328325e86397174689bbd8edc&consumer_secret=cs_709f8be1e89db0ef67d82d2cc2bdc2eaf20533f1)
 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-api-paging-2/#post-14494116)
 * Hi there,
 * I’ve just looked at that first request and orders are returning for me:
 * 
    Link to image: [https://d.pr/i/imgMzA](https://d.pr/i/imgMzA)
 * With that said, please note that you’re using an outdated version of the REST
   API – we’re currently on version 3 while your requests are still referencing 
   version 2.
 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-api-paging-2/#post-14494138)
 * Sidenote: Seeing as this is public forum, you’ll want to consider removing those
   API keys seeing as customer data can be accessed.
 *  Thread Starter [alexlesa](https://wordpress.org/support/users/alexlesa/)
 * (@alexlesa)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-api-paging-2/#post-14513974)
 * Hi there,
 * The orders are not returned consistently on the API. Can you please confirm if
   this is a known issue in the version of WooCommerce API we are using and upgrading
   will resolve it?
 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [5 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-api-paging-2/#post-14514235)
 * > Can you please confirm if this is a known issue in the version of WooCommerce
   > API we are using and upgrading will resolve it?
 * I am not sure if it was a known issue since several fixes have been released 
   since the version 2 of the API has been replaced by version 3.
 * If you are not sure about updating on your live site, you could try updating 
   on a test/dev/staging site first and see if that helps you!
 *  Plugin Support [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * (@abwaita)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-api-paging-2/#post-14540835)
 * Hi [@alexlesa](https://wordpress.org/support/users/alexlesa/),
 * We’ve not heard back from you in a while, so I’m marking this thread as resolved.
   Hopefully, the above info was helpful.
 * If you have further questions, please feel free to open a new topic.
 * Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WooCommerce API: Paging’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [paging](https://wordpress.org/support/topic-tag/paging/)

 * 7 replies
 * 4 participants
 * Last reply from: [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-api-paging-2/#post-14540835)
 * Status: resolved