{"openapi":"3.1.0","info":{"title":"AutoTasker Public Data API","version":"1.0.0","summary":"Real China trending-list and price-intelligence data, paid per request via x402 (USDC on Base).","description":"Public-data API for AI agents. Every paid endpoint returns a genuinely scraped snapshot of Chinese public boards (Baidu hot search / finance / livelihood / sports / entertainment / international, Toutiao hot list, Douban books Top250, SMZDM deals) with the platforms' own heat values, ranks and source links, plus a computed category distribution. Payment is settled per request in USDC on Base via the x402 protocol — no account, no API key, no subscription.","x-guidance":"Paid endpoints answer HTTP 402 with a base64 PAYMENT-REQUIRED header describing the exact USDC amount, the Base network, the asset contract and the payTo address. Sign an EIP-3009 transferWithAuthorization for that exact amount and retry the request with a base64 PAYMENT-SIGNATURE header; the response then carries a PAYMENT-RESPONSE header with the settlement. Amounts must match exactly (the \"exact\" scheme has no tolerance). GET /api/x402/pricing is free and returns the same requirements in JSON. All data is a snapshot — read the fetchedAt field before treating it as current.","contact":{"email":"460123249@qq.com","name":"AutoTasker Hub"},"license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}},"servers":[{"url":"https://autotasker-hub.vercel.app","description":"Public origin"}],"security":[],"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"Base64-encoded x402 PaymentPayload (v2). Legacy v1 clients may use the X-PAYMENT header instead."}}},"paths":{"/api/x402/hotlist":{"get":{"operationId":"hotlist","summary":"全网公开热榜实时快照 (9 个榜单)","description":"Baidu hot search / finance / livelihood / sports / entertainment / international boards, Toutiao hot list, Douban books Top250 and SMZDM deals. Real scraped snapshot: original heat values, ranks, source links, plus computed category distribution. Snapshot only — always read fetchedAt.","tags":["Data","China","Trends","Hot List","Ecommerce","Price Intelligence","Market Data","Search"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}],"facilitator":"https://x402-agent-pay.com/facilitator","payTo":"0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03","network":"eip155:8453"},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":50},"description":"返回条数 (最大 500)"},{"name":"source","in":"query","required":false,"schema":{"type":"string"},"description":"按榜单源过滤, 例如 \"百度热搜\" / \"今日头条热榜\""},{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"标题 / 类目关键词过滤"}],"responses":{"200":{"description":"成功返回数据","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","description":"快照抓取时间 (ISO 8601)"},"matched":{"type":"integer","description":"命中的条目数"},"returned":{"type":"integer","description":"本次返回的条目数"},"totalInPack":{"type":"integer","description":"数据包里总条目数"},"sourceNote":{"type":"string","description":"数据来源说明"},"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","description":"榜单来源 (百度热搜 / 今日头条热榜 / 什么值得买好价 等)"},"title":{"type":"string","description":"原始标题"},"desc":{"type":"string","description":"原始描述"},"heat":{"type":"string","description":"平台原始热度值 (无则为空)"},"rank":{"type":"string","description":"平台原始排名 (无则为空)"},"cate":{"type":"string","description":"类目路径"},"url":{"type":"string","description":"原始公开页面链接"}},"required":["source","title","url"]}},"stats":{"type":"object","description":"基于真实数据计算出的统计 (不是原文照抄)","properties":{"bySource":{"type":"object","additionalProperties":{"type":"integer"}},"topCategories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"count":{"type":"integer"},"share":{"type":"number"}}}},"withHeat":{"type":"integer"},"withUrl":{"type":"integer"}}}},"required":["items"]}}}},"402":{"description":"Payment Required — 需要按 x402 协议支付 USDC (Base) 后重试"}}}},"/api/x402/search":{"get":{"operationId":"search","summary":"跨榜单关键词搜索 (最通用的一种调用)","description":"Search the trending-list and price snapshot by keyword across all boards. Returns matching items plus which board each hit came from. The most common call shape for an agent that needs to know what is trending around a topic.","tags":["Data","China","Trends","Hot List","Ecommerce","Price Intelligence","Market Data","Search"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}],"facilitator":"https://x402-agent-pay.com/facilitator","payTo":"0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03","network":"eip155:8453"},"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1},"description":"关键词 (标题/描述/类目 模糊匹配, 不区分大小写)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":50},"description":"返回条数 (最大 500)"},{"name":"source","in":"query","required":false,"schema":{"type":"string"},"description":"按榜单源过滤, 例如 \"百度热搜\" / \"今日头条热榜\""}],"responses":{"200":{"description":"成功返回数据","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","description":"快照抓取时间 (ISO 8601)"},"matched":{"type":"integer","description":"命中的条目数"},"returned":{"type":"integer","description":"本次返回的条目数"},"totalInPack":{"type":"integer","description":"数据包里总条目数"},"sourceNote":{"type":"string","description":"数据来源说明"},"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","description":"榜单来源 (百度热搜 / 今日头条热榜 / 什么值得买好价 等)"},"title":{"type":"string","description":"原始标题"},"desc":{"type":"string","description":"原始描述"},"heat":{"type":"string","description":"平台原始热度值 (无则为空)"},"rank":{"type":"string","description":"平台原始排名 (无则为空)"},"cate":{"type":"string","description":"类目路径"},"url":{"type":"string","description":"原始公开页面链接"}},"required":["source","title","url"]}},"stats":{"type":"object","description":"基于真实数据计算出的统计 (不是原文照抄)","properties":{"bySource":{"type":"object","additionalProperties":{"type":"integer"}},"topCategories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"count":{"type":"integer"},"share":{"type":"number"}}}},"withHeat":{"type":"integer"},"withUrl":{"type":"integer"}}}},"required":["items"]}}}},"402":{"description":"Payment Required — 需要按 x402 协议支付 USDC (Base) 后重试"}}}},"/api/x402/price":{"get":{"operationId":"price","summary":"公开价格 / 好价情报查询","description":"Real price and deal entries from public price boards (SMZDM etc.) with category paths, ranks and source links, plus a computed category breakdown.","tags":["Data","China","Trends","Hot List","Ecommerce","Price Intelligence","Market Data","Search"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.100000"},"protocols":[{"x402":{}}],"facilitator":"https://x402-agent-pay.com/facilitator","payTo":"0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03","network":"eip155:8453"},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":50},"description":"返回条数 (最大 500)"},{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"标题 / 类目关键词过滤"}],"responses":{"200":{"description":"成功返回数据","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","description":"快照抓取时间 (ISO 8601)"},"matched":{"type":"integer","description":"命中的条目数"},"returned":{"type":"integer","description":"本次返回的条目数"},"totalInPack":{"type":"integer","description":"数据包里总条目数"},"sourceNote":{"type":"string","description":"数据来源说明"},"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","description":"榜单来源 (百度热搜 / 今日头条热榜 / 什么值得买好价 等)"},"title":{"type":"string","description":"原始标题"},"desc":{"type":"string","description":"原始描述"},"heat":{"type":"string","description":"平台原始热度值 (无则为空)"},"rank":{"type":"string","description":"平台原始排名 (无则为空)"},"cate":{"type":"string","description":"类目路径"},"url":{"type":"string","description":"原始公开页面链接"}},"required":["source","title","url"]}},"stats":{"type":"object","description":"基于真实数据计算出的统计 (不是原文照抄)","properties":{"bySource":{"type":"object","additionalProperties":{"type":"integer"}},"topCategories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"count":{"type":"integer"},"share":{"type":"number"}}}},"withHeat":{"type":"integer"},"withUrl":{"type":"integer"}}}},"required":["items"]}}}},"402":{"description":"Payment Required — 需要按 x402 协议支付 USDC (Base) 后重试"}}}},"/api/x402/full":{"get":{"operationId":"full_pack","summary":"全量数据包导出","description":"Full dataset export: metadata, source statistics and all items of the snapshot. Pass limit to cap the number of items returned.","tags":["Data","China","Trends","Hot List","Ecommerce","Price Intelligence","Market Data","Search"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.500000"},"protocols":[{"x402":{}}],"facilitator":"https://x402-agent-pay.com/facilitator","payTo":"0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03","network":"eip155:8453"},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":50},"description":"返回条数 (最大 500)"}],"responses":{"200":{"description":"成功返回数据","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","description":"快照抓取时间 (ISO 8601)"},"matched":{"type":"integer","description":"命中的条目数"},"returned":{"type":"integer","description":"本次返回的条目数"},"totalInPack":{"type":"integer","description":"数据包里总条目数"},"sourceNote":{"type":"string","description":"数据来源说明"},"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","description":"榜单来源 (百度热搜 / 今日头条热榜 / 什么值得买好价 等)"},"title":{"type":"string","description":"原始标题"},"desc":{"type":"string","description":"原始描述"},"heat":{"type":"string","description":"平台原始热度值 (无则为空)"},"rank":{"type":"string","description":"平台原始排名 (无则为空)"},"cate":{"type":"string","description":"类目路径"},"url":{"type":"string","description":"原始公开页面链接"}},"required":["source","title","url"]}},"stats":{"type":"object","description":"基于真实数据计算出的统计 (不是原文照抄)","properties":{"bySource":{"type":"object","additionalProperties":{"type":"integer"}},"topCategories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"count":{"type":"integer"},"share":{"type":"number"}}}},"withHeat":{"type":"integer"},"withUrl":{"type":"integer"}}}},"required":["items"]}}}},"402":{"description":"Payment Required — 需要按 x402 协议支付 USDC (Base) 后重试"}}}},"/api/x402/sample":{"get":{"operationId":"sample","summary":"免费数据样本 (转化入口)","description":"Free sample: the first N rows of the snapshot (default 5, max 20) plus the paid upgrade paths and payment requirements. Use it to judge data quality before paying.","tags":["Meta","Data","China"],"security":[],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20,"default":5}}],"responses":{"200":{"description":"样本数据","content":{"application/json":{"schema":{"type":"object","properties":{"sample":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","description":"榜单来源 (百度热搜 / 今日头条热榜 / 什么值得买好价 等)"},"title":{"type":"string","description":"原始标题"},"desc":{"type":"string","description":"原始描述"},"heat":{"type":"string","description":"平台原始热度值 (无则为空)"},"rank":{"type":"string","description":"平台原始排名 (无则为空)"},"cate":{"type":"string","description":"类目路径"},"url":{"type":"string","description":"原始公开页面链接"}},"required":["source","title","url"]}},"returned":{"type":"integer"},"totalInPack":{"type":"integer"},"fetchedAt":{"type":"string"},"fullAccess":{"type":"object"},"pay":{"type":"object"}},"required":["sample"]}}}}}}},"/api/x402/pricing":{"get":{"operationId":"pricing","summary":"定价与支付要求 (免费)","description":"Returns the x402 payment requirements for every paid endpoint: network, asset (USDC on Base), payTo address, and the price list. Free to call.","tags":["Meta"],"security":[],"responses":{"200":{"description":"定价信息","content":{"application/json":{"schema":{"type":"object","properties":{"protocol":{"type":"string"},"version":{"type":"integer"},"network":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"prices":{"type":"object","additionalProperties":{"type":"object"}}},"required":["protocol","network","asset","payTo"]}}}}}}},"/api/x402/summary":{"get":{"operationId":"summary","summary":"答案型摘要 (免费)","description":"Free answer-shaped summary of the snapshot: item counts per board, category distribution, top 5 items per board, snapshot time and the methodology. Written to be quotable (figures + sources + timestamp + method, no marketing copy).","tags":["Meta","Data","China"],"security":[],"responses":{"200":{"description":"摘要","content":{"application/json":{"schema":{"type":"object","properties":{"snapshotTime":{"type":"string"},"itemCount":{"type":"integer"},"boardCount":{"type":"integer"},"boards":{"type":"array","items":{"type":"object"}},"topCategories":{"type":"array","items":{"type":"object"}},"methodology":{"type":"string"}},"required":["itemCount","boardCount","methodology"]}}}}}}},"/api/x402/stats":{"get":{"operationId":"stats","summary":"调用与结算统计 (免费)","description":"Call counters and settled revenue for this API. Only facilitator-verified settlements are counted as revenue.","tags":["Meta"],"security":[],"responses":{"200":{"description":"统计信息","content":{"application/json":{"schema":{"type":"object","properties":{"requests":{"type":"integer"},"paidHits":{"type":"integer"},"settledRevenueUsd":{"type":"number"}}}}}}}}},"/.well-known/x402.json":{"get":{"operationId":"x402_discovery","summary":"x402 发现元数据 (免费)","description":"Machine-readable discovery document listing the paid resources, their pricing, network and payTo address.","tags":["Meta"],"security":[],"responses":{"200":{"description":"发现文档","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer"},"resources":{"type":"array","items":{"type":"string"}},"service":{"type":"object"}},"required":["version","resources"]}}}}}}},"/health":{"get":{"operationId":"health","summary":"存活检查 (免费)","description":"Liveness probe. Free, no authentication.","tags":["Meta"],"security":[],"responses":{"200":{"description":"服务正常"}}}}},"x-x402":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","assetSymbol":"USDC","payTo":"0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03","scheme":"exact","facilitator":"https://x402-agent-pay.com/facilitator"}}