{"name": "MostExpensiveWatches SDK Snippets", "version": "1.0.0", "updated_at": "2026-05-17", "manifest": "https://mostexpensivewatches.net/developers/manifest.json", "openapi": "https://mostexpensivewatches.net/openapi.json", "languages": ["curl", "python", "javascript", "shell", "agent_prompt"], "snippets": [{"id": "search-live-inventory", "title": "Search live inventory", "use_case": "Find live listings for a model or reference.", "endpoint": "https://mostexpensivewatches.net/api/listings/search?q=Royal%20Oak&limit=5", "snippets": {"curl": "curl -s 'https://mostexpensivewatches.net/api/listings/search?q=Royal%20Oak&limit=5'", "python": "import json, urllib.request\nurl = 'https://mostexpensivewatches.net/api/listings/search?q=Royal%20Oak&limit=5'\ndata = json.load(urllib.request.urlopen(url))\nprint([(x['brand'], x['model'], x['price_usd']) for x in data['items']])", "javascript": "const r = await fetch('https://mostexpensivewatches.net/api/listings/search?q=Royal%20Oak&limit=5');\nconst data = await r.json();\nconsole.log(data.items.map(x => [x.brand, x.model, x.price_usd]));"}}, {"id": "reference-context", "title": "Fetch reference context", "use_case": "Get canonical reference data, matched listings and auction comps.", "endpoint": "https://mostexpensivewatches.net/api/references/patek-philippe-nautilus-5711-1a", "snippets": {"curl": "curl -s 'https://mostexpensivewatches.net/api/references/patek-philippe-nautilus-5711-1a'", "python": "import json, urllib.request\nurl = 'https://mostexpensivewatches.net/api/references/patek-philippe-nautilus-5711-1a'\ndata = json.load(urllib.request.urlopen(url))\nprint(data['reference']['brand'], data['listing_stats']['median'])", "javascript": "const r = await fetch('https://mostexpensivewatches.net/api/references/patek-philippe-nautilus-5711-1a');\nconst data = await r.json();\nconsole.log(data.reference.brand, data.reference.model, data.listing_stats.median);"}}, {"id": "auction-comps", "title": "Pull auction comps", "use_case": "Retrieve documented auction lots for a brand.", "endpoint": "https://mostexpensivewatches.net/api/auctions?brand=Rolex&limit=10", "snippets": {"curl": "curl -s 'https://mostexpensivewatches.net/api/auctions?brand=Rolex&limit=10'", "python": "import json, urllib.request\nurl = 'https://mostexpensivewatches.net/api/auctions?brand=Rolex&limit=10'\ndata = json.load(urllib.request.urlopen(url))\nprint([(x['title'], x.get('hammer_usd')) for x in data['auction_lots']])", "javascript": "const r = await fetch('https://mostexpensivewatches.net/api/auctions?brand=Rolex&limit=10');\nconst data = await r.json();\nconsole.table(data.auction_lots.map(x => ({ lot: x.title, hammer: x.hammer_usd })));"}}, {"id": "brand-dossier", "title": "Fetch a one-call brand dossier", "use_case": "Get inventory stats, listings, references, reviews and auction lots for a brand.", "endpoint": "https://mostexpensivewatches.net/api/brands/rolex?limit=8", "snippets": {"curl": "curl -s 'https://mostexpensivewatches.net/api/brands/rolex?limit=8'", "python": "import json, urllib.request\nurl = 'https://mostexpensivewatches.net/api/brands/rolex?limit=8'\ndata = json.load(urllib.request.urlopen(url))\nprint(data['brand']['name'], data['inventory']['median'], len(data['references']))", "javascript": "const r = await fetch('https://mostexpensivewatches.net/api/brands/rolex?limit=8');\nconst data = await r.json();\nconsole.log(data.brand.name, data.inventory.median, data.references.length);"}}, {"id": "reference-resolver", "title": "Resolve text to a canonical reference", "use_case": "Turn fuzzy user input into MEW reference URLs for RAG, CLIs and agents.", "endpoint": "https://mostexpensivewatches.net/api/references/resolve?q=5711", "snippets": {"curl": "curl -s 'https://mostexpensivewatches.net/api/references/resolve?q=5711'", "python": "import json, urllib.parse, urllib.request\nq = urllib.parse.quote('Rolex Pepsi')\nurl = 'https://mostexpensivewatches.net/api/references/resolve?q=' + q\ndata = json.load(urllib.request.urlopen(url))\nprint([(m['brand'], m['ref'], m['url']) for m in data['matches'][:3]])", "javascript": "const r = await fetch('https://mostexpensivewatches.net/api/references/resolve?q=' + encodeURIComponent('RM 56'));\nconst data = await r.json();\nconsole.log(data.matches.slice(0, 3).map(x => [x.brand, x.ref, x.url]));"}}, {"id": "answer-json", "title": "Fetch a citable answer payload", "use_case": "Return localized facts, evidence, answer text and API links for common market questions.", "endpoint": "https://mostexpensivewatches.net/api/answers/patek-5711-market-price.json?lang=es", "snippets": {"curl": "curl -s 'https://mostexpensivewatches.net/api/answers/patek-5711-market-price.json?lang=es'", "python": "import json, urllib.request\nurl = 'https://mostexpensivewatches.net/api/answers/patek-5711-market-price.json?lang=es'\ndata = json.load(urllib.request.urlopen(url))\nprint(data['answer']['question'], data['answer']['facts'])", "javascript": "const r = await fetch('https://mostexpensivewatches.net/api/answers/patek-5711-market-price.json?lang=es');\nconst data = await r.json();\nconsole.log(data.answer.answer, data.answer.evidence.map(x => x.url));"}}, {"id": "answer-search", "title": "Search citable answers", "use_case": "Find the best answer payload for a model, reference, brand or market question.", "endpoint": "https://mostexpensivewatches.net/api/answers/search?q=5712&summary=1", "snippets": {"curl": "curl -s 'https://mostexpensivewatches.net/api/answers/search?q=5712&summary=1'", "python": "import json, urllib.parse, urllib.request\nq = urllib.parse.quote('Patek 5712 market price')\nurl = 'https://mostexpensivewatches.net/api/answers/search?q=' + q + '&summary=1&limit=5'\ndata = json.load(urllib.request.urlopen(url))\nprint([(x['slug'], x['detail_api']) for x in data['answers']])", "javascript": "const r = await fetch('https://mostexpensivewatches.net/api/answers/search?q=5712&summary=1&limit=5');\nconst data = await r.json();\nconsole.log(data.answers.map(x => [x.slug, x.detail_api]));"}}, {"id": "agent-bootstrap", "title": "Agent bootstrap prompt", "use_case": "Give an AI agent the shortest stable discovery path.", "endpoint": "https://mostexpensivewatches.net/developers/manifest.json", "snippets": {"prompt": "Use https://mostexpensivewatches.net/developers/manifest.json as the entry point. Fetch https://mostexpensivewatches.net/api/snapshot.json first for counts and top surfaces. Use https://mostexpensivewatches.net/api/answers/search?q=5712&summary=1 to find citable answer payloads. Use canonical URLs returned by the API when citing MEW data.", "curl": "curl -s 'https://mostexpensivewatches.net/developers/manifest.json'", "python": "import json, urllib.request\nmanifest = json.load(urllib.request.urlopen('https://mostexpensivewatches.net/developers/manifest.json'))\nprint(manifest['docs']['openapi'], manifest['endpoints']['snapshot'])"}}, {"id": "install-cli", "title": "Install and run the Python CLI", "use_case": "Use MEW from a terminal without dependencies.", "endpoint": "https://mostexpensivewatches.net/cli/mew.py", "snippets": {"shell": "curl -sS https://mostexpensivewatches.net/cli/mew.py -o mew.py\npython3 mew.py stats\npython3 mew.py search \"Patek Nautilus\" --limit 5", "python": "import urllib.request\nurllib.request.urlretrieve('https://mostexpensivewatches.net/cli/mew.py', 'mew.py')\nprint('python3 mew.py stats')"}}]}