• at86

    (@at86)


    Hi,
    I need to fetch all the products from a v1 woocommerce website (version 2.6.11). In the previous versions I managed that by adding &filter[limit]=-1 in the request, but it doesn’t work on the new V1 version. Can you please tell me what I need to do?

    • This topic was modified 7 years ago by at86.
Viewing 2 replies - 1 through 2 (of 2 total)
  • kursora

    (@kursora)

    Try filter[posts_per_page]=-1 or filter[per_page]=-1

    • This reply was modified 7 years ago by kursora.
    Thread Starter at86

    (@at86)

    Thanks! the first option worked fine but I am a bit sceptical because in the response headers the number of the pages is the negative number of products/posts:

    X-WP-Total →715
    X-WP-TotalPages →-715

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get all products using api rest v1( wooCommerce version 2.6.11)’ is closed to new replies.