Home / Blog / Amazon Competitor Stock Level via API: What You Can and Cannot Know

Amazon Competitor Stock Level via API: What You Can and Cannot Know

inventory on a live offer looks like a stock count but is really a capped add-to-cart maximum - here is what the API can honestly tell you about a competitor's stock, and what it cannot.

October 21, 2026
3 min read
SellerMagnet Team
Share & Bookmark
Terminal window showing a Python function that reads an offer's add-to-cart cap, not real stock

To check a competitor's Amazon stock level via API honestly, start from what the fields actually measure: offers[].inventory is the add-to-cart maximum a buyer sees right now, capped low by default, not a real stock count, and /amazon-product-statistics tracks each New-condition seller's history of that same capped number over time. Neither one hands you a true warehouse count, and treating either as one will make you call false stock-outs.

Key Takeaways

  • offers[].inventory is the live add-to-cart cap (default 1) - a lower bound, never the real stock.
  • /amazon-product-statistics' per-seller stockHistory tracks that same capped number over time, for condition New sellers only.
  • A used/renewed-only seller never appears in stockHistory, by design.
  • Confirm a suspected stock-out with a second check; checks are irregular, so a gap is not proof.
  • An unknown/delisted ASIN is a billed 404, distinct from a genuinely empty offers list.

Where does each stock signal actually come from?

Two fields, two different honest limits (October 2026).
FieldEndpointWhat it really is
offers[].inventory/amazon-product-offerslive add-to-cart cap (default 1); a LOWER BOUND only
data.offers[seller].stockHistory/amazon-product-statisticstracked units over time, condition New sellers only

How do I read a live cap and a seller's stock history without overclaiming?

offer_inventory_caps() labels the field for what it is - an add-to-cart cap, not stock - so nothing downstream mislabels it. seller_stock_history() returns an empty list for a seller with no tracked entry instead of raising, since that is a normal case (a used/renewed-only seller, or one simply not yet tracked). get() and new_session() come from the Python quickstart; live offer fields are covered in the Offer Listing API guide.

stock_level.py - an honest read of inventory and stock history

from sellermagnet import get, new_session


def offer_inventory_caps(session, asin: str, marketplace_id: str) -> list[dict]:
    """Live offers with their add-to-cart cap. inventory is NOT the seller's real
    stock - it is the maximum quantity Amazon lets a buyer add to the cart right
    now (default 1), a lower bound only. Never read it as 'units in stock'."""
    data = get(session, "amazon-product-offers", asin=asin, marketplaceId=marketplace_id)
    return [
        {"seller": o["sellerName"], "fulfillment": o["fulfillmentType"], "add_to_cart_cap": o["inventory"]}
        for o in data["offers"]
    ]


def seller_stock_history(session, asin: str, marketplace_id: str, seller_id: str) -> list[list]:
    """Per-seller stockHistory from /amazon-product-statistics: [[timestamp, units], ...].
    Covers condition New sellers only (the endpoint filters to New before tracking),
    so a used/renewed-only seller never shows up here."""
    data = get(session, "amazon-product-statistics", asin=asin, marketplaceId=marketplace_id)
    seller = data["offers"].get(seller_id)
    if seller is None:
        return []
    return seller["stockHistory"]


if __name__ == "__main__":
    session = new_session()
    print(offer_inventory_caps(session, "B0CL61F39H", "ATVPDKIKX0DER"))
    print(seller_stock_history(session, "B0CL61F39H", "ATVPDKIKX0DER", "A1COMPETITOR"))
    print(seller_stock_history(session, "B0CL61F39H", "ATVPDKIKX0DER", "A1NOTTRACKED"))

Example output (illustrative ASIN and sellers)

[{'seller': 'CompetitorCo', 'fulfillment': 'FBA', 'add_to_cart_cap': 1}, {'seller': 'SmallStore', 'fulfillment': 'FBM', 'add_to_cart_cap': 3}]
[['2026-10-01 00:00:00', 42], ['2026-10-10 00:00:00', 0], ['2026-10-13 00:00:00', 18]]
[]

Trimmed stockHistory entry (example values)

{
  "A1COMPETITOR": {
    "isFBA": true,
    "stockHistory": [
      ["2026-10-01 00:00:00", 42],
      ["2026-10-10 00:00:00", 0]
    ]
  }
}
Blueprint anatomy of an offers call highlighting the inventory field
The one field most dashboards mislabel as stock.
Blueprint table comparing the two stock-adjacent fields
Neither field is a real stock count; know the limit before you alert on it.

Why does my stock-out alert fire on a seller that still has stock?

Because a capped inventory reading of a low number, or even 0, reflects the add-to-cart maximum at that moment, not a confirmed stock-out; Amazon can cap the number for reasons unrelated to true stock. Confirm with a second check before alerting, the same pattern the Out-of-Stock History guide uses for the repricer's own confirm cycle.

Frequently Asked Questions

Can I know a competitor's real warehouse stock via this API?

No. inventory is the add-to-cart maximum Amazon shows a buyer right now, capped low by default (often 1), not the true stock count; treat it as a lower bound, never a measurement.

Why would stockHistory have gaps or stop updating for a seller?

The history is condition New only, so a seller who switches to Used/Renewed-only stops appearing, and a seller with no tracked entry simply returns an empty history, not an error.

Does a 0 in stockHistory always mean a stock-out?

A recorded 0 means the tracked add-to-cart cap read 0 at that check, consistent with a stock-out, but confirm with a second check before calling it one since checks are irregular.

Is inventory comparable between an FBA and an FBM offer?

Both report the same add-to-cart cap concept; the API does not document a verified difference in true stock between FBA and FBM, so read either as a lower bound, not stock.

What is the honest way to monitor a competitor's stock-outs?

Poll offers[].inventory and the Buy Box presence on your own schedule, confirm a suspected stock-out on a second check, and use statistics stockHistory only as a New-condition-only cross-check, never as the sole signal.

Bottom line: read inventory as a capped lower bound and stockHistory as a New-condition-only trend, confirm anything that looks like a stock-out with a second check, and never report either field to a reader as a real stock count.

Related Articles

Continue exploring topics related to this article.

Terminal window showing a DataAnnotations-validated LookupRequest DTO rejected before any network call
Amazon API Performance Csharp

Wrap an Amazon Product API in an ASP.NET Core Minimal API: Caching and Validated DTOs

Wrap the SellerMagnet API in an ASP.NET Core minimal API: a DataAnnotations-validated DTO and an IEndpointFilter reject a bad ASIN or marketplace before any network call, a ConcurrentDictionary-backed TTL cache answers repeat lookups for free, and the C# quickstart's own client files are reused unchanged. Every scenario, including a cold-cache race and a client timeout, runs through WebApplicationFactory against a fails-closed fake HttpListener.

Dec 05, 2026 Read
Code editor showing an Elixir validation pipeline rejecting a malformed lookup request before any network call
Amazon API Performance Elixir

Wrap an Amazon Product API in an Elixir Plug Microservice: Caching and Validation

Wrap the SellerMagnet API in a small Elixir microservice built on Plug (the toolkit Phoenix itself sits on): a validation module checks the ASIN and marketplace before any network call, a public ETS table answers repeat lookups for free, and the Elixir quickstart's own client.ex, retry.ex and product.ex are reused completely unchanged. Every scenario is run against the real Plug router and a fails-closed fake HTTP server, not described by hand.

Dec 05, 2026 Read
Terminal window validating a lookup request before any network call in a Sinatra route
Amazon API Ruby Performance

Wrap an Amazon Product API in a Ruby Sinatra Microservice: Caching and Validation

Wrap the SellerMagnet API in a small Sinatra microservice: a regex and a Hash membership check validate the ASIN and marketplace before any network call, a mutex-guarded TTL cache answers repeat lookups for free, and the Ruby quickstart's own seller_magnet.rb client and retry policy are reused unchanged. Every scenario, including concurrent requests sharing one cache, runs with Minitest and Rack::Test against a fails-closed fake Net::HTTP layer, not described by hand.

Dec 04, 2026 Read
Back to Blog

Ready to Extract Amazon Data at Scale?

Start building with SellerMagnet API today. Real-time product data, competitive pricing, and review analytics at your fingertips.

150 free API credits • No credit card required • Cancel anytime