How to Get a Shopify Store's Products and Collections via API and MCP
How to get Shopify store products and collections as typed data over API or MCP: variants, prices, availability and SKUs, at 1 point per listed product.
By the NeuralVerge team · 12 min read · Updated November 2026
▸On this page
Here is how to get Shopify store products as data: send the store's domain to a catalog source and get back each product with its variants, prices and availability. A second source does the same for one collection, and two more read a single product or collection. All four work over API or MCP, so a script or an AI agent can use them. This post walks through the workflow with a real request, the cost and the limits.
The short version
- —Whole catalog: Shopify store products takes a store domain and returns up to 500 products per request, at 1 point per returned product.
- —One slice of the catalog: Shopify collection products takes a domain and a collection handle, at 1 point per returned product.
- —One product in detail: Shopify product takes a domain and a product handle or URL, at 5 points per returned product.
- —Who it is for: ecommerce teams watching competitors, buyers mapping a supplier's range, analysts comparing assortments and developers giving an agent a storefront to read.
- —What it is not: a keyword search, a stock ledger or a scheduler. You get what the storefront publishes at the moment you ask.
How to get Shopify store products in four steps
The pattern is the same whether you follow one competitor or twenty suppliers: find the domain, decide how much of the catalog you need, pull it, then store it so the next pull has something to be compared with.
1. Find the right store domain
Use the storefront's own domain, the one shoppers type, for example allbirds.com. The source page says this is not a myshopify.com address. Take the domain from the address bar of the shop, without the path.
The sources work for storefronts that publish their products publicly. A password-protected shop, a store that is not built on Shopify or a custom front end that does not expose its catalog may return nothing. Test one domain with a small max_items before you plan a batch around it.
2. Choose the whole catalog or a collection
Shopify stores group products into collections such as men's, women's, sale or new arrivals. If your question is about one of those groups, pull the collection and skip the rest of the catalog. The result is smaller and so is the bill.
The collection handle is the last part of its URL: mens in /collections/mens. You can pass the full URL instead. None of the four sources lists all the collections of a store, so take the handles from the storefront's navigation.
Before a large pull, the Shopify collection source can tell you how big the group is. It returns the title, description, image and product_count for 5 points. In the source page's sample, the mens collection on allbirds.com reports a product_count of 960, which means a full pull would not fit in one request of 500.
3. Pull the products
Send the request with max_items set to what you need. It defaults to 25, goes up to 500 and caps what you are billed. For anything larger, start_page continues from a later page.
The source pages do not say how many products one page holds, so do not assume that start_page: 2 begins exactly where your first batch ended. Test on the store you care about, and deduplicate on the product id when you join batches. The sample responses also carry a top-level partial field; if it is ever true, treat the batch as incomplete.
4. Store, flatten and compare
A product is a nested record: one product, several variants, each with its own price and availability. For analysis you usually want one row per variant. This function does that from the parsed response:
def to_rows(response, checked_at):
domain = response["store_domain"]
for product in response["machine"]["items"]:
for v in product["variants"]:
yield {
"store": domain,
"checked_at": checked_at,
"product_id": product["id"],
"handle": product["alias"],
"title": product["title"],
"variant_id": v["id"],
"sku": v["sku"],
"price": v["price"],
"list_price": v["list_price"],
"currency": v["currency"],
"available": v["available"],
}
Key each row on store plus variant_id. On the next run you can then spot new variants, vanished ones, price moves and availability flips. Keep checked_at on every row, because a price without a time is hard to use later.
def compare(old, new):
changes = []
for key, row in new.items():
before = old.get(key)
if before is None:
changes.append(("new", row))
elif row["price"] != before["price"]:
changes.append(("price", row))
elif row["available"] != before["available"]:
changes.append(("availability", row))
changes += [("missing", old[k]) for k in old.keys() - new.keys()]
return changes
Treat "missing" with care. It can mean the product was removed, but it can also mean your batch did not reach that far into the catalog. Only report removals when both pulls covered the same ground.
A real request and response
This is the request shown on the Shopify store products source page. Replace YOUR_API_KEY with your key.
curl -X POST https://api.neuralverge.ai/functions/v1/run-shopify-products-search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "store_domain": "allbirds.com", "max_items": 25 }'
The source page's captured sample used max_items set to 2. Below it is shortened to one product and one variant: long text, image lists, first_item, the human summary and several fields are removed. The values shown are as published there.
{
"session_id": "11111111-1111-1111-1111-111111111111",
"kind": "shopify_products_search",
"store_domain": "allbirds.com",
"max_items": 2,
"start_page": 1,
"partial": false,
"machine": {
"store_domain": "allbirds.com",
"total_items": 2,
"items": [
{
"id": 7340901859408,
"alias": "womens-allbirds-flip-flop-dusty-pink",
"title": "Women's Allbirds Flip Flop - Dusty Pink",
"brand": "Allbirds",
"product_type": "Shoes",
"variants": [
{
"id": 42146889039952,
"title": "5",
"sku": "A12513W050",
"barcode": null,
"price": 25,
"list_price": 50,
"currency": "USD",
"available": false,
"inventory_quantity": null
}
],
"currency": "USD",
"price_min": 25,
"price_max": 25,
"available": true,
"updated_at": "2026-09-30T08:12:12-07:00"
}
],
"source": "json"
},
"total_points": 2
}
What to read in it
- —
priceandlist_price. Here 25 against 50, so the variant is listed below its list price. In the same sample another product haslist_priceset tonull, so handle a missing list price as "no markdown shown", not as zero. - —
available. The variant shown isfalsewhile the product saystrue. The product-level flag means that some variant is available, so read availability per variant if size or color matters. - —
inventory_quantity. It isnullhere. Stores that do not expose stock returnnull, and that is not the same as zero. - —
barcode. Alsonullin this variant. Match to your own catalog on SKU or barcode only where they are filled. - —
total_itemsandtotal_points. Two records returned, two points charged.
The fields worth keeping
| Field | What it holds | Typical use |
|---|---|---|
items[].alias | Product handle | Input for a single-product lookup |
items[].brand, items[].product_type, items[].tags | Vendor, type and tags as the store set them | Grouping and filtering |
items[].variants | SKU, barcode, price, list price, currency, availability, inventory and weight | Price and stock tracking, catalog matching |
items[].price_min, items[].price_max | Lowest and highest variant price | Quick price-point analysis |
items[].published_at, items[].updated_at | When the product was published and last updated | Spotting launches and edits |
Parameter and response details are in the reference at docs.neuralverge.ai.
REST and MCP: build it either way
The four Shopify sources are available over REST and over the hosted MCP server, with the same arguments and the same data. REST paths use hyphens and MCP tool names use underscores. This table is generated from the source pages, at the time of writing:
| Source | Input | What it returns | Points |
|---|---|---|---|
| Shopify store products | A Shopify store domain | The store's products with options, variants, prices and availability | 1 point per returned product, up to 500 per request |
| Shopify product | A Shopify store domain and a product handle or URL | Brand, type, tags, images, options and all variants with price, SKU, barcode, availability and stock | 5 points |
| Shopify collection | A Shopify store domain and a collection handle or URL | Collection title, description, image, product count and timestamps | 5 points |
| Shopify collection products | A Shopify store domain and a collection handle or URL | The collection's products with options, variants, prices and availability | 1 point per returned product, up to 500 per request |
Over REST
Use REST for anything scheduled or large. The other three requests from the source pages look like this:
# One product, by handle or full URL
curl -X POST https://api.neuralverge.ai/functions/v1/run-shopify-products \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "store_domain": "allbirds.com", "product": "mens-tree-runners" }'
# Summary of one collection
curl -X POST https://api.neuralverge.ai/functions/v1/run-shopify-collections \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "store_domain": "allbirds.com", "collection": "mens" }'
# Products inside that collection
curl -X POST https://api.neuralverge.ai/functions/v1/run-shopify-collections-products \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "store_domain": "allbirds.com", "collection": "mens", "max_items": 25 }'
Note that a single-product response uses machine.product, while the two listing sources use machine.items. The to_rows function above expects the listing shape.
Over MCP
Add https://mcp.neuralverge.ai/mcp to your MCP client and the four sources appear as tools: run_shopify_products_search, run_shopify_products, run_shopify_collections and run_shopify_collections_products. The MCP server guide covers setup for Claude and other clients. A call for the catalog looks like this:
{ "tool": "run_shopify_products_search", "arguments": { "store_domain": "allbirds.com", "max_items": 25 } }
MCP suits questions a person asks in the moment, such as "which items in this store's sale collection are still available?" Tell the assistant to set a small max_items first. A 500-product result costs 500 points and is also a lot of text for a model to read, so large pulls belong in a script that writes to a table.
Cost and limits
The unit prices are on the source pages: 1 point per returned product for the two listing sources, and 5 points for a single product or a collection summary. A product or collection that does not resolve is not billed, and a listing that returns nothing costs nothing. Every plan on the pricing page works out to $1 per 1,000 points, and the dollar figures below are derived from that; confirm the current numbers before a large run.
A worked example
Say Acme Oy, a Finnish retailer, follows three competing Shopify stores. For the example, assume each has a 400-product catalog.
- —One full pass: 1,200 products, so 1,200 points, about $1.20.
- —Weekly for four weeks: 4,800 points, about $4.80.
- —Daily for 30 days: 36,000 points, about $36.
- —Daily on one 60-product sale collection per store instead: 180 points a day, 5,400 points over 30 days, about $5.40.
The last two lines are the lesson. Cadence and scope set the bill, so pull the whole catalog rarely and the collections that move often.
What it does not do
- —No keyword search. The listing is the catalog; you filter it yourself.
- —No guaranteed stock levels. Inventory fields are
nullwhere the store does not publish them. - —No history. Each call is a reading at that moment. Your table is the history.
- —No scheduling or alerts. Bring a cron job, a queue worker or an agent on a timer.
- —No private data. Orders, costs and sales volumes are not part of a public storefront.
Pitfalls to avoid
Reading a null as a zero. inventory_quantity: null means unknown. Writing it as 0 turns every store that hides stock into a sold-out store.
Comparing prices across currencies. Each variant carries currency. Store it and compare like with like.
Matching on title alone. Titles change and often differ by color. Use the product id, the variant_id and, for cross-store matching, SKU or barcode where present. SKUs are set by each seller, so two stores can use different codes for the same item.
Trusting a crossed-out price. list_price is whatever the store publishes. Your own stored readings are the better baseline for judging a discount.
Treating tags as clean taxonomy. Tags can include internal-looking values, such as the allbirds::carbon-score entry in the published sample. Filter them before they reach a report.
Assuming collections are stable. A store can add and remove products from a collection at any time, so the same handle can return a different set next week.
How to decide
Work through these before you build:
- —Is the store yours? If it is, Shopify's own tools with your credentials give you more than a public storefront does.
- —Do you need the whole catalog? If one collection answers the question, pull that.
- —How often does the answer change? Match cadence to the decision it feeds, not to what is possible.
- —Do you need stock counts? Check the target store first. If the fields are
null, plan aroundavailable. - —How will you match products? Decide whether SKU, barcode or your own mapping table links their items to yours.
- —What does a month cost? Multiply products by runs by 1 point, then add 5 points per single-product or collection lookup.
- —Which job is it? Common ones:
- —Competitor price tracking: price against list price per variant, over time.
- —Assortment comparison: what two stores put in comparable collections.
- —Supplier catalogs: a supplier's range in a table for sourcing.
- —Launch watching: new product ids and recent
published_atvalues.
Frequently asked questions
Do I need access to the store or an app installed on it?
No. You send the storefront's domain, and the sources read what that storefront publishes publicly. You do not need the owner's credentials. If the store is your own and you need private data such as orders or full inventory, use Shopify's own tools with your credentials instead.
Can I search a Shopify store by keyword?
No. Shopify store products lists the catalog and does not take a keyword. Pull the products and filter them in your own code by title, product type or tags, or pull one collection when the store has already grouped what you want.
How many products can I get in one request?
Up to 500. The max_items parameter caps the count and defaults to 25, and it also caps what you are billed. Use start_page to continue from a later page for catalogs or collections larger than one request.
Do I get stock quantities?
Only where the store exposes them. Otherwise the inventory fields come back as null. The available field on each variant still tells you whether that variant can be bought at the moment of the request.
What does it cost to pull a store's catalog?
Shopify store products and Shopify collection products cost 1 point per returned product, according to their source pages. Shopify product and Shopify collection cost 5 points per returned record. A product or collection that does not resolve is not billed, and a listing that returns nothing costs nothing.
Can I get Shopify store products through MCP?
Yes. Add the hosted MCP server at https://mcp.neuralverge.ai/mcp to your client. The tools are run_shopify_products_search, run_shopify_products, run_shopify_collections and run_shopify_collections_products, with the same arguments as the REST requests.
How do I find a collection handle?
It is the last part of the collection URL on the storefront, for example mens in /collections/mens. You can also pass the full URL. Check the handle with Shopify collection first if you are not sure it exists.
Related articles
What an ecommerce data api should return, how NeuralVerge's 128 marketplace sources work over REST and MCP, with a real Amazon request, response and point cost.
A classifieds data API for Leboncoin, Kleinanzeigen, OLX and Avito: listings, sellers and categories as JSON over REST or MCP, with real point costs.
Amazon product data for AI agents: look up an ASIN, read every offer, vet a seller, over REST or MCP, with a real JSON response and points per call.
About NeuralVerge
Give your agents structured, cited, real-world data from 300+ sources and the open web — through one API or MCP server.
Data Sources on the NeuralVerge blog.