{"openapi":"3.1.0","info":{"title":"KDPTop API","description":"\nAmazon KDP market data collected by KDPTop: the Amazon Books and Kindle eBooks category tree\n(English + Simplified Chinese names), daily Best Sellers / New Releases / Top 100 Free snapshots,\nbook (ASIN) ranking history and per-category opportunity metrics.\n\nAuthenticate with `Authorization: Bearer <API key>` (create keys at https://kdptop.com/developer).\nTypical flow: searchCategories -> getCategory / getList -> getBook; findOpportunities for niche ideas.\nKDP publishing: resolveKdpCategory maps an Amazon URL / ASIN / node id to the KDP backend category path;\nrecommendKdpCategories suggests placements for a book description.\nAI analysis: getCategoryProfile explains what kind of books / ages / audiences a category serves and where the\nopportunities are; findSegments ranks (category x book type x age band) opportunities across all categories.\n\nKDPTop also has a book maker (KDPTop Studio, https://kdptop.com/create: coloring, word search, hidden object, sudoku\nand maze books as print-ready KDP files). Books are made on the site, not through this API; while the Studio is open\ngetStats returns `studio` with what it makes and what it costs.\n","version":"1.0.0"},"servers":[{"url":"https://kdptop.com/api/v1"}],"paths":{"/stats":{"get":{"summary":"Dataset coverage and freshness, and what the book maker costs","operationId":"getStats","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/categories/search":{"get":{"summary":"Fuzzy-search categories by English or Chinese name/path","description":"Returns matching Amazon book categories (node_id, names, path, opportunity score). Accepts typos and Chinese.","operationId":"searchCategories","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"e.g. 'cozy mystery', '温馨推理', 'romance'","title":"Q"},"description":"e.g. 'cozy mystery', '温馨推理', 'romance'"},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"enum":["books","kindle"],"type":"string"},{"type":"null"}],"description":"books = print, kindle = Kindle eBooks","title":"Store"},"description":"books = print, kindle = Kindle eBooks"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"},"description":"how many rows to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/categories/{node_id}":{"get":{"summary":"Category detail with latest metrics and sub-categories","description":"Breadcrumb, latest list metrics (median reviews/price, turnover, new-release ratio, opportunity score) and children ranked by score.","operationId":"getCategory","security":[{"HTTPBearer":[]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"},"description":"Amazon category (browse node) id; find one with /categories/search"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lists/{node_id}/{list_type}":{"get":{"summary":"Ranked books of a Best Sellers / New Releases / Top 100 Free list","description":"Latest snapshot (or the latest one on/before `date`) with rank, previous-day rank, ASIN, title, author, price, rating and reviews.","operationId":"getList","security":[{"HTTPBearer":[]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"},"description":"Amazon category (browse node) id; find one with /categories/search"},{"name":"list_type","in":"path","required":true,"schema":{"enum":["best","new","free"],"type":"string","title":"List Type"},"description":"best = Best Sellers, new = New Releases, free = Top 100 Free (Kindle only)"},{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"YYYY-MM-DD; default latest","title":"Date"},"description":"YYYY-MM-DD; default latest"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"},"description":"how many rows to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSnapshot"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/books/search":{"get":{"summary":"Search books by ASIN, title or author","operationId":"searchBooks","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":200,"title":"Q"},"description":"search text"},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"enum":["books","kindle"],"type":"string"},{"type":"null"}],"title":"Store"},"description":"books = print, kindle = Kindle eBooks"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"},"description":"how many rows to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/books/batch":{"post":{"summary":"Sales estimates and list positions for up to 50 ASINs","description":"One call per page of books (counts as a single API call). Each result has `sales` (BSR, est. daily / monthly units and revenue; `source` is observed, list or live), up to 5 current list positions, AI tags and the publication date. Pass the BSR and price shown on the Amazon page to get a `live` estimate for books KDPTop does not track yet.","operationId":"getBooksBatch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_getBooksBatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/books/{asin}":{"get":{"summary":"Book detail with daily ranking history per list","description":"Includes a `market` object when available: overall sales rank and 30/90/180-day averages, rank drops (a proxy for sales events), current/list/90-day prices, page count, publisher and publication date. `sales` holds the estimated BSR, daily / monthly units and revenue.","operationId":"getBook","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asin","in":"path","required":true,"schema":{"type":"string","title":"Asin"},"description":"10-character Amazon ASIN"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"},"description":"how many days back to look"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/books/{asin}/history":{"get":{"summary":"A book's daily history of sales rank, price, review count or rating","description":"One value per UTC day, oldest first, as far back as `days` (your plan's history window at most; `history_days` says how far it went). `metric`: rank = the store-wide Best Sellers Rank (`inferred: true` on a day it was worked out from a list position instead of read), price (USD), reviews (number of ratings) or rating (stars). Days without a reading are left out, not filled in.","operationId":"getBookHistory","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asin","in":"path","required":true,"schema":{"type":"string","title":"Asin"},"description":"10-character Amazon ASIN"},{"name":"metric","in":"query","required":false,"schema":{"enum":["rank","price","reviews","rating"],"type":"string","description":"rank = store-wide Best Sellers Rank, price = USD, reviews = number of ratings, rating = stars","default":"rank","title":"Metric"},"description":"rank = store-wide Best Sellers Rank, price = USD, reviews = number of ratings, rating = stars"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":90,"title":"Days"},"description":"how many days back to look"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimate/sales":{"get":{"summary":"Estimated sales at a Best Sellers Rank","description":"What the curve behind every KDPTop estimate gives for a store-wide Best Sellers Rank: copies a day and in 30 days, the month's low-high range, and revenue when `price` is given. For a rank read off any Amazon book page, tracked by KDPTop or not. An ESTIMATE; Kindle Unlimited reads are not counted.","operationId":"estimateSales","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bsr","in":"query","required":true,"schema":{"type":"integer","maximum":20000000,"minimum":1,"description":"store-wide Best Sellers Rank (in Books, or in Kindle Store)","title":"Bsr"},"description":"store-wide Best Sellers Rank (in Books, or in Kindle Store)"},{"name":"store","in":"query","required":false,"schema":{"enum":["books","kindle"],"type":"string","default":"books","title":"Store"},"description":"books = print, kindle = Kindle eBooks"},{"name":"price","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"description":"the book's price in USD, to get revenue as well","title":"Price"},"description":"the book's price in USD, to get revenue as well"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opportunities":{"get":{"summary":"Rank niche categories by opportunity score","description":"Opportunity score 0-100 weighs low review barriers, list turnover, new-release share and price. Filter by store, keyword, depth, reviews, price.","operationId":"findOpportunities","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"enum":["books","kindle"],"type":"string"},{"type":"null"}],"title":"Store"},"description":"books = print, kindle = Kindle eBooks"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Keyword to restrict to matching categories","title":"Q"},"description":"Keyword to restrict to matching categories"},{"name":"min_depth","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":0,"default":1,"title":"Min Depth"},"description":"shallowest category level to include (1 = top level)"},{"name":"max_depth","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":0,"default":20,"title":"Max Depth"},"description":"deepest category level to include"},{"name":"leaf_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Leaf Only"},"description":"true = only categories without sub-categories"},{"name":"max_median_reviews","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Median Reviews"},"description":"only categories whose listed books have at most this median review count"},{"name":"min_median_price","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Median Price"},"description":"only categories whose listed books have at least this median price (USD)"},{"name":"sort","in":"query","required":false,"schema":{"enum":["score","reviews","price","turnover","new_ratio"],"type":"string","default":"score","title":"Sort"},"description":"what to order the rows by"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"},"description":"how many rows to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/breakouts":{"get":{"summary":"New releases that already reached a Best Sellers list, with each author's track record","description":"Books first seen on a New Releases list within `days` that already made a Best Sellers list. Each item has est. sales, BSR, the category it ranked best in, and `author_track` (books, books that reached Best Sellers, breakouts in 30 days) to tell a one-off from an author who keeps landing hits. Page with `offset`.","operationId":"getBreakouts","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"},"description":"how many days back to look"},{"name":"sort","in":"query","required":false,"schema":{"enum":["best_rank","first_best_at","first_new_release_at","sales","review_count"],"type":"string","default":"best_rank","title":"Sort"},"description":"what to order the rows by"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"},"description":"how many rows to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"},"description":"rows to skip, for paging"},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"enum":["books","kindle"],"type":"string"},{"type":"null"}],"title":"Store"},"description":"books = print, kindle = Kindle eBooks"},{"name":"root_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Root Id"},"description":"only books whose list category is inside this node's subtree"},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"description":"writing-direction codes, comma-separated (see /directions)"},{"name":"book_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Type"},"description":"AI book type codes, comma-separated (see /taxonomy)"},{"name":"age_band","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Band"},"description":"comma-separated: 0-2,3-5,6-8,9-12,13-17,adult"},{"name":"occasion","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occasion"},"description":"occasion codes, comma-separated (see /taxonomy), e.g. christmas"},{"name":"persona","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona"},"description":"persona codes, comma-separated (see /taxonomy), e.g. teachers"},{"name":"indie","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Indie"},"description":"true = KDP / self-published only"},{"name":"max_reviews","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Reviews"},"description":"only rows with at most this many reviews (median reviews for /segments)"},{"name":"min_price","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Price"},"description":"lowest price (USD)"},{"name":"max_price","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Price"},"description":"highest price (USD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/movers":{"get":{"summary":"Biggest rank gains on category lists since the previous day","description":"Each list's latest snapshot against its previous day's; gain = places climbed. Same filters as /breakouts, plus `author_track` per book.","operationId":"getMovers","security":[{"HTTPBearer":[]}],"parameters":[{"name":"list_type","in":"query","required":false,"schema":{"enum":["best","new","free"],"type":"string","default":"best","title":"List Type"},"description":"best = Best Sellers, new = New Releases, free = Top 100 Free (Kindle only)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"},"description":"how many rows to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"},"description":"rows to skip, for paging"},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"enum":["books","kindle"],"type":"string"},{"type":"null"}],"title":"Store"},"description":"books = print, kindle = Kindle eBooks"},{"name":"root_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Root Id"},"description":"only books whose list category is inside this node's subtree"},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"description":"writing-direction codes, comma-separated (see /directions)"},{"name":"book_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Type"},"description":"AI book type codes, comma-separated (see /taxonomy)"},{"name":"age_band","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Band"},"description":"comma-separated: 0-2,3-5,6-8,9-12,13-17,adult"},{"name":"occasion","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occasion"},"description":"occasion codes, comma-separated (see /taxonomy), e.g. christmas"},{"name":"persona","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona"},"description":"persona codes, comma-separated (see /taxonomy), e.g. teachers"},{"name":"indie","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Indie"},"description":"true = KDP / self-published only"},{"name":"max_reviews","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Reviews"},"description":"only rows with at most this many reviews (median reviews for /segments)"},{"name":"min_price","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Price"},"description":"lowest price (USD)"},{"name":"max_price","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Price"},"description":"highest price (USD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/categories/{node_id}/extended":{"get":{"summary":"Category ranks 101-10,000 by Amazon sales rank (beyond the official Top 100)","description":"Available for categories whose deep ranking is verified. Books currently in the official Top 100 are left out, so ranks can skip. Items carry est. sales, BSR and publication date; uncatalogued books come back with rank and ASIN only (`pending`).","operationId":"getExtendedRanks","security":[{"HTTPBearer":[]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"},"description":"Amazon category (browse node) id; find one with /categories/search"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"},"description":"how many rows to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"},"description":"rows to skip, for paging"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/decision-card":{"get":{"summary":"The 30-day decision card for a category or writing direction: enter / compete / watch / avoid","description":"Verdict with reasons (each with numbers), price band, review barrier, Top 100 median daily sales, new books breaking in, list churn, a royalty estimate and the twin format. Pass `node_id` or `direction`. When the verdict is `go` but the list's median review count is high or the opportunity score is low, `suits` says who the verdict is for (`go` is not `easy`). Free plans get the verdict and headline numbers only.","operationId":"getDecisionCard","security":[{"HTTPBearer":[]}],"parameters":[{"name":"node_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Node Id"},"description":"Amazon category (browse node) id; find one with /categories/search"},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"writing-direction code, see /directions","title":"Direction"},"description":"writing-direction code, see /directions"},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"enum":["books","kindle"],"type":"string"},{"type":"null"}],"title":"Store"},"description":"books = print, kindle = Kindle eBooks"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionCard"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/directions":{"get":{"summary":"Writing directions (cozy mystery, romantasy, kids coloring...) with their category nodes","operationId":"listDirections","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/authors":{"get":{"summary":"Search and rank authors (pen names merged by Amazon Author ID)","description":"Books, 30/7-day list appearances, best rank, new releases, breakouts, price band, median reviews, review velocity, est. sales, indie share, main book types and categories.","operationId":"findAuthors","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"name or Amazon Author ID","title":"Q"},"description":"name or Amazon Author ID"},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"enum":["books","kindle"],"type":"string"},{"type":"null"}],"title":"Store"},"description":"books = print, kindle = Kindle eBooks"},{"name":"book_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Type"},"description":"AI book type codes, comma-separated (see /taxonomy)"},{"name":"indie","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Indie"},"description":"true = KDP / self-published only"},{"name":"min_books","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Books"},"description":"only authors with at least this many tracked books"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"appearances, rising, sales, velocity, books, best_rank, reviews","default":"appearances","title":"Sort"},"description":"appearances, rising, sales, velocity, books, best_rank, reviews"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"},"description":"how many rows to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"},"description":"rows to skip, for paging"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/authors/compare":{"get":{"summary":"Compare 2-5 authors side by side","description":"Output, hit rate (works that reached Best Sellers), release trend (last 90 days vs the 90 before), days to Best Sellers, sales, price band, main book types and categories.","operationId":"compareAuthors","security":[{"HTTPBearer":[]}],"parameters":[{"name":"keys","in":"query","required":true,"schema":{"type":"string","maxLength":500,"description":"comma-separated author keys or Amazon Author IDs","title":"Keys"},"description":"comma-separated author keys or Amazon Author IDs"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/authors/{key}":{"get":{"summary":"Author detail: metrics, top categories, tracked books with est. sales, author-store catalog","operationId":"getAuthor","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"},"description":"author key from /authors, or an Amazon Author ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/authors/{key}/timeline":{"get":{"summary":"Author timeline: every work (editions merged) by release date and when it reached Best Sellers","description":"Summary: works, release trend (accelerating / steady / slowing), hit rate overall and in the last 12 months, median days to Best Sellers, releases by month and book types by year; then the works, newest first, each with its editions (Kindle / paperback / hardcover), best rank and est. sales; and recent author-store additions.","operationId":"getAuthorTimeline","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"},"description":"author key from /authors, or an Amazon Author ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":60,"title":"Limit"},"description":"how many rows to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feed":{"get":{"summary":"New events about what you follow: authors' new books and Best Sellers entries, lists, categories","description":"group: author (followed authors' new releases, first Best Sellers, price changes), line (followed categories / directions: new releases, breakouts; keyword swings), list (followed Top 100: entered, dropped, jumped), market (store-wide breakouts and movers). Page with `before` = the previous response's `next`. An event about a book carries `book`: its type, pages, reviews, rating, publication date and `monthly_units` (estimated; null until the book has a month of history).","operationId":"getFeed","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group","in":"query","required":false,"schema":{"anyOf":[{"enum":["author","line","list","market"],"type":"string"},{"type":"null"}],"title":"Group"},"description":"author, line, list or market; default all groups"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Before"},"description":"the previous response's `next`, to read older events"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":40,"title":"Limit"},"description":"how many rows to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/follows":{"post":{"summary":"Follow or unfollow an author, book, category, keyword or list (feeds /feed and site alerts)","operationId":"setFollow","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/usage":{"get":{"summary":"Today's API quota: used, remaining, reset time, calls by channel and endpoint (not counted)","operationId":"getUsage","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/kdp/resolve":{"get":{"summary":"Map an Amazon link, ASIN/ISBN, node id or keywords to KDP backend categories","description":"Storefront browse nodes and KDP picker nodes share ids. Accepts Best Sellers / New Releases / search (`rh=n:`) / `node=` URLs, product URLs, ASIN or ISBN (returns the competitor's placement leaves), a node id, or free keywords (fuzzy). Each node has `kdp_path` (e.g. `Books › Children's Books › ...`), `selectable` (whether KDP lets you tick it), list metrics and the twin node in the other format.","operationId":"resolveKdpCategory","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":2000,"title":"Q"},"description":"search text"},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"enum":["books","kindle"],"type":"string"},{"type":"null"}],"title":"Store"},"description":"books = print, kindle = Kindle eBooks"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kdp/recommend":{"post":{"summary":"Recommend KDP categories for a book description","description":"Describe the book (type, age group, theme, format; any language). Returns up to 10 selectable KDP placements with fit 0-100, reasons, list competition metrics and twins: categories that name the book's own kind and reader first (`match: direct`), then ones where only the subject overlaps (`match: adjacent`, with the condition in `only_if_zh`). `use_ai=false` skips the LLM step.","operationId":"recommendKdpCategories","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_recommendKdpCategories"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Placements"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/kdp/keywords":{"post":{"summary":"Suggest the 7 KDP backend keyword slots for a title","description":"Pass the title, subtitle and/or description. Returns up to 7 phrases (each fits KDP's 50-character slot) from the Amazon search keyword library that fit the book the text describes: searches for the same kind of book, adding only who it is for or what it is used for, never a subject, occasion, format or product the text does not name. `adds` lists the words a phrase brings that the text lacks (empty: every word is the text's own). Fewer than 7 items mean no more phrases fit; `searches` is an estimated monthly search volume.","operationId":"suggestKdpKeywords","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_suggestKdpKeywords"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeywordPicks"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/categories/{node_id}/profile":{"get":{"summary":"AI profile of a category: book types, ages, audiences, expertise, opportunities","description":"Built from AI tags of the books on the category's Best Sellers and New Releases lists. Includes summary_zh, fit_types, audiences, expertise, kdp_fit, entry_barrier, opportunities, avoid, the BS vs NR distributions (stats) and segments (book type x age band with score 0-100). Free plans get a reduced view.","operationId":"getCategoryProfile","security":[{"HTTPBearer":[]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"},"description":"Amazon category (browse node) id; find one with /categories/search"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/segments":{"get":{"summary":"Rank book type x age band opportunities across categories","description":"Each row is one (category, book_type, age_band) from the latest lists: Best Sellers / New Releases counts and shares, momentum (NR share - BS share: what publishers are moving into), estimated daily sales, median reviews/price/pages, indie share, newcomers, KDP feasibility and score 0-100. book_type codes: see /taxonomy.","operationId":"findSegments","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"enum":["books","kindle"],"type":"string"},{"type":"null"}],"title":"Store"},"description":"books = print, kindle = Kindle eBooks"},{"name":"book_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"comma-separated codes, e.g. coloring,word_search","title":"Book Type"},"description":"comma-separated codes, e.g. coloring,word_search"},{"name":"age_band","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"comma-separated: 0-2,3-5,6-8,9-12,13-17,adult","title":"Age Band"},"description":"comma-separated: 0-2,3-5,6-8,9-12,13-17,adult"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"restrict to categories matching a keyword","title":"Q"},"description":"restrict to categories matching a keyword"},{"name":"root_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"restrict to a category subtree","title":"Root Id"},"description":"restrict to a category subtree"},{"name":"min_score","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Score"},"description":"only rows with at least this score (0-100)"},{"name":"max_reviews","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Reviews"},"description":"only rows with at most this many reviews (median reviews for /segments)"},{"name":"feasible_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Feasible Only"},"description":"true = only book types one person can make and publish through KDP"},{"name":"sort","in":"query","required":false,"schema":{"enum":["score","momentum","demand","reviews","newcomers","searches"],"type":"string","default":"score","title":"Sort"},"description":"what to order the rows by"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"},"description":"how many rows to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/keywords":{"get":{"summary":"Amazon search keywords with monthly searches, growth and competition","description":"Keyword library: monthly searches, purchase rate, growth, number of competing products, title mining hits and AI tags. Sort by searches, growth, score or title_hits.","operationId":"searchKeywords","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"substring, e.g. 'coloring book'","title":"Q"},"description":"substring, e.g. 'coloring book'"},{"name":"sort","in":"query","required":false,"schema":{"enum":["searches","growth","score","title_hits"],"type":"string","default":"searches","title":"Sort"},"description":"what to order the rows by"},{"name":"book_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"book type code, see /taxonomy","title":"Book Type"},"description":"book type code, see /taxonomy"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"},"description":"how many rows to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"},"description":"rows to skip, for paging"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/keywords/{kw}":{"get":{"summary":"Keyword detail: search trend, related terms and charted books whose titles match","operationId":"getKeyword","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kw","in":"path","required":true,"schema":{"type":"string","title":"Kw"},"description":"the keyword, URL-encoded"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy":{"get":{"summary":"Book type, age band, audience, occasion and persona codes used by AI tags","operationId":"getTaxonomy","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/products/{asin}/analysis":{"post":{"summary":"AI single-book analysis: positioning, why it sells, what to learn, differentiation, risks, verdict","description":"Cached per ASIN for 7 days (cached results are free); a new analysis counts toward the daily AI quota.","operationId":"analyzeProduct","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asin","in":"path","required":true,"schema":{"type":"string","title":"Asin"},"description":"10-character Amazon ASIN"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisBody","default":{"refresh":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AnalysisBody":{"properties":{"page":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Page","description":"What the Amazon page shows: title, price, pages, category ranks"},"refresh":{"type":"boolean","title":"Refresh","description":"true = analyze again instead of returning the cached analysis","default":false}},"type":"object","title":"AnalysisBody"},"BatchItem":{"properties":{"asin":{"type":"string","maxLength":20,"title":"Asin","description":"10-character ASIN; invalid ones are skipped"},"bsr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bsr","description":"Best Sellers Rank shown on the page, for a live estimate"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price","description":"Price shown on the page (USD)"},"store":{"anyOf":[{"type":"string","enum":["books","kindle"]},{"type":"null"}],"title":"Store","description":"books = print, kindle = Kindle eBooks (for untracked books)"}},"type":"object","required":["asin"],"title":"BatchItem"},"Body_getBooksBatch":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BatchItem"},"type":"array","maxItems":50,"title":"Items","description":"the books, 50 at most"}},"type":"object","required":["items"],"title":"Body_getBooksBatch"},"Body_recommendKdpCategories":{"properties":{"text":{"type":"string","maxLength":3000,"minLength":2,"title":"Text","description":"the book in a sentence or two: type, age group, theme, format; any language"},"store":{"anyOf":[{"type":"string","enum":["books","kindle"]},{"type":"null"}],"title":"Store","description":"books = print, kindle = Kindle eBooks"},"use_ai":{"type":"boolean","title":"Use Ai","description":"false = keyword matching only, no AI call","default":true}},"type":"object","required":["text"],"title":"Body_recommendKdpCategories"},"Body_suggestKdpKeywords":{"properties":{"text":{"type":"string","maxLength":3000,"minLength":2,"title":"Text","description":"the title, subtitle and/or description of the book"}},"type":"object","required":["text"],"title":"Body_suggestKdpKeywords"},"Book":{"properties":{"asin":{"type":"string","title":"Asin","description":"Amazon ASIN"},"store":{"anyOf":[{"type":"string","enum":["books","kindle"]},{"type":"null"}],"title":"Store","description":"books = print, kindle = Kindle eBooks"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format","description":"format as Amazon names it (Paperback, Kindle Edition, ...)"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price","description":"OBSERVED, USD: latest price seen; null when none was shown"},"rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rating","description":"OBSERVED: star rating, 1-5; null when the book has no ratings"},"review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Count","description":"OBSERVED: number of ratings; null when none"},"best_rank_ever":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Best Rank Ever","description":"OBSERVED: best position on any tracked list"},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At","description":"first time KDPTop saw the book on a list (UTC)"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At","description":"latest time KDPTop saw the book on a list (UTC)"},"first_new_release_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First New Release At","description":"first time on a New Releases list; null if never"},"first_best_seller_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Best Seller At","description":"first time on a Best Sellers list; null if never"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"the book's page on Amazon"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"cover image"},"est_daily_sales":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Est Daily Sales","description":"ESTIMATE: copies a day; null when there is no estimate"},"est_monthly_units":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Est Monthly Units","description":"ESTIMATE: copies in 30 days"},"est_monthly_revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Est Monthly Revenue","description":"ESTIMATE, USD: retail revenue in 30 days, not royalty"},"sales_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sales Rank","description":"OBSERVED: Best Sellers Rank in the whole store; null when not collected"},"publication_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Publication Date"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"book_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Type","description":"JUDGEMENT (AI tag): book type code, see /taxonomy"},"age_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Band","description":"JUDGEMENT (AI tag): age band code, see /taxonomy"},"author_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Key","description":"key for /authors/{key}"},"author_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Id","description":"Amazon Author ID"}},"additionalProperties":true,"type":"object","required":["asin"],"title":"Book"},"BookDetail":{"properties":{"asin":{"type":"string","title":"Asin","description":"Amazon ASIN"},"store":{"anyOf":[{"type":"string","enum":["books","kindle"]},{"type":"null"}],"title":"Store","description":"books = print, kindle = Kindle eBooks"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format","description":"format as Amazon names it (Paperback, Kindle Edition, ...)"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price","description":"OBSERVED, USD: latest price seen; null when none was shown"},"rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rating","description":"OBSERVED: star rating, 1-5; null when the book has no ratings"},"review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Count","description":"OBSERVED: number of ratings; null when none"},"best_rank_ever":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Best Rank Ever","description":"OBSERVED: best position on any tracked list"},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At","description":"first time KDPTop saw the book on a list (UTC)"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At","description":"latest time KDPTop saw the book on a list (UTC)"},"first_new_release_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First New Release At","description":"first time on a New Releases list; null if never"},"first_best_seller_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Best Seller At","description":"first time on a Best Sellers list; null if never"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"the book's page on Amazon"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"cover image"},"est_daily_sales":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Est Daily Sales","description":"ESTIMATE: copies a day; null when there is no estimate"},"est_monthly_units":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Est Monthly Units","description":"ESTIMATE: copies in 30 days"},"est_monthly_revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Est Monthly Revenue","description":"ESTIMATE, USD: retail revenue in 30 days, not royalty"},"sales_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sales Rank","description":"OBSERVED: Best Sellers Rank in the whole store; null when not collected"},"publication_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Publication Date"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"book_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Type","description":"JUDGEMENT (AI tag): book type code, see /taxonomy"},"age_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Band","description":"JUDGEMENT (AI tag): age band code, see /taxonomy"},"author_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Key","description":"key for /authors/{key}"},"author_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Id","description":"Amazon Author ID"},"history_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"History Days","description":"days of history in this answer (capped by plan)"},"rankings":{"items":{"$ref":"#/components/schemas/Ranking"},"type":"array","title":"Rankings","description":"one entry per list the book was on"},"market":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Market","description":"OBSERVED: sales_rank and its 30/90/180-day averages, rank_drops30 / rank_drops90, price_amazon / price_new / price_list (USD), page_count, publisher, publication_date, binding, language; null when not collected yet"},"sales":{"anyOf":[{"$ref":"#/components/schemas/Sales"},{"type":"null"}],"description":"the sales estimate; null when the book has none"},"search_keywords":{"anyOf":[{"$ref":"#/components/schemas/SearchKeywords"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["asin"],"title":"BookDetail"},"BookList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Book"},"type":"array","title":"Items"}},"additionalProperties":true,"type":"object","required":["items"],"title":"BookList"},"Category":{"properties":{"node_id":{"type":"integer","title":"Node Id","description":"Amazon browse node id"},"store":{"type":"string","enum":["books","kindle"],"title":"Store","description":"books = print, kindle = Kindle eBooks"},"name":{"type":"string","title":"Name","description":"category name as Amazon shows it"},"name_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Zh","description":"Simplified Chinese name; null when not translated"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path","description":"full path from the store root, ' > ' between levels"},"path_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Zh","description":"the path in Simplified Chinese; null when not translated"},"depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Depth","description":"levels below the store root"},"is_leaf":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Leaf","description":"true when the category has no sub-categories"},"opportunity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Opportunity Score","description":"JUDGEMENT, 0-100: KDPTop's opportunity score of the category's Best Sellers list; null when the list has no metrics yet"},"lists":{"items":{"type":"string"},"type":"array","title":"Lists","description":"list types this store has: best, new, free"},"amazon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Url","description":"the category's Best Sellers list on Amazon"}},"additionalProperties":true,"type":"object","required":["node_id","store","name"],"title":"Category"},"CategoryDetail":{"properties":{"node_id":{"type":"integer","title":"Node Id","description":"Amazon browse node id"},"store":{"type":"string","enum":["books","kindle"],"title":"Store","description":"books = print, kindle = Kindle eBooks"},"name":{"type":"string","title":"Name","description":"category name as Amazon shows it"},"name_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Zh","description":"Simplified Chinese name; null when not translated"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path","description":"full path from the store root, ' > ' between levels"},"path_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Zh","description":"the path in Simplified Chinese; null when not translated"},"depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Depth","description":"levels below the store root"},"is_leaf":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Leaf","description":"true when the category has no sub-categories"},"opportunity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Opportunity Score","description":"JUDGEMENT, 0-100: KDPTop's opportunity score of the category's Best Sellers list; null when the list has no metrics yet"},"lists":{"items":{"type":"string"},"type":"array","title":"Lists","description":"list types this store has: best, new, free"},"amazon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Url","description":"the category's Best Sellers list on Amazon"},"metrics":{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/ListMetrics"},{"type":"null"}]},"type":"object","title":"Metrics","description":"latest figures per list type (best, new, free)"},"breadcrumb":{"items":{"type":"object"},"type":"array","title":"Breadcrumb","description":"the path as nodes: node_id, name, name_zh"},"children":{"items":{"$ref":"#/components/schemas/Category"},"type":"array","title":"Children","description":"sub-categories with a list, best score first"},"child_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Child Count","description":"number of sub-categories"}},"additionalProperties":true,"type":"object","required":["node_id","store","name"],"title":"CategoryDetail"},"CategoryList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Category"},"type":"array","title":"Items"}},"additionalProperties":true,"type":"object","required":["items"],"title":"CategoryList"},"DecisionCard":{"properties":{"node_id":{"type":"integer","title":"Node Id"},"store":{"type":"string","enum":["books","kindle"],"title":"Store"},"name":{"type":"string","title":"Name"},"name_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Zh"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"path_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Zh"},"list_node_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"List Node Id","description":"the node whose list the figures are from (a category without a list of its own borrows its parent's)"},"as_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"As Of","description":"day of the figures, YYYY-MM-DD"},"available":{"type":"boolean","title":"Available","description":"false when the category has no list data yet; the fields below are then absent"},"tracked_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tracked Days","description":"days of history KDPTop has of this list"},"sample":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample","description":"books the figures are taken over"},"low_sample":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Low Sample","description":"true when the sample is under 20 books: the verdict is then `watch` whatever the numbers say"},"short_history":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Short History","description":"true while there are fewer than 30 days of history"},"verdict":{"anyOf":[{"type":"string","enum":["go","crowded","watch","avoid"]},{"type":"null"}],"title":"Verdict","description":"JUDGEMENT by fixed rules: go = books sell and new ones get in (not `easy`, see `suits`); crowded = strong demand behind high review counts; watch = mixed or too little data; avoid = thin demand or a closed list"},"reasons":{"anyOf":[{"items":{"$ref":"#/components/schemas/Reason"},"type":"array"},{"type":"null"}],"title":"Reasons","description":"the three rules that weighed most, with their numbers"},"suits":{"anyOf":[{"$ref":"#/components/schemas/Suits"},{"type":"null"}],"description":"who a `go` is for, when the list is not an easy one; else null"},"price":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Price","description":"OBSERVED, USD: p25, median, p75 of the list"},"reviews":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Reviews","description":"OBSERVED: median (reviews) and under100_share (0-1)"},"demand":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Demand","description":"ESTIMATE: median_daily_units = median copies a day of the books on the list; null when no book has an estimate"},"income":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Income","description":"ESTIMATE, USD: royalty of a median book (format, pages, per_copy, monthly_units, monthly_royalty). An illustration at the median price and median sales, not a forecast for a new book"},"breakouts":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Breakouts","description":"OBSERVED: count of recently published books on the list, the days looked at, and up to three of them"},"churn":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Churn","description":"OBSERVED: dropped = books that left the list in `days` days"},"score":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Score","description":"JUDGEMENT: value (0-100), raw, confidence, components, weights"},"twin":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Twin","description":"the same category in the other format, with its verdict; null if none"},"unlocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unlocked","description":"false when your plan got the short card"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint","description":"how to get the full card, when locked"}},"additionalProperties":true,"type":"object","required":["node_id","store","name","available"],"title":"DecisionCard","description":"The 30-day card of a category. On a plan that has not unlocked the category only the verdict and headline\ncounts are present (`locked: true`)."},"FollowRequest":{"properties":{"kind":{"type":"string","enum":["author","product","category","keyword","list"],"title":"Kind","description":"what `ref` is"},"ref":{"type":"string","maxLength":200,"title":"Ref","description":"author key / Author ID, ASIN, node id, keyword, or node:best"},"on":{"type":"boolean","title":"On","description":"false = unfollow","default":true}},"type":"object","required":["kind","ref"],"title":"FollowRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KeywordPick":{"properties":{"keyword":{"type":"string","title":"Keyword","description":"a phrase people search Amazon with; fits KDP's 50-character slot"},"searches":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Searches","description":"ESTIMATE: monthly searches on Amazon US; null when not known"},"growth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Growth","description":"ESTIMATE: change of the search volume against the month before, as a fraction; null when not known"},"products":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Products","description":"OBSERVED: results Amazon lists for the search; null when not known"},"month":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month","description":"the month the volume is of"},"adds":{"items":{"type":"string"},"type":"array","title":"Adds","description":"words the phrase brings that the text lacks; empty when every word is the text's own"}},"additionalProperties":true,"type":"object","required":["keyword"],"title":"KeywordPick"},"KeywordPicks":{"properties":{"items":{"items":{"$ref":"#/components/schemas/KeywordPick"},"type":"array","title":"Items","description":"up to 7; fewer when no more phrases fit the book"}},"additionalProperties":true,"type":"object","required":["items"],"title":"KeywordPicks"},"ListCategory":{"properties":{"node_id":{"type":"integer","title":"Node Id"},"name":{"type":"string","title":"Name"},"name_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Zh"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"store":{"type":"string","enum":["books","kindle"],"title":"Store"}},"additionalProperties":true,"type":"object","required":["node_id","name","store"],"title":"ListCategory"},"ListItem":{"properties":{"asin":{"type":"string","title":"Asin","description":"Amazon ASIN"},"store":{"anyOf":[{"type":"string","enum":["books","kindle"]},{"type":"null"}],"title":"Store","description":"books = print, kindle = Kindle eBooks"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format","description":"format as Amazon names it (Paperback, Kindle Edition, ...)"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price","description":"OBSERVED, USD: latest price seen; null when none was shown"},"rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rating","description":"OBSERVED: star rating, 1-5; null when the book has no ratings"},"review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Count","description":"OBSERVED: number of ratings; null when none"},"best_rank_ever":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Best Rank Ever","description":"OBSERVED: best position on any tracked list"},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At","description":"first time KDPTop saw the book on a list (UTC)"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At","description":"latest time KDPTop saw the book on a list (UTC)"},"first_new_release_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First New Release At","description":"first time on a New Releases list; null if never"},"first_best_seller_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Best Seller At","description":"first time on a Best Sellers list; null if never"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"the book's page on Amazon"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"cover image"},"est_daily_sales":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Est Daily Sales","description":"ESTIMATE: copies a day; null when there is no estimate"},"est_monthly_units":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Est Monthly Units","description":"ESTIMATE: copies in 30 days"},"est_monthly_revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Est Monthly Revenue","description":"ESTIMATE, USD: retail revenue in 30 days, not royalty"},"sales_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sales Rank","description":"OBSERVED: Best Sellers Rank in the whole store; null when not collected"},"publication_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Publication Date"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"book_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Type","description":"JUDGEMENT (AI tag): book type code, see /taxonomy"},"age_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Band","description":"JUDGEMENT (AI tag): age band code, see /taxonomy"},"author_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Key","description":"key for /authors/{key}"},"author_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Id","description":"Amazon Author ID"},"rank":{"type":"integer","title":"Rank","description":"OBSERVED: position on the list in this snapshot"},"prev_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prev Rank","description":"OBSERVED: position in the previous day's snapshot; null = new on the list"}},"additionalProperties":true,"type":"object","required":["asin","rank"],"title":"ListItem"},"ListMetrics":{"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date","description":"day of the snapshot the figures are from"},"entries":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entries","description":"books on the list that day"},"carded":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Carded","description":"books with a readable title, price and review count: the sample the medians are taken over"},"median_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Price","description":"OBSERVED, USD: median price on the list"},"price_p25":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price P25","description":"OBSERVED, USD: 25th percentile of the price"},"price_p75":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price P75","description":"OBSERVED, USD: 75th percentile of the price"},"median_reviews":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Reviews","description":"OBSERVED: median number of reviews"},"avg_rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Rating","description":"OBSERVED: mean star rating, 1-5"},"low_review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Low Review Count","description":"OBSERVED: books with fewer than 100 reviews"},"new_entries":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"New Entries","description":"OBSERVED: books not on the previous snapshot; null on the first day"},"top100_turnover":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top100 Turnover","description":"OBSERVED, 0-1: new_entries / entries; null on the first day"},"new_release_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"New Release Ratio","description":"OBSERVED, 0-1: share of the list seen on a New Releases list in the last 30 days (Best Sellers only)"},"kdp_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kdp Share","description":"JUDGEMENT, 0-1: share of priced books whose publisher reads as self-published"},"opportunity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Opportunity Score","description":"JUDGEMENT, 0-100: weighs low review barriers, list turnover, new-release share, price and demand; pulled towards 50 when the sample is small"},"score_raw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Raw","description":"the score before it is pulled towards 50 for a small sample"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence","description":"0-1: how full the sample is (carded books against a full list)"},"components":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Components","description":"the score's inputs, each 0-1"}},"additionalProperties":true,"type":"object","title":"ListMetrics","description":"One day's figures of a category list. Counts and medians are of the books on the list (at most 100)."},"ListSnapshot":{"properties":{"category":{"$ref":"#/components/schemas/ListCategory"},"list_type":{"type":"string","title":"List Type","description":"best, new or free"},"captured_at":{"type":"string","format":"date-time","title":"Captured At","description":"when this snapshot was taken (UTC)"},"previous_captured_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Captured At","description":"the snapshot prev_rank is from; null when none"},"amazon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Url","description":"the list on Amazon"},"items":{"items":{"$ref":"#/components/schemas/ListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"books on the list"},"locked":{"type":"boolean","title":"Locked","description":"true when your plan returned fewer rows than asked"}},"additionalProperties":true,"type":"object","required":["category","list_type","captured_at","items","total","locked"],"title":"ListSnapshot"},"Opportunity":{"properties":{"node_id":{"type":"integer","title":"Node Id"},"store":{"type":"string","enum":["books","kindle"],"title":"Store"},"name":{"type":"string","title":"Name"},"name_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Zh"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"path_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Zh"},"depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Depth"},"is_leaf":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Leaf"},"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date","description":"day of the figures"},"opportunity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Opportunity Score","description":"JUDGEMENT, 0-100"},"median_reviews":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Reviews","description":"OBSERVED: median reviews on the Best Sellers list"},"median_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Price","description":"OBSERVED, USD"},"avg_rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Rating"},"low_review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Low Review Count","description":"OBSERVED: books on the list with fewer than 100 reviews"},"top100_turnover":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top100 Turnover","description":"OBSERVED, 0-1: share of the list new since the day before"},"new_release_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"New Release Ratio","description":"OBSERVED, 0-1"},"kdp_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kdp Share","description":"JUDGEMENT, 0-1: share that reads as self-published"},"amazon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Url"},"explain":{"anyOf":[{"$ref":"#/components/schemas/ScoreExplain"},{"type":"null"}],"description":"the score with its inputs, weights and sample size"}},"additionalProperties":true,"type":"object","required":["node_id","store","name"],"title":"Opportunity"},"OpportunityList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Opportunity"},"type":"array","title":"Items"}},"additionalProperties":true,"type":"object","required":["items"],"title":"OpportunityList"},"Placement":{"properties":{"node_id":{"type":"integer","title":"Node Id"},"store":{"type":"string","enum":["books","kindle"],"title":"Store"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"kdp_path":{"type":"string","title":"Kdp Path","description":"the path to click through in KDP's category picker"},"kdp_path_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kdp Path Zh"},"selectable":{"type":"boolean","title":"Selectable","description":"false for a parent level KDP does not let a book be filed in"},"has_list":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has List","description":"true when the category has a public Best Sellers list"},"fit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fit","description":"JUDGEMENT, 0-100: how well the category fits the description"},"match":{"anyOf":[{"type":"string","enum":["direct","adjacent"]},{"type":"null"}],"title":"Match","description":"JUDGEMENT: direct = the category names the book's own kind and reader; adjacent = only the subject overlaps, pick it only when `only_if_zh` holds"},"reason_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Zh","description":"why, in Simplified Chinese"},"only_if_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Only If Zh","description":"for an adjacent match: what the book must have for the category to fit (Simplified Chinese); empty otherwise"},"similar_books":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Similar Books","description":"OBSERVED: books of the same type KDPTop saw in this category"},"opportunity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Opportunity Score","description":"JUDGEMENT, 0-100; null without list metrics"},"list":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"List","description":"the list the competition figures are from: node_id, kdp_path, same_node, best_url, new_url, metrics"},"twin":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Twin","description":"the same category in the other format; null if none"}},"additionalProperties":true,"type":"object","required":["node_id","store","kdp_path","selectable"],"title":"Placement"},"Placements":{"properties":{"understood":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Understood","description":"JUDGEMENT (AI): how the description was read (book_type, ages, audience, themes, search_terms); null without AI"},"recommendations":{"items":{"$ref":"#/components/schemas/Placement"},"type":"array","title":"Recommendations","description":"direct matches first, then adjacent ones"},"notes_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes Zh","description":"overall advice, Simplified Chinese; null without AI"},"ai":{"type":"boolean","title":"Ai","description":"true when a language model ranked the candidates"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"candidates":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Candidates","description":"categories considered"}},"additionalProperties":true,"type":"object","required":["recommendations","ai"],"title":"Placements"},"RankDay":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"rank":{"type":"integer","title":"Rank","description":"OBSERVED: best position on the list that day"},"review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Count","description":"OBSERVED: reviews that day"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price","description":"OBSERVED, USD: price that day"}},"additionalProperties":true,"type":"object","required":["date","rank"],"title":"RankDay"},"Ranking":{"properties":{"node_id":{"type":"integer","title":"Node Id"},"list_type":{"type":"string","title":"List Type","description":"best, new or free"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"path_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Zh"},"daily":{"items":{"$ref":"#/components/schemas/RankDay"},"type":"array","title":"Daily","description":"one row per day the book was on the list"}},"additionalProperties":true,"type":"object","required":["node_id","list_type"],"title":"Ranking"},"Reason":{"properties":{"code":{"type":"string","title":"Code","description":"which rule fired, e.g. demand_strong, reviews_high, breakouts, churn_frozen"},"points":{"type":"integer","title":"Points","description":"what the rule adds to or takes from the verdict's points"}},"additionalProperties":true,"type":"object","required":["code","points"],"title":"Reason"},"Sales":{"properties":{"bsr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bsr","description":"Best Sellers Rank the estimate is based on"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"observed = a rank read from Amazon; list = worked out from list positions (less certain); live = from the values the caller sent"},"bsr_observed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bsr Observed","description":"the rank when it was read from Amazon, else null"},"bsr_estimated":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bsr Estimated","description":"the rank when it was worked out from list positions, else null"},"daily_units":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Units","description":"ESTIMATE: copies sold a day"},"monthly_units":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Units","description":"ESTIMATE: copies sold in 30 days"},"monthly_units_lo":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Units Lo","description":"ESTIMATE: low end of the range the monthly figure lies in"},"monthly_units_hi":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Units Hi","description":"ESTIMATE: high end of that range"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price","description":"price the revenue is worked out with, USD; null when not known"},"daily_revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Revenue","description":"ESTIMATE, USD: retail revenue a day (units x price), not author royalty"},"monthly_revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Monthly Revenue","description":"ESTIMATE, USD: retail revenue in 30 days, not royalty"},"royalty_unit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Royalty Unit","description":"ESTIMATE, USD: royalty per copy under KDP's current rules; null when the format or page count is not known"},"monthly_royalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Monthly Royalty","description":"ESTIMATE, USD: royalty in 30 days"},"monthly_royalty_lo":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Monthly Royalty Lo","description":"ESTIMATE, USD: low end of the monthly royalty range"},"monthly_royalty_hi":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Monthly Royalty Hi","description":"ESTIMATE, USD: high end of that range"},"history_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"History Days","description":"days of rank history behind the estimate"},"month_ready":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Month Ready","description":"false while the monthly figure is still building up"},"confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence","description":"A, B or C: how far to trust the estimate (A = a fresh observed rank; C = an old rank or one worked out from list positions)"},"flags":{"items":{"type":"string"},"type":"array","title":"Flags","description":"notes on the estimate, e.g. free_promo: the book was free, so units are downloads, not sales"},"stale":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stale","description":"true when the observed rank is over 7 days old"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"version of the sales model the figures come from"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"when the estimate was last worked out (UTC)"},"estimated":{"type":"boolean","title":"Estimated","description":"always true: every figure in this object is an estimate","default":true}},"additionalProperties":true,"type":"object","title":"Sales","description":"KDPTop's sales estimate of one book. Every figure is an estimate from the book's rank; none is a sale\nAmazon reported."},"ScoreExplain":{"properties":{"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"JUDGEMENT, 0-100: the opportunity score"},"score_raw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Raw"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence","description":"0-1: how full the sample is"},"low_sample":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Low Sample","description":"true when the sample is too small to lean on the score"},"sample":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample","description":"books the figures are taken over"},"components":{"type":"object","title":"Components","description":"the score's inputs, each 0-1"},"weights":{"type":"object","title":"Weights","description":"weight of each input"},"price_band":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Price Band","description":"USD: 25th and 75th percentile of price"},"median_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Price"},"median_reviews":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Reviews"},"turnover":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Turnover"},"new_release_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"New Release Ratio"}},"additionalProperties":true,"type":"object","title":"ScoreExplain"},"SearchKeywords":{"properties":{"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total","description":"searches the book was found in"},"first_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Page","description":"of those, searches where it was on the first page"},"seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seen At","description":"latest observation"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated","description":"true when your plan returned fewer rows than there are"},"items":{"items":{"type":"object"},"type":"array","title":"Items","description":"keyword, store, organic_rank, page, ad_pos (a sampled observation: sponsored slots rotate), searches (ESTIMATE: monthly search volume), seen_at"}},"additionalProperties":true,"type":"object","title":"SearchKeywords","description":"Amazon searches the book was found in, from KDPTop's own crawl of search pages."},"Suits":{"properties":{"codes":{"items":{"type":"string"},"type":"array","title":"Codes","description":"why a `go` is qualified: reviews (the list's median review count is high), score (the opportunity score is low)"},"reviews":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reviews","description":"the median review count; absent on a locked card"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"the opportunity score; absent on a locked card"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"the same in a sentence"}},"additionalProperties":true,"type":"object","required":["codes"],"title":"Suits"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"KDPTop API key (kdp_...)","scheme":"bearer"}}}}