Skip to content
DevMarket
Odoo ModulesWordPress PluginsWordPress ThemesShopify ThemesApp TemplatesScripts & UtilitiesBlogSell on DevMarket
PluginWordPressNew

Custom REST API Expander for WooCommerce – Mobile App Ready

Expose product variations, selected custom meta fields and gallery image URLs in the WooCommerce REST API products response: fast, N+1-free and ready for mobile apps and headless stores.

No reviews yet0 salesby TAQNIXUpdated Oct 21, 2026

Description

Richer product data for apps and headless stores

REST API Expander for WooCommerce adds the data apps always need straight into the standard /wp-json/wc/v3/products response: full variation details, gallery image URLs and the custom meta fields you choose, all under one clean key. No second request per product, no custom endpoints to maintain.

It uses WooCommerce's own woocommerce_rest_prepare_product_object filter and is written for performance: caches are primed once per page of products, so there are no N+1 queries. It is lightweight, object-oriented PHP with no external services.

What is added to each product

  • Variations: id, SKU, price, regular and sale price, on-sale flag, stock status and quantity, weight, attributes and image
  • Gallery: main image and gallery images with URL, size and alt text, in the image size you choose
  • Custom fields: only the meta keys you list, with prefix wildcards such as acf_*
  • Works on product lists and single products
Extra product data in the WooCommerce REST API response

Fast by design

  • All variations of a page of products are loaded in one query
  • All images and their meta are primed in one batch
  • Variation data is built from the primed cache without creating an object per variation
  • The extra data adds no per-product queries (measured against plain WooCommerce)
REST API Expander performance: no N+1 queries

You stay in control

  • Switch variations, gallery and meta on or off, and rename the response key
  • Limit a request with ?tqra=variations,gallery, or switch the extra data off with ?tqra=0
  • Meta keys are a strict allow-list; keys starting with an underscore are hidden and anything that looks like a password, secret, token or API key is never exposed
  • Filters tqra_product_data and tqra_meta_keys for developers
REST API Expander settings: what to expose

Built for developers and store owners

Translation-ready and HPOS compatible. The standard WooCommerce authentication and permissions still apply: the plugin only adds data to responses the user is already allowed to read.

REST API Expander features

What's included

  • The plugin zip, ready to upload
  • Full documentation (HTML and PDF), translation template, licence and changelog

Requirements

WordPress 6.0+, WooCommerce 8.0+, PHP 7.4+. Licensed under GPL-2.0-or-later.

Support & updates

Installation help and bug fixes are included for 6 months, with lifetime updates.

What's in the download

The files in the archive you can download after you buy.

  • Full source code
  • Documentation
  • Installation guide
  • Translation files
  • Licence file
  • Changelog

Customer reviews

Write a review

No reviews yet. Bought this item? Be the first to review it.

Usage

Install and use it in a few lines.

add_filter( 'tqra_product_data', function ( $data, $product ) {
	$data['badge'] = $product->is_featured() ? 'featured' : null;
	return $data;
}, 10, 2 );

Changelog

Every release, newest first.

v1.0.0

1.0.0 – Initial release

  • Adds variations, gallery image URLs and allow-listed custom meta to /wc/v3/products responses
  • No N+1 queries: variations, images and meta are primed once per page
  • Per-request control with ?tqra and settings for response key, parts and image size
  • Filters tqra_product_data and tqra_meta_keys; credential-like keys never exposed

Frequently asked questions

What does the plugin add to the REST API?

A block under the key tqra (you can rename it) in each /wc/v3/products item: variations, gallery image URLs and the custom meta fields you list.

Does it avoid N+1 queries?

Yes. Variations, images and their meta are loaded for the whole page of products in a few queries, and the extra data adds no per-product queries.

Which custom fields can I expose?

Only the meta keys you list in the settings, including prefix wildcards like acf_*. Keys starting with an underscore are hidden unless you allow them, and credential-like keys are never exposed.

Can the app ask for less data?

Yes. Use ?tqra=variations,gallery to limit the extra data, or ?tqra=0 to skip it.

Does it change authentication or permissions?

No. WooCommerce authentication and permissions apply as usual. The plugin only adds data to responses the user may already read.

Does it work with variable products?

Yes. Every variation is listed with price, stock, attributes and image, and simple products get the gallery and meta.

Is it good for mobile apps and headless stores?

Yes. It removes the extra requests apps usually make for variations and images.

Is any customer data stored?

No. Only plugin settings are saved.

More from TAQNIX

  • PluginNew

    Variation Swatches for WooCommerce – Color, Image & Button Swatches

    Replace dull dropdowns with color, image and button swatches on product pages and shop grids, with availability states, tooltips and no bloat.

    by TAQNIX
    No reviews yet
    Sales:0$29.00
  • PluginNew

    Wishlist for WooCommerce – Save for Later, Share & Move to Cart

    A fast, lightweight wishlist: heart buttons, guest and logged-in lists, a wishlist page with share link and a most-wishlisted report, with no account required.

    by TAQNIX
    No reviews yet
    Sales:0$24.00
  • PluginNew

    Quantity Discounts for WooCommerce – Tiered Pricing & Bulk Discounts

    Sell more per order with tiered discounts: percentage, amount-off or fixed-price tiers per product, category or store-wide, with a live price table.

    by TAQNIX
    No reviews yet
    Sales:0$29.00
  • PluginNew

    Cart Abandonment Recovery for WooCommerce – Recover Lost Sales

    Capture abandoned carts, send automatic recovery emails with an optional personal coupon and restore the cart in one click.

    by TAQNIX
    No reviews yet
    Sales:0$39.00

Similar items

  • PluginNew

    Variation Swatches for WooCommerce – Color, Image & Button Swatches

    Replace dull dropdowns with color, image and button swatches on product pages and shop grids, with availability states, tooltips and no bloat.

    by TAQNIX
    No reviews yet
    Sales:0$29.00
  • PluginNew

    Wishlist for WooCommerce – Save for Later, Share & Move to Cart

    A fast, lightweight wishlist: heart buttons, guest and logged-in lists, a wishlist page with share link and a most-wishlisted report, with no account required.

    by TAQNIX
    No reviews yet
    Sales:0$24.00
  • PluginNew

    Quantity Discounts for WooCommerce – Tiered Pricing & Bulk Discounts

    Sell more per order with tiered discounts: percentage, amount-off or fixed-price tiers per product, category or store-wide, with a live price table.

    by TAQNIX
    No reviews yet
    Sales:0$29.00
  • PluginNew

    Cart Abandonment Recovery for WooCommerce – Recover Lost Sales

    Capture abandoned carts, send automatic recovery emails with an optional personal coupon and restore the cart in one click.

    by TAQNIX
    No reviews yet
    Sales:0$39.00