Explore and analyze Amazon e-commerce data at scale — from product discovery and competitive pricing intelligence to seller profiling, review analysis, and influencer storefront research.
This skill provides comprehensive Amazon marketplace intelligence using the KeyAPI MCP service. It enables product search and discovery, category-level browsing, multi-ASIN detail retrieval, best seller and deal monitoring, seller profile and review analysis, influencer post and product research, and identifier conversion — all through a unified, cache-first workflow supporting 24 Amazon marketplaces.
Use this skill when you need to:
RequirementDetailsKEYAPI_TOKENA valid API token from keyapi.ai. Register at the site to obtain your free token. Set it as an environment variable: export KEYAPI_TOKEN=your_token_hereNode.jsv18 or higherDependenciesRun npm install in the skill directory to install @modelcontextprotocol/sdk
All tool calls in this skill target the KeyAPI Amazon MCP server:
text
Server URL : https://mcp.keyapi.ai/amazon/mcp
Auth Header: Authorization: Bearer $KEYAPI_TOKEN
Setup (one-time):
bash
# 1. Install dependencies
npm install
# 2. Set your API token (get one free at https://keyapi.ai/)
export KEYAPI_TOKEN=your_token_here
# 3. List all available tools to verify the connection
node scripts/run.js --platform amazon --list-tools
User NeedNode(s)Best ForKeyword or ASIN-based product searchproduct_searchProduct discovery, competitive researchBrowse products in a specific categoryproducts_by_categoryCategory-level analysis, assortment researchDetailed product info for 1–10 ASINsproduct_detailsProduct audit, price/spec comparisonTop-level category list for a marketplaceproduct_category_listCategory hierarchy discoveryBest sellers, new releases, trending itemsbest_sellerMarket trend monitoring, top-performer benchmarkingConvert ASIN to GTIN/EAN/UPCasin_to_gtinCross-marketplace identifier mappingCustomer reviews for a productproduct_reviewsSentiment analysis, quality signalsFull details for a specific reviewproduct_review_detailsDeep review audit, reviewer profilingTop-ranked helpful reviewstop_product_reviewsQuick quality pulse, best review samplingAvailable purchase offers (new/used/refurb)product_offersPrice comparison, buy box intelligenceActive deals with filtersdealsDeal monitoring, promotional intelligenceProducts in a specific dealdeal_productsDeal content analysisPromo code discount detailspromo_code_detailCoupon validation, discount researchSeller profile and business infoseller_profileSeller credibility assessmentSeller customer reviewsseller_reviewsSeller reputation analysisSeller product catalogseller_productsSeller assortment researchAmazon influencer storefront profileinfluencer_profileInfluencer discovery, follower/bio dataInfluencer posts (lists, photos, videos)influencer_postsContent audit, product promotion patternsProducts in an influencer list postinfluencer_post_productsProduct attribution, affiliate research
Clarify the research objective and map it to one or more nodes. Typical entry points:
product_search with keyword + filters → deepen with product_details for specific ASINs.product_category_list to find category_id → products_by_category to browse listings.product_details + product_offers to compare price and condition options.best_seller with category path and type parameter.deals with filters → deal_products for specific deal contents.seller_profile → seller_reviews + seller_products for full seller audit.product_reviews with star_rating and verified_purchases_only filters; top_product_reviews for quick sampling.influencer_profile → influencer_posts → influencer_post_products for product attribution.Multi-ASIN Batch Calls
product_detailsandproduct_offersaccept comma-separated ASIN lists in theasinparameter (up to 10 ASINs per call). This enables efficient bulk retrieval in a single request.Example:
"asin": "B07ZPKBL9V,B09SM24S8C,B08N5WRWNW"
countryParameter — Multi-Marketplace SupportMost endpoints accept a
countryparameter (default:us). Set it to target a specific Amazon marketplace:us,uk,de,fr,it,es,ca,jp,au,in,mx,br,sg,ae,sa,tr,nl,pl,se,be,eg,za,ng,ke
fieldsProjectionMost endpoints accept an optional
fieldsparameter — a comma-separated list of fields to return. Use it to reduce response payload size and focus on only the data you need.
best_sellerCategory PathThe
categoryparameter uses the URL path from Amazon's Best Sellers page. For example,softwaremaps tohttps://www.amazon.com/Best-Sellers-Software/zgbs/software. Thetypeparameter controls the list:BEST_SELLERS,NEW_RELEASES,MOVERS_AND_SHAKERS,MOST_WISHED_FOR,GIFT_IDEAS.
dealsPagination
dealsusesoffset(notpage) for pagination. Increment by 30 for each page:0,30,60,90, etc.
Influencer Post Workflow
To retrieve products from an influencer post:
- Call
influencer_postswithinfluencer_nameto list posts — note thepost_idvalues.- Call
influencer_post_productswithinfluencer_name+post_id(only works for posts of typelist).
Before calling any node, inspect its input schema to confirm required parameters and available options:
bash
node scripts/run.js --platform amazon --schema <tool_name>
# Examples
node scripts/run.js --platform amazon --schema product_search
node scripts/run.js --platform amazon --schema best_seller
node scripts/run.js --platform amazon --schema deals
Execute tool calls and persist responses to the local cache to avoid redundant API calls.
Calling a tool:
bash
# Single call with pretty output
node scripts/run.js --platform amazon --tool <tool_name> \
--params '<json_args>' --pretty
# Force fresh data, skip cache
node scripts/run.js --platform amazon --tool <tool_name> \
--params '<json_args>' --no-cache --pretty
Example — search products with filters:
bash
node scripts/run.js --platform amazon --tool product_search \
--params '{"query":"wireless earbuds","country":"us","sort_by":"REVIEWS","min_price":20,"max_price":100,"is_prime":true}' --pretty
Example — get details for multiple ASINs in one call:
bash
node scripts/run.js --platform amazon --tool product_details \
--params '{"asin":"B07ZPKBL9V,B09SM24S8C","country":"us"}' --pretty
Example — get best sellers:
bash
node scripts/run.js --platform amazon --tool best_seller \
--params '{"category":"electronics","type":"BEST_SELLERS","country":"us","page":1}' --pretty
Example — get active deals:
bash
node scripts/run.js --platform amazon --tool deals \
--params '{"country":"us","discount_range":"3","min_product_star_rating":"4"}' --pretty
Example — get product reviews filtered by star rating:
bash
node scripts/run.js --platform amazon --tool product_reviews \
--params '{"asin":"B00939I7EK","sort_by":"TOP_REVIEWS","star_rating":"5_STAR","verified_purchases_only":true,"page":1}' --pretty
Example — get seller profile and reviews:
bash
node scripts/run.js --platform amazon --tool seller_profile \
--params '{"seller_id":"A02211013Q5HP3OMSZC7W","country":"us"}' --pretty
node scripts/run.js --platform amazon --tool seller_reviews \
--params '{"seller_id":"A02211013Q5HP3OMSZC7W","star_rating":"NEGATIVE","country":"us"}' --pretty
Example — get influencer posts then products:
bash
# Step 1: get posts
node scripts/run.js --platform amazon --tool influencer_posts \
--params '{"influencer_name":"tastemade","limit":20}' --pretty
# Step 2: get products from a specific list post
node scripts/run.js --platform amazon --tool influencer_post_products \
--params '{"influencer_name":"madison.lecroy","post_id":"amzn1.ideas.382NVFBNK3GGQ"}' --pretty
Pagination reference:
EndpointPagination methodNotesproduct_search, products_by_category, best_seller, deal_products``page (int, 1-indexed)Standard page-based paginationproduct_reviews``page (int, 1-indexed)Also supports cookie for session continuityproduct_offers``page (int, 1-indexed)Default limit is 100 offersseller_reviews, seller_products``page (int)Optional, starts at 1deals``offset (int)Multiples of 30: 0, 30, 60, 90…influencer_posts, influencer_post_products``cursor (string)Pass cursor from previous response; omit for first callproduct_details, top_product_reviews, seller_profile, promo_code_detail, asin_to_gtin, product_category_list—Single-call or no pagination
product_search and products_by_category sort options:
ValueDescriptionRELEVANCEDefault — most relevant resultsLOWEST_PRICECheapest firstHIGHEST_PRICEMost expensive firstREVIEWSMost reviewedNEWESTMost recently listedBEST_SELLERSBest-selling products first
product_search and products_by_category condition options ( product_condition):
ValueDescriptionALLAll conditions (default)NEWNew products onlyUSEDUsed products onlyRENEWEDRenewed/refurbished productsCOLLECTIBLECollectible items
product_search and products_by_category deals filter ( deals_and_discounts):
ValueDescriptionNONENo filter (default)ALL_DISCOUNTSAny discounted productTODAYS_DEALSToday's deals only
product_offers condition options ( product_condition):
Pass as comma-separated values: NEW, USED_LIKE_NEW, USED_VERY_GOOD, USED_GOOD, USED_ACCEPTABLE
Cache directory structure:
text
.keyapi-cache/
└── YYYY-MM-DD/
├── product_search/
│ └── {params_hash}.json
├── products_by_category/
│ └── {params_hash}.json
├── product_details/
│ └── {params_hash}.json
├── product_category_list/
│ └── {params_hash}.json
├── best_seller/
│ └── {params_hash}.json
├── asin_to_gtin/
│ └── {params_hash}.json
├── product_reviews/
│ └── {params_hash}.json
├── product_review_details/
│ └── {params_hash}.json
├── top_product_reviews/
│ └── {params_hash}.json
├── product_offers/
│ └── {params_hash}.json
├── deals/
│ └── {params_hash}.json
├── deal_products/
│ └── {params_hash}.json
├── promo_code_detail/
│ └── {params_hash}.json
├── seller_profile/
│ └── {params_hash}.json
├── seller_reviews/
│ └── {params_hash}.json
├── seller_products/
│ └── {params_hash}.json
├── influencer_profile/
│ └── {params_hash}.json
├── influencer_posts/
│ └── {params_hash}.json
└── influencer_post_products/
└── {params_hash}.json
Cache-first policy:
Before every API call, check whether a cached result already exists for the given parameters. If a valid cache file exists, load from disk and skip the API call.
After collecting all API responses, produce a structured e-commerce intelligence report:
For product research:
For seller research:
For deal and promotion monitoring:
For influencer research:
RuleDetailMulti-ASIN callsproduct_details and product_offers accept up to 10 comma-separated ASINs in a single asin parameter.country parameterDefaults to us. Pass a two-letter country code to target other Amazon marketplaces (24 supported).fields projectionMost endpoints accept fields (comma-separated field names) to reduce response size. Use it to fetch only the data you need.best_seller categoryUse the URL path from Amazon's Best Sellers page as the category value (e.g., electronics, software).deals paginationUses offset (not page). Increment by 30 for each page: 0, 30, 60, 90…Influencer post typeinfluencer_post_products only works for posts with type list. Check post type in influencer_posts response first.product_offers conditionproduct_condition accepts comma-separated values: NEW, USED_LIKE_NEW, USED_VERY_GOOD, USED_GOOD, USED_ACCEPTABLE.Success checkcode = 0 → success. Any other value → failure. Always check the response code before processing data.Retry on 500If code = 500, retry the identical request up to 3 times with a 2–3 second pause between attempts before reporting the error.Cache firstAlways check the local .keyapi-cache/ directory before issuing a live API call.
CodeMeaningAction0SuccessContinue workflow normally400Bad request — invalid or missing parametersValidate ASIN format, check batch size limit (max 10), verify country code401Unauthorized — token missing or expiredConfirm KEYAPI_TOKEN is set correctly; visit keyapi.ai to renew403Forbidden — plan quota exceeded or feature restrictedReview plan limits at keyapi.ai404Resource not found — product, seller, or influencer may not existVerify ASIN, seller_id, or influencer_name; product may have been delisted429Rate limit exceededWait 60 seconds, then retry500Internal server errorRetry up to 3 times with a 2–3 second pause; if it persists, log the full request and response and skip this nodeOther non-0Unexpected errorLog the full response body and surface the error message to the user