Shopify API: Products, Collections, and Variant Data from Any Store

Updated:
Shopify API: Products, Collections, and Variant Data from Any Store

Anysite now provides structured access to Shopify store data — products, collections, variants, pricing, and inventory — via four ready-made endpoints. The full endpoint family is live at anysite.io/endpoints/shopify/.

What data is available

Shopify powers a large share of direct-to-consumer e-commerce. Until now, accessing that data programmatically required either a Shopify app with per-store OAuth approval or manual scraping. The Anysite Shopify API reads from publicly available storefront pages and returns clean, structured JSON — one POST request, no app registration, no per-merchant setup.

The four endpoints cover the two main data surfaces on any Shopify store:

Products

Two endpoints for product data:

  • POST /api/shopify/products — full product record by store domain and product handle or URL. Returns title, brand, product_type, tags, description, images, options, and a full variants array. Each variant carries price, list_price, currency, SKU, barcode, availability flag, inventory_quantity, inventory_policy, weight, and shipping flags.
  • POST /api/shopify/products/search — list all products from a store by domain. Same product fields as the single-product endpoint. The count parameter controls how many products to return.

Collections

Two endpoints for collection data:

  • POST /api/shopify/collections — collection metadata by store domain and collection handle or URL. Returns title, description, image, product_count, and timestamps.
  • POST /api/shopify/collections/products — products within a collection. Returns the same variant and pricing detail as the single-product endpoint, limited to the requested count.

Common use cases

A competitive pricing monitor can be assembled with a single call to /products/search per competitor store on a scheduled basis. The variant-level price and list_price fields expose both the current price and the original list price, so markdown detection is straightforward without any additional data processing.

Catalog synchronization workflows use /products/search to enumerate all products in a supplier store, then call /products on any SKU that has changed since the last sync. The updated_at field on each product and variant makes change detection reliable.

Inventory monitoring pipelines check the inventory_quantity and available fields on variants to detect stockouts and restocks without polling the front-end UI. The inventory_policy field distinguishes stores that allow overselling from those that do not.

Authentication and pricing

All Shopify endpoints use POST requests with an access-token header — the same token used for every other Anysite endpoint. No Shopify partner registration, no app approval process, no per-store OAuth flow. Each call costs 1 credit, the standard BASE tier pricing. The endpoints are available on all Anysite plans starting with the Starter tier ($49/month, 15,000 credits).

Get started

The endpoint overview page at anysite.io/endpoints/shopify/ has curl examples for all four endpoints and a full parameter reference. API parameter details are at docs.anysite.io.

If you are building e-commerce data workflows — price monitoring, catalog sync, inventory tracking, or competitive research — the Shopify endpoints provide the structured data layer without the per-store app approval overhead.