Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
per_page is not type of integer. Woocommerce REST API Node.js

I am using Woocommerce rest api with react native. I am trying to get list of all categories but I am getting maximum 10 items.

const WooCommerce = new WooCommerceRestApi({url: "xxxxxs", // Your store URL 
ssl: true,
consumerKey: "xxxxx", // Your consumer secret
consumerSecret: "xxxxxx", // Your consumer secret
wpAPI: true, // Enable the WP REST API
integration version: "wc/v3", // WooCommerce WP REST API version
queryStringAuth: true,})

const categories = await WooCommerce.get( "products/categories?per_page=50")
console.log(categories)

I am getting this response:

enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to pass parameters this way:

...
parameters = {}
parameters[per_page] = 1

categories = await WooCommerce.get("products/categories/", params=parameters)
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!