For anyone wondering the same thing, it turns out that you can use the woocommerce API with any normal authentication methods.
WooCommerce includes two ways to authenticate with the WP REST API. It is also possible to authenticate using any WP REST API authentication plugin or method.
This means I was able to use the athentication method provided by the JWT plugin to authenticate the request.
This works fine until you want to use a the product API publicly. For some reason, there is no way to use the woocommerce api without authentication.
As it turns out, the products are stored as simple post in wordpress. It is possible to access them using the standar wordpress REST api using the following route.
/wp-json/wp/v2/product
/wp-json/wp/v2/product/<product id>
Those API endpoints don’t need authentication.
Related Posts:
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- Process checkout using WC REST API
- How to build a plugin that supports authenticated POST requests to the REST API from external servers?
- Extend Woocommerce rest api routes fails
- How to filter Post using Meta Data REST API
- How to stop a Gutenberg Block from firing multiple GET Requests?
- Output JSON object with woocommerce products
- Problem with cURL and rest API
- Woo API REST : product variation price is read-only?
- Category Tree In WooCommerce Product API
- How to upload Woocommerce product images via API? [closed]
- What will make Woocommerce REST API to issue 401 [closed]
- Woocommerce custom endpoints
- Woocommerce REST API – updating an order changes custom tax calculations
- Woocommerce Rest Api Categories problem [closed]
- API returns blank response after installing & uninstalling WP-rest-api plugin
- woocommerce axios react
- Get specific values in Woocommerce Rest API
- wc_get_products() not return the images details
- WooCommerce – Add product with image via REST API
- Tax are not showing on order while placing order with REST API
- JWT on Woocommerce cannot work with “Customer” role user
- Woocommerce REST API – add filter to set maximum query per page for product brands [closed]
- WooCommerce – Create multiple product tags via rest api endpoint
- Using the WordPress and WooCommerce REST APIs in the same Node app
- Retrieve Data from Custom Endpoint
- How to solve `Error getting remote image` in woocommerce rest api script?
- Getting in an exception for get product detail by id in woocommerce REST api
- Impossible to create a new WooCommerce customer using Rest API
- Woocommerce API security concerns
- How can I send information when a order is completed to my own POS?
- Woocommerce Rest API: woocommerce_product_invalid_image_id
- WC Booking query bookings with date ranges
- “error_message”: “Sorry, you cannot list resources.” using WooCommerce API
- Woocommerce REST API: creating variations
- Woocommerce REST API not considering discounts and coupons
- WooCommerce REST API endpoints don’t exist
- Fetch products with filter by similar categories at same time
- Send data to external websites when there is an update or create a post
- Auto generating API keys using the Application Authentication Endpoint [closed]
- GET woocommerce order request is not showing meta data [closed]
- How to add fee_lines using woocommerce rest API v3?
- Update a server-side render Block when woocommerce cart block changed
- Where is the “default attribute” values located in the phpMyAdmin in Woocommerce?
- Which WooCommerce hook do I need to use to place the coupon field after the checkout sidebar
- WooCommerce Cart – Group Products By Category
- WooCommerce – update order item price and recalculate totals
- Categories not shown in admin after adding woocommerce products via wp wc cli
- Enabling autosave when plugin disabled
- WooCommerce email text based on category && shipping zone && payment method [closed]
- woocommerce – get_image_size() deprecated [closed]
- Avada & WooCommerce Customization – Replacing product_title in woo-config.php [closed]
- WooCommerce template page for category
- Woocommerce api: create product with images – bad request
- Woocommerce Shipping label just hangs
- adding a script with type=”module” to woocommerce admin area
- Woo Related Products How to override the plugin script?
- Woocommerce how to alter shipping tax before checkout
- Line break on Product details [closed]
- WooCommerce add class name in the list [closed]
- WooCommerce Hook: Content get’s displayed twice and not AFTER the order total
- Setting an attribute as variation in woo commerce via php [duplicate]
- How to remove unwanted text bug in wordpress site
- get woocommerce product image url and price from database [closed]
- Trying to style Woocommerce sidebar Cart Widget [closed]
- Cancelled orders move to Trash automatically in Woocommerce – how to disable?
- Adding Field in WooCommerce
- How can i access woocommerce order variables inside shortcode?
- Conditional logic – if product has a parent category, echo this
- WooCommerce set default product sort to product description (content) [closed]
- Custom action not working in Woocommerce
- Woocommerce variable product’s total amount by javascript
- Prices showed without decimals separator on BACKEND. Weight/price not working on Wocommerce
- add the attribute value above the english product title
- Save product short description in order (without updating in order details if it is updated in product)
- Can I create categories or attribute contain more than 70,000?
- Combine one action and one filter
- How to run code when cookie is added?
- Return product list based on current product attribute
- How to Get WooCommerce Product Price
- Applying pre-production modifications
- WooCommerce – Remove automaticly added membership product if user remove regular product from cart
- Temporary access to page with URL sent to email
- Use woocomerce shop filters on other pages
- Product related to post by title
- How do you programatically add a booking item to the cart?
- How to change the link of product menu from wordpress admin panel
- Anchor link to every product
- Plugin could not be activated because it triggered a fatal error
- Woocommerce custom product with JS script, can’t understand how it works [closed]
- Rename woocommerce button [closed]
- Create templates from attributes for categories
- How do I get slug of term by his name?
- Not showing correct number of product after using sort [closed]
- Reposition variation stock message
- Changing the all filename field of WooCommerce products
- My account page, don’t show the complete “Registration form”
- Woocommerce product not responsive
- limit all products
- Pricing Rules plugin bulk table not showing in varition of products (have 2 attributes) if single attribute its shows