<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by SellerMagnet API on Medium]]></title>
        <description><![CDATA[Stories by SellerMagnet API on Medium]]></description>
        <link>https://medium.com/@management_83162?source=rss-740e4fc3548a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FNnA1B7qvdGE7cXdJc0lYg.png</url>
            <title>Stories by SellerMagnet API on Medium</title>
            <link>https://medium.com/@management_83162?source=rss-740e4fc3548a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:41:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@management_83162/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Parsing an Amazon Search Response: Fields Nobody Reads Twice]]></title>
            <link>https://medium.com/@management_83162/parsing-an-amazon-search-response-fields-nobody-reads-twice-5aceecdfd008?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5aceecdfd008</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[seo]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 16:01:03 GMT</pubDate>
            <atom:updated>2026-12-04T16:01:03.384Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A page-one Amazon search result is not published anywhere as structured data; a shopper’s browser renders it from a page Amazon serves fresh each time, and SP-API cannot help either, since it has no keyword-search operation at all and only ever answers questions about ASINs a seller already owns. A product data API turns that same page into typed JSON with one call, but three fields in that JSON are shaped in ways a quick skim misses. This companion piece is about those three fields, not the call itself.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Terminal showing a curl call to an Amazon search API with the sponsored flag highlighted in the JSON response" src="https://cdn-images-1.medium.com/max/1024/1*cTEz2yKnQEfR2BpoaArs7w.png" /><figcaption>Three fields decide whether the parsed result matches what a shopper actually sees. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>The <a href="https://sellermagnet-api.com/blog/amazon-search-results-api?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-search-results-json-fields">full guide on the API blog</a> covers the whole call and its limits; this piece is a field-by-field reading guide for the response it returns.</p><h3>position counts priced results, not pixels on the page</h3><p>position starts at 1 and increments once per returned product, sponsored entries included, but a product Amazon shows with no visible price is skipped by the parser entirely and never claims a number. A result at position: 5 is therefore the fifth priced product the parser found, not necessarily the fifth tile a shopper&#39;s eye passes on the page, and the two can drift apart on a page with several unpriced placements.</p><pre>def rank_among_priced(results: list[dict], asin: str) -&gt; int | None:<br>    &quot;&quot;&quot;position already skips unpriced slots; this just looks the number up<br>    for one ASIN instead of assuming its list index equals its rank.&quot;&quot;&quot;<br>    for item in results:<br>        if item[&quot;asin&quot;] == asin:<br>            return item[&quot;position&quot;]<br>    return None  # not among the priced, returned results at all<br></pre><pre>sample = [{&quot;asin&quot;: &quot;B0CL61F39H&quot;, &quot;position&quot;: 1}, {&quot;asin&quot;: &quot;B0EXAMPLE2&quot;, &quot;position&quot;: 2}]<br>print(rank_among_priced(sample, &quot;B0EXAMPLE2&quot;))</pre><pre>2</pre><h3>The price arrives as text, with the currency symbol stripped but the format kept</h3><p>A listing’s price comes back formatted to two decimals inside a string, so &quot;449.00&quot; has to be parsed deliberately rather than assumed numeric; code that feeds it straight into arithmetic without a cast either throws or, worse, silently concatenates strings where a sum was expected.</p><figure><img alt="Card reading the price field is a formatted string with two decimals, parse it before any math" src="https://cdn-images-1.medium.com/max/1024/1*NSyt3caVRMH296uEnWnJhg.jpeg" /><figcaption>A numeric-looking string is still a string until something parses it. Diagram: SellerMagnet API</figcaption></figure><pre>from decimal import Decimal, InvalidOperation</pre><pre>def parse_listing_price(raw: str) -&gt; Decimal | None:<br>    &quot;&quot;&quot;The search endpoint&#39;s price field is a two-decimal string, e.g. &#39;449.00&#39;;<br>    Decimal avoids the float rounding a naive float() cast would introduce.&quot;&quot;&quot;<br>    try:<br>        return Decimal(raw)<br>    except (InvalidOperation, TypeError):<br>        return None<br></pre><pre>for value in (&quot;449.00&quot;, &quot;19.99&quot;, None, &quot;not-a-price&quot;):<br>    print(value, &quot;-&gt;&quot;, parse_listing_price(value))</pre><pre>449.00 -&gt; 449.00<br>19.99 -&gt; 19.99<br>None -&gt; None<br>not-a-price -&gt; None</pre><h3>sponsored is not a filter you opt into, it is a field you must read</h3><p>Every call already returns sponsored placements mixed into the results list in the order the page actually shows them; nothing asks for ads to be excluded, so code that forgets to check the flag silently counts paid placements as organic rank. Separating the two views only takes one pass over the same list, done after the call rather than instead of it.</p><pre>def split_sponsored(results: list[dict]) -&gt; tuple[list[dict], list[dict]]:<br>    &quot;&quot;&quot;Both views come from one response; nothing re-ranks sponsored items<br>    out of position order within their own group.&quot;&quot;&quot;<br>    sponsored = [r for r in results if r.get(&quot;sponsored&quot;)]<br>    organic = [r for r in results if not r.get(&quot;sponsored&quot;)]<br>    return sponsored, organic<br></pre><pre>all_results = [<br>    {&quot;asin&quot;: &quot;B0ADS0001&quot;, &quot;position&quot;: 1, &quot;sponsored&quot;: True},<br>    {&quot;asin&quot;: &quot;B0CL61F39H&quot;, &quot;position&quot;: 2, &quot;sponsored&quot;: False},<br>    {&quot;asin&quot;: &quot;B0ADS0002&quot;, &quot;position&quot;: 3, &quot;sponsored&quot;: True},<br>]<br>sp, org = split_sponsored(all_results)<br>print([r[&quot;asin&quot;] for r in sp], [r[&quot;asin&quot;] for r in org])</pre><pre>[&#39;B0ADS0001&#39;, &#39;B0ADS0002&#39;] [&#39;B0CL61F39H&#39;]</pre><figure><img alt="Card reading sponsored items sit inline in position order, not appended after the organic list" src="https://cdn-images-1.medium.com/max/1024/1*Arg4yGGL40zxNDHcTSLR9w.jpeg" /><figcaption>Filtering after the call, not asking the call to filter for you. Diagram: SellerMagnet API</figcaption></figure><h3>One ASIN can show up twice if two keywords overlap</h3><p>Running the same product through several related keyword calls is normal, and nothing on the endpoint deduplicates across calls, so an ASIN that ranks for both “wireless earbuds” and “bluetooth earbuds” shows up once per call, each time with its own position for that specific keyword. A report that merges several keyword calls into one list has to key on (asin, keyword), not asin alone, or the later call&#39;s row silently overwrites the earlier one&#39;s rank.</p><pre>def merge_by_keyword(rows: list[dict]) -&gt; dict:<br>    &quot;&quot;&quot;Key on (asin, keyword): the same ASIN can rank differently per<br>    keyword call, and keying on asin alone loses every rank but the last.&quot;&quot;&quot;<br>    merged = {}<br>    for row in rows:<br>        merged[(row[&quot;asin&quot;], row[&quot;keyword&quot;])] = row[&quot;position&quot;]<br>    return merged<br></pre><pre>calls = [<br>    {&quot;asin&quot;: &quot;B0CL61F39H&quot;, &quot;keyword&quot;: &quot;wireless earbuds&quot;, &quot;position&quot;: 4},<br>    {&quot;asin&quot;: &quot;B0CL61F39H&quot;, &quot;keyword&quot;: &quot;bluetooth earbuds&quot;, &quot;position&quot;: 9},<br>]<br>print(merge_by_keyword(calls))</pre><pre>{(&#39;B0CL61F39H&#39;, &#39;wireless earbuds&#39;): 4, (&#39;B0CL61F39H&#39;, &#39;bluetooth earbuds&#39;): 9}</pre><h3>FAQ</h3><h4>Can SP-API return a keyword’s search results page?</h4><p>No. SP-API has no keyword-search operation at all; every one of its catalog calls needs an ASIN or SKU the seller already holds, not a search term, so there is no SP-API path to a page-one result at all.</p><h4>Is the price always present?</h4><p>Only for products Amazon shows with a visible price; a result without one is left out of the response entirely rather than returned with a null price, which is also why position has gaps relative to a product&#39;s raw page index.</p><h4>Is there a second page of results to request?</h4><p>No, there is no page or offset parameter; one call returns up to 50 results from page one only, in the order Amazon’s own page shows them.</p><h4>Are sponsored results numbered separately from organic ones?</h4><p>No, every returned product shares one position sequence regardless of whether it is sponsored, so filtering on the flag is required to get an organic-only ranking.</p><h4>Why use Decimal instead of float for the price string?</h4><p>A formatted two-decimal string like “449.00” parses exactly with Decimal, while float() can introduce the usual binary rounding noise that complicates an exact price comparison later.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-search-results-json-fields"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Get a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-search-results-json-fields"><em>free API key</em></a><em> with 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5aceecdfd008" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Calling an Amazon Product API From Go, Standard Library Only]]></title>
            <link>https://medium.com/@management_83162/calling-an-amazon-product-api-from-go-standard-library-only-638638e7109e?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/638638e7109e</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[amazon]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 09:01:02 GMT</pubDate>
            <atom:updated>2026-12-04T09:01:02.923Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Search “Amazon API Go” and most results wrap Amazon’s own Product Advertising API, which has tightened its qualifying-sales requirement to the point that a new integration rarely clears it, so those libraries fail before a single struct gets filled in. SP-API cannot fill that gap either, since it only returns data for ASINs already tied to the authenticated seller’s own catalog and never a competitor’s price or Buy Box. A product data API skips both gates: a GET request with an API key in a header, decoded into typed Go structs, no associate tag and no request signing. This companion piece builds that client, a price type for the one field that is sometimes a number and sometimes the string N/A, and a worker pool for looking up more than one ASIN.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Code editor with a Go struct whose custom UnmarshalJSON keeps a price field nil instead of panicking on the string N/A" src="https://cdn-images-1.medium.com/max/1024/1*gVk4R-XItuX-vlMZb7VF1Q.png" /><figcaption>A custom type absorbs the one field shape that breaks a naive float64 decode. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>The <a href="https://sellermagnet-api.com/blog/amazon-product-api-go?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-product-api-go">full quickstart on the API blog</a> has the complete client, retry helper and worker pool; this piece focuses on the two traps a first Go client hits: the price field that is not always a number, and an abandoned request that still gets billed.</p><h3>Why Amazon’s own Go libraries are the wrong starting point here</h3><p>PA-API 5 answers most new integrations with an AccessDenied error tied to a qualifying-sales threshold through Amazon’s affiliate program, so a Go wrapper built around it fails at the signing step before it ever reaches a product. A data API built around a plain X-Api-Key header has no such gate: net/http with a 120-second client timeout, encoding/json and the standard library are the whole dependency list, buildable with go build and no go.mod entry beyond the module itself.</p><pre>package main</pre><pre>import (<br>	&quot;net/http&quot;<br>	&quot;time&quot;<br>)</pre><pre>// A shared client with a 120s timeout: the server allows a request that<br>// long, and an abandoned request is still billed, so giving up early saves<br>// nothing on the server side.<br>func newClient() *http.Client {<br>	return &amp;http.Client{Timeout: 120 * time.Second}<br>}</pre><h3>A price field that is sometimes a number and sometimes “N/A”</h3><p>The lookup endpoint’s buyBoxInfo.price comes back as a JSON number when a featured offer exists, and as the literal string &quot;N/A&quot; when nothing is currently featured. Decoding it straight into a float64 panics on the second case, which happens often enough (an out-of-stock or suppressed listing) that it cannot be treated as a rare edge case.</p><figure><img alt="Card reading price decodes as a number or the string N A, never assume float64" src="https://cdn-images-1.medium.com/max/1024/1*BZotIYMRGljsUYuV42G0Pw.jpeg" /><figcaption>One field, two JSON shapes; a custom type keeps the zero value from lying. Diagram: SellerMagnet API</figcaption></figure><pre>package main</pre><pre>import (<br>	&quot;encoding/json&quot;<br>	&quot;strconv&quot;<br>)</pre><pre>// Price absorbs both shapes buyBoxInfo.price can take: a JSON number, or a<br>// nil field when the API sent the literal string &quot;N/A&quot; (no offer featured).<br>type Price struct {<br>	Value *float64 // nil means &quot;N/A&quot;: no featured offer right now<br>}</pre><pre>func (p *Price) UnmarshalJSON(raw []byte) error {<br>	var asNumber float64<br>	if err := json.Unmarshal(raw, &amp;asNumber); err == nil {<br>		p.Value = &amp;asNumber<br>		return nil<br>	}<br>	var asString string<br>	if err := json.Unmarshal(raw, &amp;asString); err != nil {<br>		return err<br>	}<br>	if asString == &quot;N/A&quot; {<br>		p.Value = nil<br>		return nil<br>	}<br>	parsed, err := strconv.ParseFloat(asString, 64)<br>	if err != nil {<br>		return err<br>	}<br>	p.Value = &amp;parsed<br>	return nil<br>}</pre><pre>type BuyBoxInfo struct {<br>	Price      Price  `json:&quot;price&quot;`<br>	SellerID   string `json:&quot;sellerId&quot;`<br>	CurrencyID string `json:&quot;currencyCode&quot;`<br>}</pre><pre>decoded price=444.99 seller=Amazon<br>decoded price=&lt;no featured offer&gt; seller=</pre><h3>Skip the retries that cannot change the outcome</h3><p>A 404 settles the question for that ASIN immediately: not found on that marketplace, and a second attempt a minute later gets charged for the exact same non-result. Backoff and a repeat attempt are worth spending only on 429, 500, 502 and 503, the four statuses that reflect a passing condition rather than a fact about the listing.</p><pre>package main</pre><pre>import (<br>	&quot;math/rand&quot;<br>	&quot;time&quot;<br>)</pre><pre>func retryable(status int) bool {<br>	switch status {<br>	case 429, 500, 502, 503:<br>		return true<br>	default:<br>		return false<br>	}<br>}</pre><pre>func backoff(attempt int) time.Duration {<br>	base := time.Duration(1&lt;&lt;attempt) * time.Second<br>	jitter := time.Duration(rand.Intn(500)) * time.Millisecond<br>	if base &gt; 30*time.Second {<br>		base = 30 * time.Second<br>	}<br>	return base + jitter<br>}</pre><h3>A channel-bounded pool for more than one ASIN at a time</h3><p>There is no batch endpoint, so bulk work is one goroutine per in-flight lookup, held under a buffered channel that caps how many run at once, keeping a list of a few hundred ASINs from opening a few hundred sockets simultaneously.</p><figure><img alt="Card reading a buffered channel caps in-flight goroutines, one result channel collects every outcome" src="https://cdn-images-1.medium.com/max/1024/1*kfzDU5Z5xMpGPXnwEzKUWA.jpeg" /><figcaption>A worker pool bounded by a channel, not an unbounded fan-out of goroutines. Diagram: SellerMagnet API</figcaption></figure><pre>package main</pre><pre>import &quot;sync&quot;</pre><pre>type lookupResult struct {<br>	ASIN  string<br>	Price *float64<br>	Err   error<br>}</pre><pre>func lookupMany(asins []string, workers int, fetch func(string) (*float64, error)) []lookupResult {<br>	jobs := make(chan string, len(asins))<br>	results := make(chan lookupResult, len(asins))<br>	var wg sync.WaitGroup</pre><pre>	for i := 0; i &lt; workers; i++ {<br>		wg.Add(1)<br>		go func() {<br>			defer wg.Done()<br>			for asin := range jobs {<br>				price, err := fetch(asin)<br>				results &lt;- lookupResult{ASIN: asin, Price: price, Err: err}<br>			}<br>		}()<br>	}<br>	for _, a := range asins {<br>		jobs &lt;- a<br>	}<br>	close(jobs)<br>	wg.Wait()<br>	close(results)</pre><pre>	out := make([]lookupResult, 0, len(asins))<br>	for r := range results {<br>		out = append(out, r)<br>	}<br>	return out<br>}</pre><h3>FAQ</h3><h4>Does this need a Go SDK?</h4><p>No. Query parameters and a key header are all a request carries, and Go’s own net/http plus encoding/json decode everything shown in this piece without a third-party import.</p><h4>Why does the price field need a custom type at all?</h4><p>Because Go’s encoding/json fails a direct float64 unmarshal the moment it meets the string &quot;N/A&quot;, and that string appears whenever no offer is currently featured, which is common enough to break a naive client in production.</p><h4>What Go version does this need?</h4><p>Go 1.21 or later for the standard library pieces used here (context, generics-free code throughout); nothing in this client needs a newer language feature.</p><h4>Should every error be retried?</h4><p>No. A 404 is a billed, final answer for that ASIN; only 429, 500, 502 and 503 describe a transient condition worth a second attempt.</p><h4>How many goroutines should the worker pool use?</h4><p>Enough to keep the network busy without opening more connections than the per-key concurrency limit allows; starting around ten and measuring is more reliable than guessing a number upfront.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-product-api-go"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Get a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-product-api-go"><em>free API key</em></a><em> with 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=638638e7109e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cache Amazon API Responses: The TTL Table That Stops Paying Twice]]></title>
            <link>https://medium.com/@management_83162/cache-amazon-api-responses-the-ttl-table-that-stops-paying-twice-98d027ff41c0?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/98d027ff41c0</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 16:01:05 GMT</pubDate>
            <atom:updated>2026-12-03T16:01:05.739Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A dashboard that re-asks the same question six times an hour pays for six identical answers. SP-API cannot help here: it has no change-notification feed for buyable catalog data like price or rank, so a tool built only on SP-API still has to poll, and polling without a cache is the expensive way to do it. This companion piece builds the one piece of infrastructure that turns a repeat question into a free one: a TTL per endpoint, chosen for how fast that endpoint’s data actually changes.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Terminal showing a Python TTL cache that skips a billed call for a key fetched seconds earlier" src="https://cdn-images-1.medium.com/max/1024/1*S7PIm8kB-yiPg-fdBkiHVQ.png" /><figcaption>A cache hit costs nothing; an identical repeat without one costs a credit every time. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>The <a href="https://sellermagnet-api.com/blog/amazon-api-response-caching?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-api-response-caching">full guide on the API blog</a> walks through the SQLite cache end to end; this piece covers the one design call that decides whether the cache actually saves money: picking a TTL that matches the endpoint, not a single number for every call.</p><h3>Why a one-size TTL loses money either way</h3><p>A single TTL applied to every endpoint is wrong in both directions at once. Set it short enough for live offers (five to fifteen minutes, since the Buy Box can flip at any time) and a product’s static title and bullet points, which barely change for months, get re-fetched and re-billed on the same short clock. Set it long enough for the slow-moving fields instead, and a repricing tool reads a stale Buy Box price for hours. The fix is one TTL per endpoint, not one TTL for the account.</p><figure><img alt="Card reading a 15-minute offers TTL next to a 24-hour lookup TTL, same account, two clocks" src="https://cdn-images-1.medium.com/max/1024/1*4yWLu75O760WBegT4FqScw.jpeg" /><figcaption>One cache, two very different expiry clocks, picked by how fast each field actually moves. Diagram: SellerMagnet API</figcaption></figure><pre>ENDPOINT_TTL_SECONDS = {<br>    &quot;amazon-product-offers&quot;: 10 * 60,              # live Buy Box: can change at any moment<br>    &quot;amazon-product-lookup&quot;: 12 * 60 * 60,         # title/bullets/images move rarely<br>    &quot;amazon-search&quot;: 3 * 60 * 60,                  # page-one positions shift through the day<br>    &quot;amazon-bestsellers&quot;: 60 * 60,                 # Amazon refreshes this list hourly<br>    &quot;amazon-product-statistics&quot;: 24 * 60 * 60,     # yesterday&#39;s full history is still useful today<br>    &quot;amazon-asin-converter&quot;: 30 * 24 * 60 * 60,    # a barcode mapping does not change<br>}<br>DEFAULT_TTL_SECONDS = 60 * 60</pre><pre>def ttl_for(endpoint: str) -&gt; int:<br>    &quot;&quot;&quot;Pick the right clock for this endpoint instead of one TTL for the whole account.&quot;&quot;&quot;<br>    return ENDPOINT_TTL_SECONDS.get(endpoint, DEFAULT_TTL_SECONDS)<br></pre><pre>for ep in (&quot;amazon-product-offers&quot;, &quot;amazon-product-lookup&quot;, &quot;amazon-asin-converter&quot;):<br>    print(ep, ttl_for(ep), &quot;seconds&quot;)</pre><pre>amazon-product-offers 600 seconds<br>amazon-product-lookup 43200 seconds<br>amazon-asin-converter 2592000 seconds</pre><h3>The key has to include every parameter that changes the answer</h3><p>A cache key built from only the endpoint name and the ASIN silently serves the wrong marketplace’s answer the second time someone asks about the same product in a different country, because marketplaceId changes the response just as much as the ASIN does. The same mistake happens with count on a search call: two callers asking for 10 results and 50 results are not asking the same question, even though the keyword matches.</p><pre>import hashlib<br>import json<br></pre><pre>def fingerprint_request(endpoint: str, query: dict) -&gt; str:<br>    &quot;&quot;&quot;Sort params so the same logical request always hashes the same way,<br>    and include every parameter the response actually depends on.&quot;&quot;&quot;<br>    normalized = json.dumps(dict(sorted(query.items())), separators=(&quot;,&quot;, &quot;:&quot;))<br>    return hashlib.sha256(f&quot;{endpoint}:{normalized}&quot;.encode()).hexdigest()<br></pre><pre>a = fingerprint_request(&quot;amazon-product-offers&quot;, {&quot;asin&quot;: &quot;B0CL61F39H&quot;, &quot;marketplaceId&quot;: &quot;ATVPDKIKX0DER&quot;})<br>b = fingerprint_request(&quot;amazon-product-offers&quot;, {&quot;asin&quot;: &quot;B0CL61F39H&quot;, &quot;marketplaceId&quot;: &quot;A1PA6795UKMFR9&quot;})<br>print(a == b)</pre><pre>False</pre><h3>A billed 404 belongs in the cache too</h3><p>A 404 on a delisted or mistyped ASIN is billed with no refund, so asking again a minute later pays twice for the same non-answer. Caching a 404 for about a day stops that waste, while a 429, 401, 403 or 5xx must never be cached, because a retry a moment later can get a different result for the exact same request: those describe the current state of your account or the server, not the product.</p><pre>NEVER_CACHE = {429, 401, 403, 500, 502, 503}<br>CACHE_404_SECONDS = 24 * 60 * 60<br></pre><pre>def should_cache(status: int) -&gt; int | None:<br>    &quot;&quot;&quot;Return the TTL to cache this status under, or None to never store it.&quot;&quot;&quot;<br>    if status == 200:<br>        return None  # caller uses the endpoint&#39;s own TTL<br>    if status == 404:<br>        return CACHE_404_SECONDS<br>    if status in NEVER_CACHE:<br>        return None<br>    return None<br></pre><pre>print(should_cache(404), should_cache(429), should_cache(200))</pre><pre>86400 None None</pre><h3>FAQ</h3><h4>Does SP-API solve this for me?</h4><p>No. SP-API has no change-notification feed for a competitor’s catalog data, and it cannot be queried for Buy Box or price on a product you do not sell, so a tool that watches other sellers’ listings still has to poll an API and still needs this cache.</p><h4>What happens if I cache a 500 by mistake?</h4><p>A 500 is sometimes refunded automatically; caching it would turn a one-off hiccup into a stale wrong answer served to every caller until the TTL expires, so it stays off the cache list entirely.</p><h4>Does a cache change what the API charges for a cache miss?</h4><p>No, a miss is billed exactly like an uncached call; the saving only comes from calls the cache answers without reaching the network at all.</p><h4>How big does the TTL table need to be?</h4><p>One entry per endpoint actually in use is enough; the default row covers anything not listed, so a new endpoint never goes uncached by accident.</p><h4>Should offers ever be cached longer than the polling interval?</h4><p>No, the offers TTL should never exceed how often a repricing loop already polls, or the cache would hide a price change that polling was meant to catch.</p><figure><img alt="Card reading never cache 429, 401, 403 or 5xx, only 200 and a billed 404" src="https://cdn-images-1.medium.com/max/1024/1*2TytZKj4oHs3VGj-5a6K5Q.jpeg" /><figcaption>A status code describes the moment or the account, not always the product; cache only what describes the product. Diagram: SellerMagnet API</figcaption></figure><p>For the concurrency side of the same problem, many workers racing for the same key at once, a short shared lock before the first one calls the API is covered in the <a href="https://sellermagnet-api.com/blog/amazon-product-api-redis-cache">stampede-lock guide</a>; the full cache implementation shown above is in this piece’s <a href="https://sellermagnet-api.com/blog/amazon-api-response-caching?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-api-response-caching">companion guide on the API blog</a>.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-api-response-caching"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Get a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-api-response-caching"><em>free API key</em></a><em> with 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98d027ff41c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Niche Market Size: Measure It From the Bestseller List]]></title>
            <link>https://medium.com/@management_83162/amazon-niche-market-size-measure-it-from-the-bestseller-list-db7b586256e6?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/db7b586256e6</guid>
            <category><![CDATA[market-research]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 09:01:02 GMT</pubDate>
            <atom:updated>2026-12-03T09:01:02.501Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Amazon niche market size is answerable without a market report: the category’s own top 50 bestsellers, run through a monthly sales estimate for each listing, add up to a revenue figure and two concentration numbers. SP-API has no field anywhere that reports a category’s total revenue, so summing the top 50 is the closest real substitute.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Terminal window showing a Python script summing bestseller sales estimates into a category revenue figure" src="https://cdn-images-1.medium.com/max/1024/1*bcj_0gHnxfmiAaUu77vh_w.png" /><figcaption>Fifty products in, one revenue number and two concentration scores out. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>A single /amazon-bestsellers call returns a category&#39;s top 50 with rank and price; adding one /amazon-product-search-estimated-sells call for each listing turns that list into estimated monthly units, and multiplying units by price gives a monthly revenue figure for the whole list. The <a href="https://sellermagnet-api.com/blog/amazon-niche-market-size-api?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-niche-market-size-api">full walkthrough on the API blog</a> runs the complete script against a real category; this companion piece stays on what the number means and how to read its concentration.</p><figure><img alt="Card reading size alone does not tell you whether a niche is worth entering" src="https://cdn-images-1.medium.com/max/1024/1*Y3IrTrozNrLy8OVZuEfodQ.jpeg" /><figcaption>Revenue and concentration answer different questions; a niche needs both. Diagram: SellerMagnet API</figcaption></figure><h3>Why size alone is not enough</h3><p>A category can look attractive purely on revenue and still be a bad bet if three listings hold most of that money, leaving almost nothing for a new entrant. Reading the top 50 twice, once for the total and once for how that total splits across listings, answers both halves of the question from the same pull of data.</p><pre>from concurrent.futures import ThreadPoolExecutor, as_completed</pre><pre>from sellermagnet import ApiError, get, new_session</pre><pre>HAS_ESTIMATES = {&quot;ATVPDKIKX0DER&quot;, &quot;A2EUQ1WTGCTBG2&quot;, &quot;A1AM78C64UM0Y8&quot;, &quot;A2Q3Y263D00KWC&quot;, &quot;A1F83G8C2ARO7P&quot;,<br>                  &quot;A1PA6795UKMFR9&quot;, &quot;A13V1IB3VIYZZH&quot;, &quot;APJ6JRA9NG5V4&quot;, &quot;A1RKKUPIHCS9HS&quot;, &quot;A1VC38T7YXB528&quot;,<br>                  &quot;A21TJRUUN4KGV&quot;}<br></pre><pre>def _monthly_units(worker_session, asin, marketplace):<br>    try:<br>        payload = worker_session and get(worker_session, &quot;amazon-product-search-estimated-sells&quot;,<br>                                          asin=asin, marketplaceId=marketplace)<br>    except ApiError:<br>        return asin, None<br>    return asin, (payload or {}).get(&quot;estimated_monthly_sales&quot;)<br></pre><pre>def _line_item(asin, bestseller_row, units_lookup):<br>    units = units_lookup.get(asin)<br>    listed_price = (bestseller_row.get(&quot;price&quot;) or {}).get(&quot;price&quot;)<br>    both_numeric = isinstance(units, (int, float)) and isinstance(listed_price, (int, float))<br>    if not both_numeric:<br>        return None<br>    return {&quot;asin&quot;: asin, &quot;rank&quot;: bestseller_row.get(&quot;rank&quot;), &quot;units&quot;: units, &quot;revenue&quot;: round(units * listed_price, 2)}<br></pre><pre>def _concentration(revenue_values):<br>    pool = sum(revenue_values)<br>    if not pool:<br>        return 0.0, 0<br>    ordered_shares = sorted(value * 100 / pool for value in revenue_values)<br>    ordered_shares.reverse()<br>    leader_slice = round(sum(ordered_shares[0:3]), 1)<br>    squared_total = 0<br>    for share in ordered_shares:<br>        squared_total += share * share<br>    return leader_slice, round(squared_total)<br></pre><pre>def size_up(category_id, marketplace):<br>    if marketplace not in HAS_ESTIMATES:<br>        raise ValueError(&quot;no sales-estimate coverage on this marketplace&quot;)<br>    session = new_session()<br>    top = get(session, &quot;amazon-bestsellers&quot;, category_id=category_id, marketplaceId=marketplace, count=50)[&quot;bestsellers&quot;]<br>    rows_by_asin = {row[&quot;asin&quot;]: row for row in top if row.get(&quot;asin&quot;)}</pre><pre>    units_lookup = {}<br>    with ThreadPoolExecutor(max_workers=5) as pool:<br>        jobs = {pool.submit(_monthly_units, new_session(), asin, marketplace): asin for asin in rows_by_asin}<br>        for job in as_completed(jobs):<br>            asin, units = job.result()<br>            units_lookup[asin] = units</pre><pre>    counted = [_line_item(asin, row, units_lookup) for asin, row in rows_by_asin.items()]<br>    counted = [line for line in counted if line]<br>    top3_share, hhi_value = _concentration([line[&quot;revenue&quot;] for line in counted])<br>    return {<br>        &quot;products_counted&quot;: len(counted), &quot;products_listed&quot;: len(rows_by_asin),<br>        &quot;monthly_units&quot;: sum(line[&quot;units&quot;] for line in counted),<br>        &quot;monthly_revenue&quot;: round(sum(line[&quot;revenue&quot;] for line in counted), 2),<br>        &quot;top3_share_pct&quot;: top3_share, &quot;hhi&quot;: hhi_value,<br>    }<br></pre><pre>if __name__ == &quot;__main__&quot;:<br>    print(size_up(&quot;281407&quot;, &quot;ATVPDKIKX0DER&quot;))</pre><pre>{&#39;products_counted&#39;: 45, &#39;products_listed&#39;: 50, &#39;monthly_units&#39;: 83155,<br> &#39;monthly_revenue&#39;: 2180887.0, &#39;top3_share_pct&#39;: 20.9, &#39;hhi&#39;: 324}</pre><h3>What the two concentration numbers mean</h3><p>The top-3 figure is just the slice of the list’s total revenue held by its three biggest listings; the HHI squares every listing’s share before adding them up, which punishes one dominant seller far harder than it punishes several medium-sized ones. Both come free from the same 50 estimates already paid for. A low HHI spread evenly across the list leaves room anywhere from rank 10 through 50; a top-3 figure above half the total means a newcomer is competing directly against three entrenched listings for the bulk of the money in that category.</p><figure><img alt="Card reading HHI squares each share so one dominant listing stands out" src="https://cdn-images-1.medium.com/max/1024/1*aRCENJ9ZpRNeijSwtdNA0w.jpeg" /><figcaption>A spread-out top 50 scores low; three listings owning most of it scores high. Diagram: SellerMagnet API</figcaption></figure><p>Treat the whole figure as a range, not an audited total. Each unit estimate carries its own margin of error, the price used is whatever the bestseller list shows on the day of the check rather than a monthly average, and everything below rank 50 is left out entirely, which matters most in a broad category with an active long tail. The number earns its keep comparing two niches measured the same way on the same day, or tracking one category’s own figure as it moves month to month.</p><h3>FAQ</h3><h4>What is the quickest way to size an Amazon niche?</h4><p>Pull the category’s top 50 bestsellers, run a sales estimate against each listing, multiply units by price and sum the results into one monthly revenue figure.</p><h4>Why is the real category always bigger than this number?</h4><p>The sum only reaches as far as rank 50. A broad category keeps selling well past that cutoff, and none of that volume shows up in the total at all.</p><h4>What counts as a concentrated niche?</h4><p>Amazon sets no official threshold here. Antitrust regulators in the US flag a market as highly concentrated once its HHI passes roughly 1800; borrow that number as a rough yardstick rather than a rule built for Amazon specifically.</p><h4>Which marketplaces support the underlying sales estimate?</h4><p>History-backed sales estimates exist on eleven storefronts: the US, UK, Germany, France, Italy, Spain, Japan and a handful more. Request one anywhere else and the call answers with a free 400 instead.</p><h4>Roughly what does checking one category cost?</h4><p>Plan on about 51 credits per run: a single call for the bestseller page, then one more for every listing it contains. A listing whose estimate call errors out just gets skipped, no second charge.</p><p>Bottom line: running fifty estimates against one bestseller page gives a usable revenue range alongside two concentration scores, enough signal to choose between niches before committing stock or time to either one. For how the underlying sales estimate is built, see the <a href="https://sellermagnet-api.com/blog/amazon-sales-estimator-api?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-niche-market-size-api">sales estimator guide</a>.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-niche-market-size-api"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Pull bestseller and sales-estimate data with a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-niche-market-size-api"><em>free API key</em></a><em> and 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db7b586256e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Turning a Barcode Into an Amazon ASIN, and Back, via API]]></title>
            <link>https://medium.com/@management_83162/turning-a-barcode-into-an-amazon-asin-and-back-via-api-47df7048353e?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/47df7048353e</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 16:01:06 GMT</pubDate>
            <atom:updated>2026-12-02T16:01:06.961Z</atom:updated>
            <content:encoded><![CDATA[<p><em>SP-API only maps identifiers for your own catalog. Here is how to convert any ASIN to its barcodes, or any barcode back to an ASIN, with one API call.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Terminal showing a Python script converting an ASIN to its barcodes and back as JSON" src="https://cdn-images-1.medium.com/max/1024/1*eSIRy7UlnRhNPY4fSL18JQ.png" /><figcaption>Any ASIN, not just one you already own in Seller Central. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>Converting an arbitrary ASIN to its EAN, UPC or ISBN, or a barcode to its ASIN, for a listing you do not own, is a question Amazon’s own SP-API cannot answer. The Catalog Items identifier lookups work against your own seller account’s catalog relationships; there is no SP-API operation that takes someone else’s ASIN or barcode and returns the match for free, public lookup. This is a companion to the <a href="https://sellermagnet-api.com/blog/upc-ean-to-asin-api?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=asin-to-ean-upc-isbn-converter-api">full field reference on the API blog</a>, which also covers converting the other way, barcode to ASIN.</p><h3>The SellerMagnet API converts in both directions</h3><p>A single call to amazon-asin-converter with conversion_direction set to asin-to-ean or ean-to-asin returns the ASIN, every barcode Amazon has on file for that product in eanList, and its title, for one credit. One quirk to remember: the parameter is called asin in both directions, so when you are converting a barcode into an ASIN, that barcode itself is what goes in the asin field.</p><pre>import requests</pre><pre>API_KEY = &quot;YOUR_API_KEY&quot;<br>MARKETPLACE = &quot;ATVPDKIKX0DER&quot;  # amazon.com</pre><pre># Barcode (EAN/UPC/ISBN-13) to ASIN<br>resp = requests.get(<br>    &quot;https://sellermagnet-api.com/api/amazon-asin-converter&quot;,<br>    params={&quot;asin&quot;: &quot;9780306406157&quot;, &quot;marketplaceId&quot;: MARKETPLACE, &quot;conversion_direction&quot;: &quot;ean-to-asin&quot;},<br>    headers={&quot;X-Api-Key&quot;: API_KEY}, timeout=120,<br>)<br>data = resp.json()[&quot;data&quot;]<br>print(data[&quot;asin&quot;], data.get(&quot;eanList&quot;))</pre><pre># ASIN to its barcodes<br>resp2 = requests.get(<br>    &quot;https://sellermagnet-api.com/api/amazon-asin-converter&quot;,<br>    params={&quot;asin&quot;: &quot;B0CL61F39H&quot;, &quot;marketplaceId&quot;: MARKETPLACE, &quot;conversion_direction&quot;: &quot;asin-to-ean&quot;},<br>    headers={&quot;X-Api-Key&quot;: API_KEY}, timeout=120,<br>)<br>print(resp2.json()[&quot;data&quot;].get(&quot;eanList&quot;))</pre><pre>curl -sG &quot;https://sellermagnet-api.com/api/amazon-asin-converter&quot; \<br>  --data-urlencode &quot;asin=9780306406157&quot; \<br>  --data-urlencode &quot;marketplaceId=ATVPDKIKX0DER&quot; \<br>  --data-urlencode &quot;conversion_direction=ean-to-asin&quot; \<br>  -H &quot;X-Api-Key: ***&quot;</pre><figure><img alt="Card reading SP-API only maps identifiers inside your own catalog, the converter works for any ASIN or barcode" src="https://cdn-images-1.medium.com/max/1024/1*br4hRzfaYTBhnHE8hSG1ng.jpeg" /><figcaption>No public mapping operation exists in SP-API. Diagram: SellerMagnet API</figcaption></figure><h3>UPC, EAN, ISBN and JAN all go through the same field</h3><p>Underneath, a UPC and an EAN are really one numbering system wearing two lengths: pad a 12-digit UPC-A with a leading zero and it becomes a 13-digit EAN, which is the exact form stored in eanList. Book ISBNs join the same family once they carry the 978 or 979 prefix, so a valid ISBN-13 converts exactly like any other EAN; an older 10-digit ISBN has to become ISBN-13 first, because its digit count alone makes it unreadable as an EAN. Japan&#39;s JAN codes need nothing special either, being EAN-13 numbers themselves under a 45 or 49 prefix.</p><pre>def isbn10_to_isbn13(isbn10: str) -&gt; str:<br>    body = &quot;978&quot; + isbn10[:-1]<br>    checksum = 0<br>    for index, char in enumerate(body):<br>        weight = 1 if index % 2 == 0 else 3<br>        checksum += weight * int(char)<br>    return body + str((10 - checksum % 10) % 10)</pre><figure><img alt="Card reading UPC, EAN, ISBN-13 and JAN all use the same 13-digit field, ISBN-10 must convert to ISBN-13 first" src="https://cdn-images-1.medium.com/max/1024/1*H1vpYEpzhKUU575AlICAOg.jpeg" /><figcaption>One field, four identifier families. Diagram: SellerMagnet API</figcaption></figure><h3>Check locally before you spend a credit</h3><p>A malformed barcode (bad check digit or wrong length) and an unknown barcode are both billed the same as a successful lookup, so a two-line GS1 check-digit test catches most typos for free before the call. Only the first matching product is returned, so always cross-check that the code you sent shows up somewhere inside the response’s eanList: a book re-released across several formats can sit under more than one ASIN, and this endpoint will not enumerate every one of them for you.</p><h3>What to build this week</h3><ol><li>Normalise and check-digit a barcode locally before calling the converter.</li><li>Convert ISBN-10 to ISBN-13 yourself; do not send a 10-digit code expecting a match.</li><li>Treat the first matching product as unverified until you spot your own code inside its eanList.</li><li>Cache ASIN-to-barcode results: the mapping does not change, so pay for each product once.</li></ol><p>The full guide on the API blog covers the 11 supported marketplaces and the billed-versus-free error split in depth, with a <a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=asin-to-ean-upc-isbn-converter-api">free API key</a> and 150 free credits to start.</p><h3>FAQ</h3><h4>Can SP-API convert an arbitrary ASIN to its barcode?</h4><p>No. SP-API’s identifier lookups work against your own catalog relationships; there is no public operation that converts someone else’s ASIN or barcode for free.</p><h4>Is there a separate ISBN parameter?</h4><p>No. The asin parameter carries the barcode in ean-to-asin mode regardless of whether it is an EAN, UPC or ISBN-13.</p><h4>Can I send an ISBN-10 directly?</h4><p>No, convert it to ISBN-13 first; a 10-digit code is not a valid EAN-13 barcode and will not match.</p><h4>Is a failed conversion refunded?</h4><p>No, an unknown or malformed barcode is billed the same as a successful lookup; only your own local check-digit test is free.</p><h4>Does this work for every Amazon marketplace?</h4><p>Only the marketplaces the converter supports; any other marketplace ID is a free 400, not a silent fallback to amazon.com.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=asin-to-ean-upc-isbn-converter-api"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Convert ASINs and barcodes with a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=asin-to-ean-upc-isbn-converter-api"><em>free API key</em></a><em> and 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47df7048353e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can You Search Amazon by ZIP Code Through an API Call?]]></title>
            <link>https://medium.com/@management_83162/can-you-search-amazon-by-zip-code-through-an-api-call-8c04935278f7?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c04935278f7</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[geolocation]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 09:01:05 GMT</pubDate>
            <atom:updated>2026-12-02T09:01:05.526Z</atom:updated>
            <content:encoded><![CDATA[<p><em>SP-API has no keyword search, so a location-targeted one is impossible too. One API call still asks Amazon for an address before ranking page one.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Terminal showing a Python script sending a ZIP code to the Amazon search API before ranking page one" src="https://cdn-images-1.medium.com/max/1024/1*E1fjM6VlXdMxFw0Gpoh-GA.png" /><figcaption>A delivery address on one search call, best effort. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>Yes, with the right endpoint, though not through Amazon’s own developer API. SP-API has no keyword-search operation in the first place, so there is no SP-API parameter that could target a ZIP code either; every SP-API call still takes an ASIN, SKU or seller ID you already hold, never a search term tied to an address. This is a companion to the <a href="https://sellermagnet-api.com/blog/amazon-search-geo-location-api?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-search-geo-location-results-api">full field reference on the API blog</a>, which measures how often a ZIP code actually changes the page.</p><h3>Why a delivery address matters for search</h3><p>Amazon decides part of what a shopper sees by the delivery address attached to their session, and Amazon’s own US help pages say shoppers “may see different Featured Offers when shopping from different shipping locations.” A seller checking their own ranking, or scouting a competitor’s page one, gets a more realistic read by asking for the same address real shoppers in that area would have, instead of whatever address a fresh session happens to start with.</p><h3>Sending a ZIP code on one search call</h3><p>The SellerMagnet amazon-search endpoint takes an optional geo_location parameter alongside the keyword. Pass a ZIP code or postcode as text and the call sets it as the delivery address before loading page one for your keyword.</p><pre>import requests</pre><pre>API_KEY = &quot;YOUR_API_KEY&quot;<br>QUERY = &quot;usb c cable&quot;<br>MARKETPLACE = &quot;ATVPDKIKX0DER&quot;  # amazon.com<br>ZIP_CODE = &quot;99501&quot;</pre><pre>resp = requests.get(<br>    &quot;https://sellermagnet-api.com/api/amazon-search&quot;,<br>    params={&quot;q&quot;: QUERY, &quot;marketplaceId&quot;: MARKETPLACE, &quot;geo_location&quot;: ZIP_CODE, &quot;count&quot;: 50},<br>    headers={&quot;X-Api-Key&quot;: API_KEY},<br>    timeout=120,<br>)<br>results = resp.json()[&quot;data&quot;][&quot;searchResults&quot;]<br>for row in results[:5]:<br>    print(row[&quot;position&quot;], row[&quot;asin&quot;], row[&quot;productTitle&quot;])</pre><pre>curl -sG &quot;https://sellermagnet-api.com/api/amazon-search&quot; \<br>  --data-urlencode &quot;q=usb c cable&quot; \<br>  --data-urlencode &quot;marketplaceId=ATVPDKIKX0DER&quot; \<br>  --data-urlencode &quot;geo_location=99501&quot; \<br>  --data-urlencode &quot;count=50&quot; \<br>  -H &quot;X-Api-Key: ***&quot;</pre><figure><img alt="Card reading geo_location is optional, it always goes to Amazon as a postcode, no country or city option exists" src="https://cdn-images-1.medium.com/max/1024/1*v3n1OyYS9X4bknxa56SGqg.jpeg" /><figcaption>One extra parameter on the same search call, one credit either way. Diagram: SellerMagnet API</figcaption></figure><p>A postal code is the only format Amazon accepts here; nothing in the call takes a country name, a city, or a free-text address. Leave geo_location out and the API asks Amazon for the marketplace’s own default postcode instead, 20001 on amazon.com, pulled from the same amazon-get-marketplaces call that lists every marketplace’s currency and ID. Nothing validates the value you send against a real postcode list, so a typo rides straight through to Amazon unchanged, which is exactly why checking its format client-side before you pay saves a credit on an obvious mistake.</p><h3>What happens when Amazon will not take it</h3><p>Setting a ZIP code is best effort, and Amazon can refuse it, lose it mid-request, or quietly swap in a different one. In every one of those cases the call still answers a normal, billed 200 with a full results page, just not from the address you asked for, and nothing in the response names the location that was actually used. An empty geo_location= is its own case again: it skips the address step completely rather than falling back to the marketplace default, so results come from whatever location the session already had.</p><figure><img alt="Card reading a refused, blocked or swapped postcode still returns 200, the response never names the location" src="https://cdn-images-1.medium.com/max/1024/1*vz9lZsfayn_-_AvyyccsxA.jpeg" /><figcaption>Four different outcomes, one identical-looking response. Diagram: SellerMagnet API</figcaption></figure><h3>How to tell if a ZIP code actually changed anything</h3><p>A single search at one address proves nothing, because page one already shifts a little between two loads of the exact same location. Build a small control instead: query the target ZIP code twice and the default location twice, interleaved, skip every sponsored row, and keep only products that stick to one side, present on both of that side’s loads and absent from both of the other side’s loads. Treat the ZIP code as truly different from the default only once its stuck-to-one-side count clears how much the default location’s own pair of loads already disagree with each other, since that gap is your noise floor.</p><p>This builds on the keyword ranking itself: see <a href="https://medium.com/p/80fe3a379c0e">how to pull a ranked Amazon search results page by keyword</a> first if you have not wired up amazon-search yet.</p><h3>What to build this week</h3><ol><li>Send geo_location only as text with the same digit pattern as that marketplace&#39;s default postcode, to catch an obvious typo before paying for it.</li><li>Never rely on the response to confirm which address was used; it does not carry that field.</li><li>Run every ZIP code at least twice against a same-count control at the default location before calling a difference real.</li><li>Treat an empty geo_location= as its own case, not a shortcut for leaving the parameter out.</li></ol><p>The full guide covers every marketplace’s default postcode and a tested checker script, with a <a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-search-geo-location-results-api">free API key</a> and 150 free credits to start.</p><h3>FAQ</h3><h4>Does SP-API let you search Amazon by ZIP code?</h4><p>No. SP-API has no keyword-search operation at all, so there is nothing to attach a location to; every SP-API call still takes an identifier you already hold.</p><h4>Does sending a ZIP code guarantee results from that address?</h4><p>No, it is best effort. Amazon can refuse, lose or swap the postcode, and the search still returns a normal billed 200 from another location with no field saying so.</p><h4>What does the API do when geo_location is left out?</h4><p>It asks Amazon for that marketplace’s own default postcode instead, the same value amazon-get-marketplaces lists for that marketplace.</p><h4>Does a blank geo_location behave the same way as not sending it?</h4><p>No. Not sending it triggers the marketplace default postcode, while sending it blank bypasses the address step altogether.</p><h4>How many calls does it take to prove a ZIP code changes the page?</h4><p>At least two runs at that ZIP code and two at the default location, since a single load at either address can differ from another load of the same address.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-search-geo-location-results-api"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Search any keyword and address with a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-search-geo-location-results-api"><em>free API key</em></a><em> and 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c04935278f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon MAP Monitoring API: A Companion on the Offer-Listing Check]]></title>
            <link>https://medium.com/@management_83162/amazon-map-monitoring-api-a-companion-on-the-offer-listing-check-80c663584ab3?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/80c663584ab3</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[brand-protection]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[pricing]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Tue, 01 Dec 2026 16:01:07 GMT</pubDate>
            <atom:updated>2026-12-01T16:01:07.433Z</atom:updated>
            <content:encoded><![CDATA[<p><em>SP-API does not expose a minimum advertised price anywhere, because MAP is a rule the brand itself sets, not an Amazon policy. The offer listing still carries everything needed to catch a violation of that rule: item price, seller identity and fulfilment type, read on a schedule.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Terminal window showing a Python script comparing Amazon offer prices against a minimum advertised price" src="https://cdn-images-1.medium.com/max/1024/1*Nr2hQ08T-VTO7BSqfeAc5Q.png" /><figcaption>Checking New offers against a MAP list and an authorized seller allowlist. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>Enforcing a minimum advertised price on Amazon starts with knowing which seller broke it, and that answer never shows up as a flag anywhere in Amazon’s own data. SP-API does not know what a brand’s MAP is, so there is nothing to query for it directly. What SP-API does return is the offer listing itself: one /amazon-product-offers call for an ASIN lists every current New offer with its seller ID, item price and fulfilment type, and that is enough to run the comparison outside the API. The <a href="https://sellermagnet-api.com/blog/amazon-map-monitoring-api?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-map-monitoring-api">full walkthrough on the API blog</a> builds the complete watch script with a CSV log; this companion piece stays on the one comparison that actually decides a violation and why two different checks belong in the same pass.</p><figure><img alt="Card reading one offers call per ASIN is the only MAP signal that exists" src="https://cdn-images-1.medium.com/max/1024/1*H-amXGABbLAdWxpH87sagw.jpeg" /><figcaption>No MAP field exists anywhere in SP-API; the offer listing is the substitute. Diagram: SellerMagnet API</figcaption></figure><h3>Why MAP cannot be read directly from the API</h3><p>A minimum advertised price only means something against a number the brand decided internally, and Amazon’s systems have no concept of that number. Two brands selling identical products could set wildly different MAP values, so there is no universal field Amazon could expose even if it wanted to. The workable substitute is to store the brand’s own MAP list separately and compare it against the price Amazon actually shows for each offer, which is the only part of this that an API call can supply.</p><pre>from sellermagnet import new_session, get</pre><pre>MARKET = &quot;ATVPDKIKX0DER&quot;<br>MAP_PRICE = {&quot;B0CL61F39H&quot;: 449.99}<br>AUTHORIZED = {&quot;Amazon&quot;, &quot;A1EXAMPLESELLER&quot;}<br></pre><pre>def flag_violations(asin, map_price):<br>    offers = get(new_session(), &quot;amazon-product-offers&quot;, asin=asin, marketplaceId=MARKET).get(&quot;offers&quot;) or []<br>    hits = []<br>    for offer in offers:<br>        seller = offer.get(&quot;sellerId&quot;)<br>        price = offer.get(&quot;priceWithoutShipping&quot;)<br>        valid_price = isinstance(price, (int, float))<br>        new_condition = offer.get(&quot;condition&quot;) == &quot;New&quot;<br>        if not seller or not valid_price or not new_condition:<br>            continue<br>        under_floor = price &lt; map_price - 0.005<br>        off_list = seller not in AUTHORIZED<br>        if under_floor or off_list:<br>            label = &quot;under MAP&quot; if under_floor else &quot;unauthorized seller&quot;<br>            hits.append((seller, price, label))<br>    return hits<br></pre><pre>print(flag_violations(&quot;B0CL61F39H&quot;, MAP_PRICE[&quot;B0CL61F39H&quot;]))</pre><pre>[(&#39;AXCHEAP&#39;, 429.0, &#39;under MAP&#39;), (&#39;AZGREY&#39;, 449.99, &#39;unauthorized seller&#39;)]</pre><p>A single ASIN call returns this list in one credit, so checking a watch list of a few hundred ASINs once or twice a day stays cheap, and the comparison logic above runs entirely on the brand’s side with numbers the API already handed over.</p><h3>Two different problems hide in the same offer row</h3><p>A seller priced below MAP and a seller who was never authorized to carry the listing in the first place are two separate failures, and a single offer row can trigger either one or both at once. Which price field matters depends on the policy: priceWithoutShipping fits a MAP rule that ignores delivery cost, while totalPrice fits one that counts it. Running only the price comparison would also let through a stray reseller sitting exactly at the MAP number, since that seller never breaks the price rule even though it should not be selling the product at all. Checking seller identity against an allowlist, separately from price, is what catches that case.</p><figure><img alt="Card reading price and seller identity need two separate checks, not one" src="https://cdn-images-1.medium.com/max/1024/1*PMNydZ5g10pl1Ii2Vnz6kA.jpeg" /><figcaption>A seller at MAP but off the allowlist still fails the check. Diagram: SellerMagnet API</figcaption></figure><h3>Where the seller’s identity leads next</h3><p>The seller ID on a flagged offer opens a direct path to that seller’s public storefront on Amazon, and the same ID stays attached to that seller across every Amazon store it operates in. Looking up the seller’s display name and recent feedback score needs a separate call to the seller feedback endpoint, and whether that seller has been undercutting the floor for days or started yesterday shows up in its own recorded price history on marketplaces with statistics coverage, which is the same signal a repricer-detection check reads.</p><h3>What this watch cannot see</h3><p>Coupons and checkout-level discounts are invisible to this whole approach, because the offer data only carries the listed item price, never the price a buyer actually pays after a promotion is applied. The offers call also returns only the first page of a listing’s offers, so on a crowded ASIN with many sellers the violation list is a lower bound rather than a complete one. Anything that happens between two scheduled runs, such as a seller dropping the price for an hour and then raising it again, is never observed at all; tightening the check frequency on the ASINs that matter most is the only fix for that gap.</p><h3>How often to run it, and what it costs</h3><p>Once or twice a day for a watch list is a reasonable starting cadence for most catalogues, and the cost is one credit for each ASIN on each run: a 100-ASIN list checked twice daily uses about 6,000 credits across a 30-day month. Checking the best sellers more frequently while leaving the long tail on a single daily pass is a common way to keep the credit spend proportional to what actually matters for revenue.</p><h3>FAQ</h3><p><strong>Is there an SP-API field for minimum advertised price?</strong> No. MAP is the brand’s own internal policy; SP-API has no field for it anywhere, so the only usable signal is the offer listing’s item price, compared against that number outside the API.</p><p><strong>Which price field should the comparison use?</strong> priceWithoutShipping for a MAP policy that ignores shipping, totalPrice for a policy that counts shipping as part of the advertised price.</p><p><strong>Does this watch see coupons or checkout discounts?</strong> No. The offer data carries only the listed item price; any checkout-time discount or coupon never appears in it.</p><p><strong>Can one script also flag sellers who should not carry the listing at all?</strong> Yes. Comparing the seller ID against an authorized seller allowlist in the same pass catches that case independently of price, since a stray seller at MAP would otherwise pass the price check cleanly.</p><p><strong>What does a MAP watch cost to run on a schedule?</strong> One credit for each ASIN on each run; once or twice daily is a common cadence, so a few hundred ASINs stay affordable even checked several times a day.</p><p>Bottom line: no MAP flag exists anywhere in Amazon’s own data, but one offers call for each ASIN, checked against a price floor and a seller allowlist, still finds who is breaking the policy and who should never have been selling the listing at all. For the full watch script with an append-only evidence log, see <a href="https://sellermagnet-api.com/blog/amazon-map-monitoring-api?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-map-monitoring-api">the companion walkthrough</a>.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-map-monitoring-api"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Pull offer and price data with a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-map-monitoring-api"><em>free API key</em></a><em> and 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80c663584ab3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Date First Available API: When Was a Listing Created?]]></title>
            <link>https://medium.com/@management_83162/amazon-date-first-available-api-when-was-a-listing-created-3fe42fb4362a?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fe42fb4362a</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Tue, 01 Dec 2026 09:01:03 GMT</pubDate>
            <atom:updated>2026-12-01T09:01:03.244Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A competitor’s ASIN just showed up in your niche and the question is simple: is this a brand-new entrant or an old listing that only started ranking recently? SP-API cannot answer that for an ASIN you do not own, since Catalog Items returns no creation-date field at all outside your own catalog. Here is how to read the real “Date First Available” from a product lookup and what the date can and cannot tell you.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Terminal showing a Python script reading an Amazon ASIN’s Date First Available field as a creation date" src="https://cdn-images-1.medium.com/max/1024/1*reciZsfJtY2p1yPvnOcgNQ.png" /><figcaption>Reading an ASIN’s real creation date instead of guessing from its rank. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>Amazon date first available via API is a one-field answer once you know where to look, but the field most sellers reach for first, SP-API’s Catalog Items, simply does not carry it for a listing outside their own account. The only reliable way to read a competitor ASIN’s real creation date is a product lookup that reads the detail page itself, the same page a shopper sees.</p><figure><img alt="Card reading SP-API returns no listing creation date, Catalog Items gives the current snapshot only" src="https://cdn-images-1.medium.com/max/1024/1*1uXNi-8Vo3C_bkATa6bKTQ.jpeg" /><figcaption>No creation-date field exists in SP-API for an ASIN you do not own. Diagram: SellerMagnet API</figcaption></figure><h3>How do I read an ASIN’s creation date?</h3><p>Call /amazon-product-lookup and read productInfo.listedSinceDate. No extra parameter is needed: the field is already parsed to YYYY-MM-DD and sits in the same response you would read for title, price and bestseller rank.</p><pre>import requests<br>from datetime import date, datetime</pre><pre>API_KEY = &quot;YOUR_API_KEY&quot;<br>ASIN = &quot;B0CL61F39H&quot;<br>MARKETPLACE = &quot;ATVPDKIKX0DER&quot;  # amazon.com</pre><pre>resp = requests.get(<br>    &quot;https://sellermagnet-api.com/api/amazon-product-lookup&quot;,<br>    params={&quot;asin&quot;: ASIN, &quot;marketplaceId&quot;: MARKETPLACE},<br>    headers={&quot;X-Api-Key&quot;: API_KEY},<br>    timeout=120,<br>)<br>product_info = resp.json()[&quot;data&quot;][&quot;productInfo&quot;]<br>listed_since = product_info.get(&quot;listedSinceDate&quot;)</pre><pre>if listed_since is None:<br>    print(&quot;no label matched on this marketplace, or none on the page&quot;)<br>else:<br>    created = date.fromisoformat(listed_since)<br>    weeks_old = (date.today() - created).days // 7<br>    print(listed_since, f&quot;{weeks_old} weeks old&quot;)</pre><p>A run against a tracked ASIN prints a date and an age in weeks, for example 2021-03-15 292 weeks old. listedSinceDate is Amazon&#39;s own &quot;Date First Available&quot; label: the date the ASIN was created in the catalog, not necessarily when the product first shipped or went on sale, and it can predate an ASIN&#39;s current rank or review count by years.</p><figure><img alt="Each product lookup already includes listedSinceDate alongside title, price and bestseller rank, no extra call needed" src="https://cdn-images-1.medium.com/max/1024/1*9BNi0DUV2VK0aRz_FMQA2A.jpeg" /><figcaption>Nine of twelve checked page languages match a Date First Available label; the rest return null. Diagram: SellerMagnet API</figcaption></figure><h3>Why does the field come back null sometimes?</h3><p>listedSinceDate depends on matching a language-specific label on the live product page, and that match does not exist for every marketplace yet. English, German, Spanish, Italian, Portuguese, French, Dutch and Polish labels are matched, plus the Japanese label on amazon.co.jp; Swedish, Turkish and Arabic are not matched yet, so the field is null there regardless of how old the listing actually is. A null value can also mean the page simply has no such label at all, which happens on some listings independent of marketplace.</p><p>One more caveat before trusting an exact day: on amazon.co.jp the extraction parses the Japanese date format day-first, and when both the day and the month are 12 or lower the two numbers are genuinely ambiguous, so 2024/3/5 (5 March) can silently come back as 2024-05-03 (3 May). A day above 12 is unambiguous. For anything date-sensitive on amazon.co.jp, show the raw string to a human rather than feeding the parsed date straight into arithmetic.</p><pre>JAPAN_MARKETPLACE = &quot;A1VC38T7YXB528&quot;</pre><pre>def flag_jp_ambiguity(listed_since: str, marketplace_id: str) -&gt; str:<br>    created = date.fromisoformat(listed_since)<br>    if marketplace_id == JAPAN_MARKETPLACE and created.day &lt;= 12 and created.month &lt;= 12:<br>        return &quot;day and month are both 12 or lower, verify before date math&quot;<br>    return &quot;&quot;</pre><h3>Is this the same as a history field on the statistics endpoint?</h3><p>No, and mixing them up produces a wrong read. /amazon-product-statistics has its own listedSince and trackingSince fields, and they mark where that endpoint&#39;s own price, rank and review history starts, not when the product itself was created. An ASIN first tracked in 2024 can still have a real listedSinceDate from 2019 on the product lookup. Use listedSinceDate from the lookup for the listing&#39;s real age, and the statistics endpoint&#39;s own fields only to know how far back a price or rank chart goes.</p><figure><img alt="A listing’s real creation date can be years older than the date a price or rank history series begins tracking it" src="https://cdn-images-1.medium.com/max/1024/1*9xr3BeckR4SjamNR1v2hEg.jpeg" /><figcaption>A new entrant signal, not a verdict on its own. Diagram: SellerMagnet API</figcaption></figure><h3>What is listing age actually useful for?</h3><p>On its own, not much: it is one sourcing signal among several. A very young ASIN that is already ranking well in an established niche is worth watching as a possible new entrant; a very old ASIN that still sells well can point to a durable product worth sourcing. Pair it with the same lookup call’s current bestseller rank and review count before drawing any conclusion, and treat a single date as a lead to check further, not a finished verdict on a competitor.</p><h3>FAQ</h3><h4>Does SP-API return an Amazon listing’s creation date?</h4><p>Not for an ASIN you do not already sell. Catalog Items exposes data for items inside your own catalog, with no creation-date or Date First Available field for an arbitrary competitor ASIN.</p><h4>Why is listedSinceDate sometimes null?</h4><p>Either the live page has no such label at all, or the label is in a language the extraction does not match yet. Swedish, Turkish and Arabic are not matched as of now; nine other page languages are.</p><h4>Is the exact day and month always safe to trust?</h4><p>Only when the day is above 12. On amazon.co.jp, a day and month both 12 or lower are genuinely ambiguous under day-first parsing and can be silently swapped.</p><h4>Is listedSinceDate the same as the listedSince field on the statistics endpoint?</h4><p>No. listedSinceDate is the product’s real creation date from the product lookup. The statistics endpoint’s listedSince and trackingSince mark where that endpoint’s own history starts, which is often a much later date.</p><h4>Does a new listing date alone prove a new competitor is worth watching?</h4><p>No, it is one signal. Pair it with the same ASIN’s current bestseller rank and review count from the same lookup call before treating it as meaningful.</p><p>Bottom line: SP-API has no way to read a competitor ASIN’s real creation date at all; listedSinceDate on the product lookup is the closest thing to a listing&#39;s birthday, matched across most but not all marketplace page languages, with one open caveat on Japan. For a related read on what else a competitor&#39;s offer listing reveals that SP-API cannot, see <a href="https://medium.com/p/1370ebe16aed">the competitor offers lookup walkthrough</a>.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-date-first-available-listing-age-api"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Pull Date First Available with a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-date-first-available-listing-age-api"><em>free API key</em></a><em> and 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fe42fb4362a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What A Monthly Amazon Data Job Actually Costs]]></title>
            <link>https://medium.com/@management_83162/what-a-monthly-amazon-data-job-actually-costs-acf3b8d03621?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/acf3b8d03621</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 16:01:04 GMT</pubDate>
            <atom:updated>2026-11-30T16:01:04.688Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A monthly Amazon data job costs whatever its billed request count comes to, and that number depends entirely on how many ASINs are tracked and how often each one is checked, not on the headline request rate alone. SP-API carries no comparable request rate at all, since it runs against a seller’s own registered account rather than a metered catalog service a third party can price out in advance. Once a use case turns into a request count, the real decision is a flat plan against pay-as-you-go, and the cheaper one is not always the plan with the lower sticker price.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Terminal showing a cost calculator computing monthly Amazon data API credits for three use cases" src="https://cdn-images-1.medium.com/max/1024/1*KANAzQGijZVkeLQPTggREg.png" /><figcaption>Two inputs, ASIN count and check frequency, decide the whole monthly bill. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>Budgeting an Amazon data job by its single-request rate alone hides the number that actually sets the bill: how many requests the job sends in a month. The <a href="https://sellermagnet-api.com/blog/amazon-data-api-cost-calculator?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-data-api-cost-calculator">full guide on the API blog</a> runs the live plan table against three real use cases; this companion piece covers the one comparison that decides plan versus pay-as-you-go.</p><figure><img alt="Card reading a flat plan only pays for itself once you use most of its allowance" src="https://cdn-images-1.medium.com/max/1024/1*tX_2ONwuRk35MDZFhqC55g.jpeg" /><figcaption>A bigger plan is not automatically the cheaper choice at every volume. Diagram: SellerMagnet API</figcaption></figure><h3>A flat allowance has to be mostly used to be worth it</h3><p>A subscription plan bundles a fixed number of requests for a flat monthly price, which means its real cost for one request only beats pay-as-you-go once the job actually uses most of that bundle. A job that needs more requests than one plan covers but far fewer than the next plan up can land cheaper on plain pay-as-you-go than on the bigger plan, even though the bigger plan’s headline rate for a thousand requests looks better on paper. The comparison that matters is not plan price against plan price, it is the total cost of covering one specific monthly request count under each option.</p><pre>def cheaper_option(monthly_requests: int, plan_price: float, plan_allowance: int, payg_rate_1k: float) -&gt; str:<br>    &quot;&quot;&quot;Compare a flat plan against pay-as-you-go for ONE specific monthly volume.&quot;&quot;&quot;<br>    if monthly_requests &gt; plan_allowance:<br>        overage = monthly_requests - plan_allowance<br>        plan_total = plan_price + (overage / 1000 * payg_rate_1k)<br>    else:<br>        plan_total = plan_price<br>    payg_total = monthly_requests / 1000 * payg_rate_1k<br>    return &quot;plan&quot; if plan_total &lt;= payg_total else &quot;pay-as-you-go&quot;<br></pre><pre>print(cheaper_option(monthly_requests=288_000, plan_price=499, plan_allowance=499_000, payg_rate_1k=1.45))</pre><pre>pay-as-you-go</pre><h3>Two inputs decide almost the whole bill</h3><p>Everything else being equal, a monthly request count comes down to two numbers: how many ASINs are being watched, and how often each one gets checked. Doubling either number doubles the bill in the same way, which makes a check-frequency change just as expensive as adding the same proportional number of new ASINs, a trade-off that is easy to underestimate when a team tightens a polling interval without re-running the math.</p><figure><img alt="Card reading retried billed calls belong in the monthly count too" src="https://cdn-images-1.medium.com/max/1024/1*0mxD4ilS4fawZcDozAqMRw.jpeg" /><figcaption>A retry on a billed error adds to the total the same as a first attempt. Diagram: SellerMagnet API</figcaption></figure><pre>def monthly_requests(asins_tracked: int, daily_checks: int, retry_rate: float = 0.0) -&gt; int:    &quot;&quot;&quot;retry_rate: fraction of checks that need one extra billed retry (e.g. 502/503), not free 429s.&quot;&quot;&quot;    base = asins_tracked * daily_checks * 30    return round(base * (1 + retry_rate))</pre><pre>print(monthly_requests(asins_tracked=200, daily_checks=48, retry_rate=0.03))</pre><h3>Why retries belong in the estimate, not as an afterthought</h3><p>A retry on a billed error adds to the monthly total exactly like a first attempt does, so a batch job’s own retry rate on 5xx responses has to be folded into the estimate before comparing anything, not bolted on after a plan is already picked. Skipping that step under-counts the real monthly volume by however often the job actually needs a second try, which is usually not zero on a large enough batch.</p><h3>FAQ</h3><h4>Does SP-API have an equivalent cost calculator?</h4><p>Not really, because SP-API has no simple single-request price to calculate against: it runs on your own seller account rather than a metered catalog API, so there is no standalone rate card to compare a use case against the way a product data API has one.</p><h4>What two numbers matter most for a monthly estimate?</h4><p>How many ASINs are tracked and how often each one is checked. Multiplying those together, then adding 30 days, gives the base monthly request count before any retries are added.</p><h4>Should a retried request be counted separately?</h4><p>No, fold it into the same monthly total. A billed retry costs the same as the original attempt, so a job’s actual retry rate has to be part of the estimate from the start, not an extra line added later.</p><h4>Is a bigger subscription plan always the cheaper choice?</h4><p>Not automatically. A plan only beats pay-as-you-go once its flat allowance is mostly used; a job that needs more than one plan’s allowance but far less than the next plan up can land cheaper on pure pay-as-you-go.</p><h4>How often should a monthly estimate be recalculated?</h4><p>Whenever the ASIN count or the check frequency changes meaningfully, since both inputs scale the bill directly and a stale estimate based on an old polling interval will undercount the real volume.</p><p>Bottom line: a monthly Amazon data job’s real cost comes from its request count, not its advertised rate, and that count is ASIN count times check frequency times thirty days, plus whatever a realistic retry rate adds. For sizing the check frequency itself against how fast a Buy Box actually changes, see the <a href="https://sellermagnet-api.com/blog/amazon-buy-box-polling-interval?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-data-api-cost-calculator">polling interval guide</a>.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-data-api-cost-calculator"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Get a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-data-api-cost-calculator"><em>free API key</em></a><em> with 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acf3b8d03621" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building An Alert For New Amazon Seller Feedback]]></title>
            <link>https://medium.com/@management_83162/building-an-alert-for-new-amazon-seller-feedback-f16cb6a24078?source=rss-740e4fc3548a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f16cb6a24078</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[amazon-sellers]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[alerts]]></category>
            <dc:creator><![CDATA[SellerMagnet API]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 09:01:03 GMT</pubDate>
            <atom:updated>2026-11-30T09:01:03.071Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Watching for a new negative Amazon rating does not need a dashboard refresh, it needs one scheduled call a day to the seller feedback endpoint and a saved copy of yesterday’s answer to compare it against. SP-API has no operation that returns seller feedback text, counts or star ratings at all, so a product data API’s seller review endpoint is the only automated route to this signal. The one design detail that decides whether the alert actually catches everything is what happens when more than five bad ratings land between two checks.</em></p><p><em>This essay was drafted with the assistance of AI and fact-checked and edited by the SellerMagnet team.</em></p><figure><img alt="Terminal window running a Python script that reports new negative Amazon seller feedback" src="https://cdn-images-1.medium.com/max/1024/1*zWQ3HQTuuYFvA0tZTPfCrg.png" /><figcaption>A saved baseline compared against today’s five recent entries catches a new low rating. AI-generated photo illustration: SellerMagnet API</figcaption></figure><p>A dashboard that only shows the current feedback score misses the moment that actually matters: the instant a new 1-star entry appears, while its text is still fresh enough to act on. The <a href="https://sellermagnet-api.com/blog/amazon-negative-feedback-alert?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-negative-feedback-alert">full guide on the API blog</a> builds the whole alert end to end; this companion piece covers the gap that silently drops ratings if you skip it.</p><figure><img alt="Card reading the recent list holds five entries, the lifetime count is the backstop" src="https://cdn-images-1.medium.com/max/1024/1*JWcCWU0OMfjlJdG8XrCQZg.jpeg" /><figcaption>Five slots fill fast on a busy week; the lifetime counter never resets. Diagram: SellerMagnet API</figcaption></figure><h3>Five slots is not a lot on a busy week</h3><p>The seller feedback endpoint hands back only the five most recent entries alongside the running counts, and a seller who picks up six new 1-star ratings between two daily checks will watch the oldest one scroll out of that list before the alert script ever sees it directly. Counting only what shows up in the visible five therefore silently drops exactly the rating that needed attention first. The lifetime 1-star count moving by more than the visible new entries explain is the signal that something scrolled past unseen, and a script that ignores that count will report a quieter week than actually happened.</p><pre>def missed_entries(lifetime_now: int, lifetime_before: int, counted_in_recent_list: int) -&gt; int:<br>    &quot;&quot;&quot;More lifetime growth than the visible list explains means ratings scrolled out unseen.&quot;&quot;&quot;<br>    growth = lifetime_now - lifetime_before<br>    return max(0, growth - counted_in_recent_list)<br></pre><pre>print(missed_entries(lifetime_now=16, lifetime_before=12, counted_in_recent_list=2))</pre><pre>2</pre><h3>Amazon’s own feedback page disagrees with the API field names</h3><p>The API buckets a rating of exactly 2 stars under its neutral count, while Amazon’s own seller feedback page treats both 1 and 2-star ratings as negative to a shopper reading it. An alert script that only watches the field literally named negative therefore misses every single 2-star complaint, which is usually the more common of the two anyway. Reading the star rating of each entry in the recent list, rather than trusting which bucket the API filed it under, is what keeps the alert matching what a customer actually sees as negative.</p><figure><img alt="Card reading 2 stars files as neutral in the API, negative on Amazon’s own page" src="https://cdn-images-1.medium.com/max/1024/1*MAqiXI_vXgyWXT4oKwoMZg.jpeg" /><figcaption>The field name and the customer-facing label disagree on exactly one star rating. Diagram: SellerMagnet API</figcaption></figure><pre>def is_customer_negative(star_rating: int, amazon_negative_ceiling: int = 2) -&gt; bool:<br>    &quot;&quot;&quot;Amazon&#39;s own feedback page labels 1 AND 2 stars negative, unlike the API&#39;s own field split.&quot;&quot;&quot;<br>    return isinstance(star_rating, int) and star_rating &lt;= amazon_negative_ceiling</pre><pre>for stars in (1, 2, 3, 4):<br>    print(stars, is_customer_negative(stars))</pre><pre>1 True<br>2 True<br>3 False<br>4 False</pre><h3>Why the first run should never trigger an email</h3><p>The very first call a new alert script makes returns whatever feedback already existed before anyone started watching, and treating that as five fresh complaints sends a misleading flood of mail for ratings that may be months old. Saving that first answer as the baseline without mailing anything, then comparing only from the second run onward, is the difference between a useful alert and one that cries wolf on day one.</p><h3>FAQ</h3><h4>How often does the feedback alert need to run?</h4><p>Once a day is enough for most sellers, since the endpoint’s recent list and lifetime counts update as feedback is left, not on a fixed schedule of their own.</p><h4>Can SP-API return my seller feedback directly?</h4><p>No. There is no SP-API operation that returns seller feedback counts, star ratings or review text, which is why this alert depends on a dedicated seller feedback endpoint instead.</p><h4>What happens if more than five new negative ratings arrive overnight?</h4><p>The visible list only shows five, so the alert has to watch the lifetime 1-star count as well; any growth beyond what the visible entries explain means some scrolled out before being seen directly.</p><h4>Is a 2-star Amazon rating treated as negative?</h4><p>On Amazon’s own feedback page, yes. The API itself files 2 stars under a neutral bucket, so an alert that reads only the negative field misses every 2-star complaint unless it checks the star value of each entry.</p><h4>Will the first run send an alert email?</h4><p>It should not. The first call only has today’s existing feedback to go on, so saving it as a starting baseline, rather than treating it as new, avoids a misleading flood of mail on day one.</p><p>Bottom line: a seller feedback alert is one call a day, a saved baseline, and two traps worth closing: the five-entry ceiling and the 1 versus 2-star labelling mismatch. For the same field reference in more depth, see the <a href="https://sellermagnet-api.com/blog/amazon-seller-feedback-api?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-negative-feedback-alert">seller feedback API guide</a>.</p><p><em>I’m part of the team at </em><a href="https://sellermagnet-api.com/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-negative-feedback-alert"><em>SellerMagnet API</em></a><em>, an Amazon data API covering product, offer, pricing and rank data across Amazon’s marketplaces. Get a </em><a href="https://sellermagnet-api.com/register?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=amazon-negative-feedback-alert"><em>free API key</em></a><em> with 150 free credits. More essays like this: follow </em><a href="https://medium.com/@management_83162"><em>SellerMagnet API on Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f16cb6a24078" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>