All articles
API & MCP

API endpoints

All endpoints of the JustRanks API: your tracked products with keywords, competitors and market, research, signals, search results and search volume of a keyword, usage and webhooks.

All addresses start with https://www.justranks.com/api/v1. Dates are YYYY-MM-DD; without from and to a period means the last 30 days, and *_change fields compare it with the period of the same length just before. Visibility, relevance and all shares are percentages from 0 to 100, so 97.03 means 97.03 %; position changes are places; prices are in the currency of the marketplace. Every endpoint has a twin tool in the MCP server, named in brackets.

Products

A product is one of your tracked ASINs with up to 200 keywords and up to 10 competitors, captured every day at the capture hour of your account.

GET /products?from&to (list_products) lists your products with the numbers of the Tracking overview: visibility, average position, position trend, top-10 share, coverage, volatility, page-one keywords, Best Seller and Amazon's Choice shares, and from the product page price, coupon and deal, sub-category and top-category BSR, Buy Box share, rating, new ratings, estimated monthly revenue and delivery time. status is active or paused; signals counts the signals in the period.

GET /products/{id}?from&to (get_product) is one product like the header of its product page, plus its most important keywords with position and trend, its recent listing changes (price, coupon, deal, title, images, bullets, A+ content, videos, Buy Box, stock) and its listing content.

GET /products/{id}/keywords?from&to&limit (product_keywords) is the Keywords tab: for every tracked keyword its search volume (search_volume, and search_volume_display such as < 150 when Amazon reports too few searches), relevance, sales impact, position today, average position and its change, position trend, visibility, Amazon's Choice share and competitors_ahead, the tracked competitors that rank above the product today. Sorted by sales impact.

GET /products/{id}/competitors?from&to (product_competitors) is the Competitors tab: the product and its tracked competitors with the same numbers as above, and keywords_ahead, on how many keywords each competitor ranks ahead of your product today.

GET /products/{id}/market?top=25&by=relevance&limit=25 (product_market) is the Market tab: the most visible products on the product's top 10, 25 or 50 keywords, ranked by relevance, search volume or sales impact (by=sales_impact), or on keyword_ids=1,2,3 you choose (up to 50). Each product has visibility, average position, top-10 share, coverage, price, rating, reviews, badges and delivery; own marks your product and competitor your tracked competitors.

POST /products/{id}/keywords (add_product_keywords, remove_product_keywords) changes the keywords: { "add": ["dog crate large"], "remove": ["dog cage", 1234] }, removing by text or keyword_id. New keywords are captured from the next capture hour on. Up to 200 per product.

POST /products/{id}/competitors (add_product_competitors, remove_product_competitors) changes the competitors: { "add": ["B0…"], "remove": ["B0…"] }. Up to 10 per product.

POST /products/{id}/pause (pause_product, resume_product) with { "paused": true } pauses tracking: no captures and no signals, all data stays, and the product frees its product slot. { "paused": false } resumes it and needs a free slot; without one the answer is 403 no_product_slot.

Research

Research finds the keywords and competitors for a product, the same as Research in the app. It runs for a few minutes and counts against your monthly Research allowance (mode analysis: your analyses), shared with the app.

POST /research (start_research) starts one. Body:

{ "asins": ["B0…"], "keywords": ["dog crate"], "mode": "research", "marketplace": "amazon.com" }
  • mode: "research" (default) finds the relevant keywords and closest competitors for up to 10 ASINs and/or seed keywords. Optional: breadth (narrow, normal, broad), feature (the main feature of the product) and competitors (ASINs that must be included).
  • mode: "analysis" analyzes exactly the 1 to 200 keywords you send, optionally with asins to see their rank.

The answer has the id of the research. Starting the same research again while it runs returns the same id.

GET /research (list_research) lists your recent research with status and inputs.

GET /research/{id}?limit=50&sort=sales_impact (get_research) returns the status (queued, running, done, failed) and progress in percent. When it is done: the keywords with search volume, relevance, sales impact, top-3 purchase share, the rank of each searched ASIN and whether a keyword contains your brand or a competitor's, sorted by sales impact (default), search volume or relevance; and the competitors found.

GET /research/{id}/market?top=25&by=relevance&limit=25 (research_market) is the Market tab of a research: the most visible products on its top keywords or on keywords=a,b you choose (up to 50), from the search results the research captured.

GET /research/{id}/competitors (research_competitors) is the Competitors tab of a research: the searched ASINs and the competitors with visibility, average position, top-10 share, coverage, price, estimated monthly revenue, rating, delivery, badges and keywords_ahead, across all keywords of the research.

POST /research/{id}/track (track_research) tracks a finished research with an ASIN as a product, like Track as product in the app. Choose the keywords: { "keywords": ["dog crate", "dog kennel"] } from the result, or { "top": 100 } for the keywords with the highest search volume. competitors is optional (default: the competitors of the research, up to 10), name too. The answer has the new product_id. Tracking the same research again returns the same product. The new product uses a free product slot; without one the answer is 403 no_product_slot (slots are added in the app under Billing).

Signals

GET /signals?product_id&asin&severity=critical,high&days=7&limit=50&cursor (get_signals) returns the signals of your products and their competitors, the same as on the Signals page: what happened, to which product, with the facts as numbers. role is your_product or competitor; products names the tracked products a signal belongs to. ongoing lists open incidents such as a lost Buy Box. Use meta.next_cursor as cursor for the next page. Signal rules cannot be changed through the API.

Keywords

GET /keywords/{keyword}/serp?marketplace&date (keyword_serp) returns the organic first page of a keyword: position, ASIN, family, title, image, price, list price, rating, reviews, "bought in past month", badges and delivery promise. Without date, the latest capture; if a day has no capture, the capture up to three days earlier is used and capture_date names its day. Keywords that JustRanks has not captured yet answer 404 keyword_not_found: track them in a product or run a research. Counts against the daily allowance unless the keyword is in one of your products.

GET /search-volume?keywords=dog crate,lunch box&marketplace (keyword_volume) returns the monthly search volume of up to 100 keywords, the same numbers as in the app. known: false means JustRanks has no data for the keyword on this marketplace. With one keyword and history=true, weekly adds the trend by week. Counts like search results.

Account

GET /usage (get_usage) returns your plan, what you have used and your limits: Research runs and analyses this month (with the period and how much is left), your products (active, paused, additional) and their monthly price, runs in progress, and for the API and MCP the requests and other keywords today.

Webhooks

Instead of asking for new signals, let JustRanks send them. New signals of your products and their competitors are sent in batches to your address, usually within minutes after they appear in the app. Webhooks have no MCP twin.

  • POST /webhooks with { "url": "https://example.com/justranks", "severities": ["critical", "high"], "product_ids": [12] } creates a webhook. severities and product_ids are optional (default: all severities shown on the Signals page, all products). The answer contains a secret. It is shown once.
  • GET /webhooks lists your webhooks with their status (active, failing, disabled) and the last error.
  • POST /webhooks/{id}/test sends a test event right away and tells you whether your server accepted it.
  • DELETE /webhooks/{id} deletes a webhook.

Each call is a POST with { "type": "signals", "webhook_id": 3, "sent_at": "…", "signals": [ … ] }. The signals have the same format as GET /signals. Answer with any 2xx status. If your server does not answer in time or answers with an error, JustRanks retries with growing pauses; after many failures in a row the webhook is switched off and shows as disabled. Up to 5 webhooks per account.

Every call carries X-JustRanks-Signature: t=<timestamp>,v1=<signature>. The signature is an HMAC-SHA256 of <timestamp>.<raw body> with your secret. Check it before you trust the call, and reject old timestamps:

const crypto = require('crypto')
function verify(rawBody, header, secret) {
  const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')))
  const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex')
  const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300
  return fresh && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected))
}

Related