Skip to content

Help / Questions, API and billing

Competitor price and sale data by API and MCP

Read your tracked stores, prices, changes and sales from your own code, or ask an assistant about them.

Everything Magpie records for your stores can be read by API: the stores and their daily figures, every product with its price history, the changes, and when each store ran a sale. The same data is offered to AI assistants over MCP, so you can ask Claude or another assistant about your competitors.

The API comes with every plan: 1,000 credits a month on Starter, 10,000 on Team, 50,000 on Pro. One request for data uses one credit, and so does one question an assistant puts to Magpie. Credits start again on the first of each month, and a request that finds nothing costs nothing.

Making a key

The account's owner makes keys in Settings, under API keys. A key is shown once, so copy it when you make it. It reads everything the account tracks and changes nothing. Remove a key in Settings and it stops working at once.

Send the key with every request in the Authorization header.

curl https://api.magpiesignal.com/v1/stores \
  -H "Authorization: Bearer mgp_your_key"

What you can read

Every address starts with https://api.magpiesignal.com and answers with JSON. Days are written as YYYY-MM-DD and prices are in the store's own currency. Your plan's history limit applies here as it does in the app.

GET/v1/stores

Your stores, each with its newest figures, banner, discount codes and free-shipping offer. own is true for your own store. Start here: the other addresses need a store's id.

GET/v1/stores/{store_id}/days

One store's figures for each day, oldest first: products, on sale, average discount, sold out and the banner.

store_id
A store's id, from /v1/stores.
from
First day, YYYY-MM-DD.
to
Last day, YYYY-MM-DD.

GET/v1/stores/{store_id}/products

The products a store sells now, by title, with price, list price and stock.

store_id
A store's id, from /v1/stores.
search
Part of a product's title.
offset
Rows to skip. Send back the next_offset of the previous answer.
limit
Rows to return, up to 250. 100 when left out.

GET/v1/stores/{store_id}/products/{product_id}/prices

Every price recorded for one product, oldest first. A day is listed when the price changed.

store_id
A store's id, from /v1/stores.
product_id
A product's id, from the products list.

GET/v1/stores/{store_id}/price-moves

Each time a regular price went up or down, newest first, with the price before and after. Sales starting and ending are not listed.

store_id
A store's id, from /v1/stores.
from
First day, YYYY-MM-DD.
offset
Rows to skip. Send back the next_offset of the previous answer.
limit
Rows to return, up to 250. 100 when left out.

GET/v1/price-moves

Every store in one answer: how many regular prices were raised and lowered, the typical size of each, and the newest few.

from
First day, YYYY-MM-DD. 30 days back when left out.

GET/v1/changes

What changed at your stores, newest first.

store_id
Only this store.
kind
Only offer, banner, catalogue, email or ad.
from
First day, YYYY-MM-DD.
to
Last day, YYYY-MM-DD.
offset
Rows to skip. Send back the next_offset of the previous answer.
limit
Rows to return, up to 250. 100 when left out.

GET/v1/emails

The emails your stores sent their subscribers, newest first: subject, preview, the discount, codes and free shipping read from each, and its kind.

store_id
Only this store.
kind
Only welcome, campaign, cart, order, winback or confirm.
from
First day, YYYY-MM-DD.
to
Last day, YYYY-MM-DD.
offset
Rows to skip. Send back the next_offset of the previous answer.
limit
Rows to return, up to 250. 100 when left out.

GET/v1/stores/{store_id}/ads

One store's ads on Facebook and Instagram, grouped by message, running ones first: text, headline, start day, how many ads carry it, and any discount or code.

store_id
A store's id, from /v1/stores.
active
true for ads running now, false for stopped ones.
offset
Rows to skip. Send back the next_offset of the previous answer.
limit
Rows to return, up to 250. 100 when left out.

GET/v1/sales

When each store ran a sale, newest first: start, end, the peak share of products discounted, and the banner. end is null while the sale runs.

from
Only sales from this day on, YYYY-MM-DD.

GET/v1/usage

Credits used and left this month. Costs nothing.

Lists and pages

Lists come in a data field. Products, price moves, changes, emails and ads come 100 at a time, or up to 250 with limit. When there are more, next_offset says where the next page starts; send it back as offset. It is null on the last page.

GET /v1/stores/{store_id}/products?limit=100

{
  "currency": "EUR",
  "data": [
    {
      "id": "8123456789",
      "title": "Linen shirt",
      "url": "https://example.com/products/linen-shirt",
      "price": 49,
      "list_price": 69,
      "in_stock": true,
      "first_seen": "2026-09-14"
    }
  ],
  "next_offset": 100
}

When a request is refused

A refusal has an error field with a code and a sentence saying what is wrong. 400 means a value was written wrongly, 401 that the key is missing or was removed, 403 that the plan has no API access, 404 that the store isn't on your account, and 429 that the month's credits are used up. Each answer with data carries an X-Credits-Remaining header.

{
  "error": {
    "code": "not_found",
    "message": "There is no such store on this account."
  }
}

Asking an assistant

Magpie's MCP address is https://api.magpiesignal.com/mcp. It offers the same reads as tools, so an assistant can look things up while it answers you.

In Claude, ChatGPT and other assistants that take a custom connector, add a connector with that address. The assistant sends you to Magpie, where the account's owner logs in and chooses Allow. No key needs copying. The connection then shows under API keys in Settings as a connected app, and removing it there cuts it off.

A tool that asks for a header instead takes a key you made in Settings. In Claude Code, for example:

claude mcp add --transport http magpie https://api.magpiesignal.com/mcp \
  --header "Authorization: Bearer mgp_your_key"

Then ask in your own words: which of my competitors is on sale right now, how has this product's price moved since the summer, or what did they email their subscribers this week.

Ready-made jobs for an assistant

Six of the tools are whole jobs. Each gathers what the job needs in one call, for one credit, and tells the assistant what to write from it, so "draft my answer to Northfold's sale" takes one step. The answer is a draft: nothing is changed or sent. A job Magpie can't do, such as one naming a store you don't track, costs nothing.

A job that takes a store accepts its name, its address or its id. Assistants that list a connector's prompts show the six jobs there too. See Magpie in Claude and ChatGPT.

TOOLmagpie_sale_response

A competitor's sale with its emails, ads and deepest discounts, how long its sales usually last, and your own store beside it.

store
The competitor's name, address or id. Left out, Magpie picks one.

TOOLmagpie_price_gaps

The products you follow on Compare, ranked by how far your price is above the cheapest competitor's. Team and Pro only.

TOOLmagpie_counter_email

A competitor's latest emails with the offer in each, how often it emails, and your own store beside it.

store
The competitor's name, address or id. Left out, Magpie picks one.

TOOLmagpie_ad_angles

A competitor's running ads by message, with how many ads carry each and for how long.

store
The competitor's name, address or id. Left out, Magpie picks one.

TOOLmagpie_week_brief

What every store did over the last days: sales, price changes, banners, emails and ads.

days
How many days back, at most 31. 7 when left out.

TOOLmagpie_promo_plan

When each store ran a sale over the last year, and the retail dates in the next ten weeks.

Being told instead of asking

To have Magpie post to your system when a sale starts or something changes, add a webhook in Settings. See Sending alerts to Slack, Discord or a webhook.

Last changed . Still stuck? Write to help@magpiesignal.com