{"openapi":"3.1.0","info":{"title":"Resale IQ API","version":"1.0.0","description":"Vinted resale data for Spain, France, Germany, Italy and Portugal: observed sell-through, average asking prices, buy-below prices and demand signals by brand and model. Data is read from public Vinted listings; departures are listings that left the shelf, not confirmed sales. Included with the Resale IQ Pro plan; generate your key on your account page.","termsOfService":"https://resaleiq.dev/terms","contact":{"name":"Resale IQ support","url":"https://resaleiq.dev/support","email":"support@resaleiq.dev"},"x-logo":{"url":"https://resaleiq.dev/icon.svg"}},"externalDocs":{"description":"Developer docs","url":"https://resaleiq.dev/api-docs"},"servers":[{"url":"https://resaleiq.dev"}],"security":[{"ApiKey":[]}],"paths":{"/api/model-signals":{"get":{"operationId":"listModelSignals","summary":"Top models ranked by 7-day watched departures: departure volume, average asking price, buy-below price, sell-through, best sizes.","tags":["model-signals"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"brand","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelSignalList"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/deals":{"get":{"operationId":"listDeals","summary":"Current buying opportunities, filterable by brand, category, momentum and sell-through.","tags":["deals"],"parameters":[{"name":"brand","in":"query","schema":{"type":"string"}},{"name":"category","in":"query","schema":{"type":"string"}},{"name":"momentum","in":"query","schema":{"type":"string"}},{"name":"min_str","in":"query","schema":{"type":"number","default":0},"description":"Minimum observed sell-through, percent."},{"name":"min_margin","in":"query","schema":{"type":"number","default":20},"description":"Minimum margin between buy-below and typical asking price, percent."},{"name":"limit","in":"query","schema":{"type":"integer","default":50}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/kpis":{"get":{"operationId":"getKpis","summary":"Headline market figures: listings tracked, top category, active buy signals.","tags":["kpis"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/brands/rankings":{"get":{"operationId":"listBrandRankings","summary":"Brand leaderboard by demand.","tags":["brands"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"category","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/brands/{brand_slug}":{"get":{"operationId":"getBrand","summary":"One brand in detail, by slug.","tags":["brands"],"parameters":[{"name":"brand_slug","in":"path","required":true,"description":"Brand slug, e.g. nike.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/trends/summary":{"get":{"operationId":"getTrendsSummary","summary":"Market trend summary across the tracked markets.","tags":["trends"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/watchlist":{"get":{"operationId":"listWatchlist","summary":"Your watchlist.","tags":["watchlist"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"addWatchlistItem","summary":"Add a model to your watchlist.","tags":["watchlist"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["brand","model"],"properties":{"brand":{"type":"string","minLength":1,"maxLength":100},"model":{"type":"string","minLength":1,"maxLength":200},"category":{"type":"string"},"notes":{"type":"string"},"alert_below_price":{"type":["number","null"]}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/watchlist/{item_id}":{"delete":{"operationId":"deleteWatchlistItem","summary":"Remove a watchlist item.","tags":["watchlist"],"parameters":[{"name":"item_id","in":"path","required":true,"description":"Watchlist item id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/portfolio":{"get":{"operationId":"listPortfolio","summary":"Your portfolio items.","tags":["portfolio"],"parameters":[{"name":"status","in":"query","schema":{"type":"string"},"description":"Filter by item status, e.g. listed or sold."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"addPortfolioItem","summary":"Add a sourced item.","tags":["portfolio"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["brand","model","cost_eur"],"properties":{"brand":{"type":"string","minLength":1,"maxLength":100},"model":{"type":"string","minLength":1,"maxLength":200},"category":{"type":"string"},"size":{"type":"string"},"condition":{"type":"string","default":"good"},"cost_eur":{"type":"number","minimum":0.01},"list_price_eur":{"type":["number","null"]},"platform":{"type":"string","default":"vinted"},"source_url":{"type":"string"},"notes":{"type":"string"}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/portfolio/stats":{"get":{"operationId":"getPortfolioStats","summary":"P&L summary: invested, realised profit, ROI, days held.","tags":["portfolio"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/portfolio/{item_id}":{"put":{"operationId":"updatePortfolioItem","summary":"Update an item (mark listed or sold).","tags":["portfolio"],"parameters":[{"name":"item_id","in":"path","required":true,"description":"Portfolio item id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"cost_eur":{"type":"number","minimum":0.01},"list_price_eur":{"type":"number"},"sold_price_eur":{"type":"number","description":"The price you sold your own item at."},"platform":{"type":"string"},"notes":{"type":"string"},"category":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deletePortfolioItem","summary":"Delete an item.","tags":["portfolio"],"parameters":[{"name":"item_id","in":"path","required":true,"description":"Portfolio item id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Your plan does not include this data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Authenticated, but not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (60 requests per minute per key); retry after a short pause","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Per-account key. Generating a new key revokes the previous one."}},"schemas":{"Error":{"type":"object","properties":{"detail":{"type":"string"}},"required":["detail"]},"ModelSignal":{"type":"object","properties":{"brand":{"type":"string"},"model":{"type":"string"},"sold_7d":{"type":"integer","description":"Watched departures in the last 7 days (listings that left the shelf, not confirmed sales)."},"avg_price_eur":{"type":"number","description":"Average asking price, EUR."},"max_buy_price":{"type":"number","description":"Reference maximum buy price: typical asking price x 0.70."},"str_pct":{"type":["number","null"],"description":"Observed sell-through percent; null below 30 watched departures. Null is not 0."},"top_sizes":{"type":"array","items":{"type":"string"}}}},"ModelSignalList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ModelSignal"}},"count":{"type":"integer"}}}}}}