AI agent that takes a snapshot of a Shopify competitor
The job
Merchandising teams like to know how wide a rival's catalogue is and where its prices sit. This agent reads a public Shopify store's catalogue summary and keeps a dated record, so changes in range and price show up over months and not from memory.
Run it monthly for each store, on the same day, so the comparison is fair.
Tool calls, in order
1. POST /v1/ecommerce/shopify/store
One domain in, one summary out: counts, price range and a few example products with their links.
What to read in the answer. Track product and variant counts, then the lowest, highest and average price. Read the currency note: prices come back in the store's own currency even though the field names mention dollars. A round product total may be a cap, so check before reporting growth.
curl -X POST https://api.foxapis.com/v1/ecommerce/shopify/store \
-H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
-d '{"domain":"gymshark.com"}'
A real answer (saved 2026-11-22)
{
"domain": "https://gymshark.com",
"total_products": 2500,
"total_variants": 15923,
"unique_vendors": 1,
"price_min_usd": 1.8,
"price_max_usd": 80,
"price_avg_usd": 28.1,
"sample_products": [
{
"title": "Gymshark Showing Up Patch - Conditioning Red",
"vendor": "Gymshark | Be a visionary.",
"product_type": "Unisex>Accessories>Misc.>patch",
"price": "8.00",
"available": true,
"url": "https://gymshark.com/products/gymshark-showing-up-patch-misc-red-aw26"
},
{
"title": "Gymshark Light Hold Shorts - Cool Brown",
"vendor": "Gymshark | Be a visionary.",
"product_type": "Womens>Apparel>Shorts>tight",
"price": "11.20",
"available": false,
"url": "https://gymshark.com/products/gymshark-light-hold-shorts-cool-brown"
}
],
"currency_note": "Prices returned in store's native currency (usually USD)"
}Instruction to paste into your agent
You keep monthly catalogue snapshots of named Shopify stores. Fetch the store summary, compare with last month and report changes in product count, variant count and price range with percentages. Mention the currency note. If a total looks capped or round, say the true number may be higher. Draw no conclusions about sales.
Rules the agent should follow
- Store each snapshot with its date and compare like with like.
- Open sample product links before quoting a price in a report.
- Say catalogue, never sales.
- If the store does not answer one month, record the gap as missing and do not fill it with last month's numbers or compare across it as though it were one month.
What the agent hands back
A monthly table per store with product count, variant count, lowest, highest and average price, the change since last month and a line on currency. Keep the raw answers so a surprising change can be checked against the original.
What a person still does
A merchandiser opens the store, looks at new collections and discounting, checks whether a jump in products is a real range change or a catalogue tidy up, and decides if your own assortment or pricing needs a response.
Limits
- Nothing about revenue, stock levels or best sellers is returned.
- Only stores whose public catalogue can be read will answer.
- An average price hides how products are spread across the range.
Platform changes can explain a shift in a rival's store, so keep the Shopify changelog, release by release beside the snapshot.
Cost of one run
POST /v1/ecommerce/shopify/store: 5 credits
Total for one pass, taking one record or lookup from each call above, in credits: 5. Repeating a call costs it again. What a credit costs · Get a free key
MCP setup
The live MCP server offers shopify_store. Add this to your MCP client's settings (Cursor reads .cursor/mcp.json; other clients use slightly different files), with your own key in place of YOUR_KEY.
{
"mcpServers": {
"foxapis-data": {
"url": "https://foxapis.com/mcp/data",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}
Function definitions (plain JSON)
Each entry names the function, its arguments and the HTTP request it stands for. Your code sends the request with the header Authorization: Bearer YOUR_KEY and returns the JSON to the agent.
[
{
"name": "shopify_store",
"description": "One domain in, one summary out: counts, price range and a few example products with their links.",
"parameters": {
"type": "object",
"properties": {
"domain": {
"type": "string"
}
},
"required": [
"domain"
]
},
"http": {
"method": "POST",
"url": "https://api.foxapis.com/v1/ecommerce/shopify/store"
}
}
]
Pages for these calls
More blueprints
Sponsor research agent · Post evidence agent · Artist brief agent · Streamer check agent · all of them