{"openapi":"3.1.0","info":{"title":"API.SH: Bilibili","version":"1.0.0","description":"The Bilibili API from API.SH: public Bilibili data as clean JSON. Every endpoint is a GET with query parameters and your key in the x-api-key header. Calls that run cost the credits shown (x-credits): successes, and lookups that found nothing (404). Refused calls and errors on our side are free. Docs: https://api.sh/docs · Every platform: https://api.sh/openapi.json","contact":{"name":"API.SH support","email":"support@api.sh","url":"https://api.sh/contact"},"termsOfService":"https://api.sh/legal/terms"},"servers":[{"url":"https://api.api.sh"}],"security":[{"apiKey":[]}],"tags":[{"name":"Account","description":"Your balance, usage, logs and past responses. Free."},{"name":"Bilibili","description":"11 endpoints (media & music)","x-slug":"bilibili","x-domains":["bilibili.com"]}],"paths":{"/v1/account":{"get":{"operationId":"getAccount","tags":["Account"],"summary":"Balance, plan, spend and spend limits","description":"Credits by bucket (free monthly, plan, pay-as-you-go), the plan, credits spent today and this month (UTC), your spend limits and the key used. Free: costs no credits.","responses":{"200":{"description":"Account","content":{"application/json":{"example":{"success":true,"account":{"id":"8f0c…","status":"active","unlimited":false},"credits":{"total":41250,"free":100,"plan":0,"payg":41150,"free_resets_at":"2026-11-01T00:00:00Z"},"plan":null,"spend":{"today":120,"this_month":3400,"daily_limit":5000,"monthly_limit":null,"period":"UTC"},"key":{"id":"…","name":"production","prefix":"ash_li","created_at":"2026-10-01T00:00:00Z"}}}}},"401":{"description":"Missing, invalid, revoked or expired API key. Not charged. See https://api.sh/docs/errors#401","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/usage":{"get":{"operationId":"getAccountUsage","tags":["Account"],"summary":"Usage per day and per endpoint","description":"Calls, errors and credits per UTC day, and the top endpoints by credits. Free. Add output=csv for the daily rows as CSV.","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":90,"default":30}},{"$ref":"#/components/parameters/output"}],"responses":{"200":{"description":"Usage","content":{"application/json":{"schema":{"type":"object"}},"text/csv":{"schema":{"type":"string"}}}},"401":{"description":"Missing, invalid, revoked or expired API key. Not charged. See https://api.sh/docs/errors#401","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/logs":{"get":{"operationId":"listAccountLogs","tags":["Account"],"summary":"Your calls of the last 30 days","description":"Newest first. Filter by status, route prefix, key or time; page with `before` (the `next` value). Add output=csv|ndjson to download (up to 5,000 rows per request; the next cursor is in the x-next-cursor header). Free.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":50}},{"name":"status","in":"query","required":false,"description":"ok, error, or an HTTP status like 502.","schema":{"type":"string"}},{"name":"route","in":"query","required":false,"description":"Route prefix, e.g. /tiktok/v1","schema":{"type":"string"}},{"name":"key","in":"query","required":false,"description":"Only calls made with this key id.","schema":{"type":"string","format":"uuid"}},{"name":"since","in":"query","required":false,"description":"ISO time.","schema":{"type":"string","format":"date-time"}},{"name":"before","in":"query","required":false,"description":"Cursor from `next`.","schema":{"type":"string"}},{"$ref":"#/components/parameters/output"}],"responses":{"200":{"description":"Calls","content":{"application/json":{"schema":{"type":"object"}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"401":{"description":"Missing, invalid, revoked or expired API key. Not charged. See https://api.sh/docs/errors#401","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/results/{request_id}":{"get":{"operationId":"getResult","tags":["Account"],"summary":"Fetch a past response again, free","description":"The exact response a call returned, for 30 days after the call, at no cost. Use the call's x-request-id. Supports output=csv|ndjson.","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The stored response (headers: x-refetch: 1, x-original-time, x-original-route).","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found, or not public. A lookup that ran costs the endpoint's price (credits_used says); an unknown route is free.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Older than 30 days.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/bilibili/v1/bangumi":{"get":{"operationId":"bilibiliBangumi","summary":"Anime and drama season","description":"A Bilibili anime, drama or documentary season: titles, description, cast and staff, styles, areas, rating, play stats, status, every episode (id, title, video ids, duration, date), extra sections and the other seasons of the series.\n\nEvery response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-bangumi","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"season_id","in":"query","required":false,"description":"Season id (ss number).","schema":{"type":"string"},"example":"33378"},{"name":"ep_id","in":"query","required":false,"description":"An episode id (ep number) of the season.","schema":{"type":"string"}},{"name":"media_id","in":"query","required":false,"description":"Media id (md number).","schema":{"type":"string"}},{"name":"url","in":"query","required":false,"description":"A bilibili.com/bangumi/play/ss… / ep… or bangumi/media/md… link.","schema":{"type":"string"}},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"season_id":33378,"media_id":28228775,"title":"名侦探柯南","season_title":"名侦探柯南","subtitle":"已观看15.2亿次","jp_title":null,"alias":null,"url":"http://www.bilibili.com/bangumi/media/md28228775/","cover":"https://i0.hdslb.com/bfs/bangumi/image/38e2a273f528fd01c34f1fc4df0f69c64487efad.png","square_cover":"https://i0.hdslb.com/bfs/bangumi/image/a8d4dad96d5eef87c1ef985c29f42d4189992f84.png","background":null,"type":1,"description":"主角工藤新一原本是一位颇具名声的高中生侦探，在目击黑暗组织的地下交易后，正准备追踪时却被突袭击昏，并被灌下代号为“APTX4869”的不明药物。后来虽然幸免于死，但身体就此缩小为小学时期的模样。之后他化名为江户川柯南，在邻居阿笠博士的建议下，寄住在女友毛利兰的父亲—侦探毛利小五郎…","actors":"江户川柯南：高山南\n工藤新一：山口胜平\n毛利兰：山崎和佳奈\n毛利小五郎：神谷明、小山力也\n阿笠博士：绪方贤一\n灰原哀：林原惠美\n吉田步美：岩居由希子\n圆谷光彦：大谷育江\n小岛元太：高木涉\n铃木园子：松井菜樱子\n服部平次：堀川亮\n远山和叶：宫村优子\n世良真纯：日高法子\n冲矢昴：置鲇…","staff":"原著：青山刚昌\n策划：诹访道彦\n首席制片人：诹访道彦、吉冈昌仁、松本拓也、石山桂一\n制片人：柳内一彦、小林弘明、北田修一、小岛哲、山川刚史、米仓功人、寺岛清晃\n联合制片人：浅井认、近藤秀峰\n导演：儿玉兼嗣、山本泰一郎、佐藤真人、于地纮仁\n音乐：大野克夫\n角色设计：须藤昌朋、富永真…","styles":["漫画改","推理","… 2 more"],"areas":["日本"],"published":{"pub_time":"2020-04-30 19:00:00","is_finish":false,"is_started":true},"status_text":"每周六19:30更新","total_episodes":-1,"rating":{"score":9.4,"count":104658},"stats":{"views":1518939678,"danmaku":306765766,"replies":603977,"favorites":5255847,"coins":2584246,"likes":9130953,"shares":300751,"follow_text":"939.5万系列追番"},"payment":{"price":"0.0","vip_promotion":"开通大会员观看"},"rights":{"allow_bp":0,"allow_bp_rank":0,"allow_download":0,"allow_review":1,"area_limit":328,"ban_area_show":1,"can_watch":1,"copyright":"bilibili","forbid_pre":0,"freya_white":0,"is_cover_show":0,"is_preview":1,"is_sponsor":0,"only_vip_download":0,"resource":"","watch_platform":0},"up":{"mid":928123,"name":"哔哩哔哩番剧"},"seasons":[{"season_id":33378,"title":"TV版","media_id":28228775,"cover":"https://i0.hdslb.com/bfs/bangumi/image/38e2a273f528fd01c34f1fc4df0f69c64487efad.png","badge":"大会员","url":null,"status_text":"更新至第1278话"},{"season_id":33415,"title":"中配版","media_id":28228813,"cover":"https://i0.hdslb.com/bfs/bangumi/image/38e2a273f528fd01c34f1fc4df0f69c64487efad.png","badge":"大会员","url":null,"status_text":"更新至第1278话"},"… 34 more"],"episode_count":1281,"episodes":[{"ep_id":321808,"title":"1","long_title":"云霄飞车杀人事件","bvid":"BV1PQ4y1N7V8","aid":710444604,"cid":26835486927,"url":"https://www.bilibili.com/bangumi/play/ep321808","cover":"https://i0.hdslb.com/bfs/archive/82d4523e2562748d050a8d8ec7ebc03fbe1a15a1.jpg","duration_s":1493,"published_at":"2020-04-30T11:00:00.000Z","badge":"受限","status":2,"skip":{"ed":{"end":0,"start":0},"op":{"end":0,"start":0}}},{"ep_id":321809,"title":"2","long_title":"董事长千金绑架事件","bvid":"BV1kR4y1t7aF","aid":336754537,"cid":26772178176,"url":"https://www.bilibili.com/bangumi/play/ep321809","cover":"https://i0.hdslb.com/bfs/archive/82d4523e2562748d050a8d8ec7ebc03fbe1a15a1.jpg","duration_s":1489,"published_at":"2020-04-30T11:00:00.000Z","badge":"受限","status":2,"skip":{"ed":{"end":0,"start":0},"op":{"end":0,"start":0}}},"… 1279 more"],"sections":[{"id":46581,"title":"OP","episodes":[{"ep_id":322916,"title":"OP4","long_title":null,"bvid":"BV1b64y1M7EP","aid":582994627,"cid":184709374,"url":"https://www.bilibili.com/bangumi/play/ep322916","cover":"https://i0.hdslb.com/bfs/archive/ae4fd98a93fb9e98fd59bca9f45dee3bf0567dcc.jpg","duration_s":80,"published_at":"2020-04-29T09:59:00.000Z","badge":"受限","status":2,"skip":{"…":"2 fields"}}]}],"series":{"id":2409,"title":"名侦探柯南"},"cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/hot-search":{"get":{"operationId":"bilibiliHotSearch","summary":"Trending searches","description":"What people search for on Bilibili right now: rank, keyword, heat level and search link.\n\nEvery response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-hot-search","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"limit","in":"query","required":false,"description":"Results (default and max 50).","schema":{"type":"integer"}},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"count":50,"items":[{"rank":1,"keyword":"TES IG","show_name":"IG战胜TES挺进四强","heat_layer":"B","heat_score":22562705,"icon":"https://i0.hdslb.com/bfs/activity-plat/static/20221213/eaf2dd702d7cc14d8d9511190245d057/lrx9rnKo24.png","word_type":5,"search_url":"https://search.bilibili.com/all?keyword=TES%20IG"},{"rank":2,"keyword":"冲撞致对手离世门将精神崩溃","show_name":"冲撞致对手离世门将精神崩溃","heat_layer":"B","heat_score":1846411,"icon":"https://i0.hdslb.com/bfs/activity-plat/static/20221213/eaf2dd702d7cc14d8d9511190245d057/lrx9rnKo24.png","word_type":5,"search_url":"https://search.bilibili.com/all?keyword=%E5%86%B2%E6%92%9E%E8%87%B4%E5%AF%B9%E6%89%8B%E7%A6%BB%E4%B8%96%E9%97%A8%E5%B0%86%E7%B2%BE%E7%A5%9E%…"},"… 48 more"],"cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/live":{"get":{"operationId":"bilibiliLive","summary":"Live room","description":"A Bilibili live room: title, description, live status and start time, viewers, followers, area, tags, cover and keyframe, and the streamer (name, avatar, verification, followers, level, announcement).\n\nEvery response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-live","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"room_id","in":"query","required":true,"description":"Room id, or a live.bilibili.com/<room> link.","schema":{"type":"string"},"example":"21452505"},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"room_id":21452505,"short_id":null,"url":"https://live.bilibili.com/21452505","title":"悠闲的影之刃","description":"\n\n\n\n\n\n                           七海Nana7mi ????\n         喜欢戴着鲨鱼头套宅在家里唱歌打游戏。        鼠标：           提升交流能力的方法寻找中   ʕ•ᴥ•ʔ               Razer Ba…","status":"offline","live_since":null,"online":0,"followers":1118861,"area":"主机游戏","area_id":236,"parent_area":"单机游戏","parent_area_id":6,"tags":["七海","海子姐","… 1 more"],"cover":"https://i0.hdslb.com/bfs/live/new_room_cover/47d4e1f2d24669b52827273304c44bc78c923de8.jpg","keyframe":null,"background":"https://i0.hdslb.com/bfs/live/636d66a97d5f55099a9d8d6813558d6d4c95fd61.jpg","is_portrait":false,"streamer":{"mid":434334701,"name":"七海Nana7mi","avatar":"https://i2.hdslb.com/bfs/face/971ef0f04571f866bcd2384248ded054649b7790.jpg","verified":"bilibili个人认证:虚拟UP主、bilibili直播高能主播","followers":1118861,"level":40,"url":"https://space.bilibili.com/434334701","announcement":"直播时间关注微博@七海Nana7mi"},"cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/ranking":{"get":{"operationId":"bilibiliRanking","summary":"Bilibili ranking","description":"Bilibili's popular ranking list, overall or for one category: rank, BV id, title, cover, duration, publish date, category, author, views, danmaku, replies, favorites, coins, shares and likes.\n\nEvery response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-ranking","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"category_id","in":"query","required":false,"description":"Category id; 0 (default) is the overall ranking, e.g. 1 animation, 3 music, 4 games, 5 entertainment, 119 kichiku, 129 dance, 160 life, 188 technology, 211 food.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"all (default), origin (original videos only) or rookie (new creators).","schema":{"type":"string","enum":["all","origin","rookie"]}},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"category_id":0,"type":"all","note":"根据稿件内容质量、近期的数据综合展示，动态更新","count":100,"items":[{"rank":1,"bvid":"BV1i24P6rEmt","aid":117547064168920,"url":"https://www.bilibili.com/video/BV1i24P6rEmt","title":"大家好，这里是 DeepSeek Harness，正式入驻 B 站！","cover":"https://i0.hdslb.com/bfs/archive/0dd503239df6745961d8f2a1a4e3ccb7cc217f33.jpg","duration":200,"published_at":"2026-11-02T13:28:30.000Z","category":"软件应用","category_id":230,"author":{"mid":3747571004608077,"name":"DeepSeekHarness","avatar":"https://i0.hdslb.com/bfs/face/5be3f26d1560d0580912d847801c272e7ba2ad89.jpg","url":"https://space.bilibili.com/3747571004608077"},"stats":{"views":2800805,"danmaku":6524,"replies":23769,"favorites":72851,"coins":57611,"shares":37458,"likes":256979},"score":0,"description":"认识一下 DeepSeek Harness 创造模式：通过对话，把想法变成插件，写好就能直接用。\n从设计工作台、沙盒游戏，到模型可视化工具，让 Harness 拥有你想要的功能，成为适合自己的样子。\n你想为自己的 Harness 加点什么？\n\n我们也整理了视频中这些插件的中英文提…"},{"rank":2,"bvid":"BV19b4A6PECX","aid":117547651307164,"url":"https://www.bilibili.com/video/BV19b4A6PECX","title":"《原神》角色预告-「米提亚：井井有条」","cover":"https://i2.hdslb.com/bfs/archive/7ede0c5073197358c0b09da1b6e298fc5acc04d8.jpg","duration":681,"published_at":"2026-11-03T04:00:00.000Z","category":"手机游戏","category_id":172,"author":{"mid":401742377,"name":"原神","avatar":"https://i2.hdslb.com/bfs/face/853c4a846793dfbdafd8f16a40d6d8065bdb7c6f.jpg","url":"https://space.bilibili.com/401742377"},"stats":{"views":1667016,"danmaku":14145,"replies":13290,"favorites":44973,"coins":80404,"shares":25544,"likes":177697},"score":0,"description":"与能源相关的实验都存在一定的危险性，所以工作人员需要时刻保持谨慎的态度。\n不妨多问问自己：有日程可控的预期吗？有数据稳定的可能吗？有提前完成的风险吗？\n\n中文CV：\n米提亚——苏尚卿\n瓦列里——淦子齐\n阿罗夏——王辅平\n沃雅妮莎——苏婉\n奥黛塔——潘丹妮\n\n日文CV：\n米提亚——…"},"… 98 more"],"cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/search":{"get":{"operationId":"bilibiliSearch","summary":"Bilibili search","description":"Search Bilibili videos (50 pages of 20): title, description, cover, duration, publish date, author, category, tags and stats (views, danmaku, favorites, replies, likes); `pubtime_begin` / `pubtime_end` limit videos to a publish-date range. `search_type` searches users (name, followers, videos, level, recent uploads), anime or film and TV (title, kind, areas, styles, cast, episodes, score), articles or live rooms (title, area, viewers, streamer) instead; those responses carry `search_type` in place of `order` and `duration`. Pass `next_page` back as `page`; null on the last page.\n\nEvery response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-search","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"q","in":"query","required":true,"description":"Search text.","schema":{"type":"string"},"example":"minecraft"},{"name":"page","in":"query","required":false,"description":"Page number, 1-50.","schema":{"type":"integer"}},{"name":"order","in":"query","required":false,"description":"Sort: totalrank (relevance), click (views), pubdate (newest), dm (danmaku), stow (favorites), scores (comments).","schema":{"type":"string","enum":["totalrank","click","pubdate","dm","stow","scores"]}},{"name":"duration","in":"query","required":false,"description":"Length filter.","schema":{"type":"string","enum":["any","under10","10to30","30to60","over60"]}},{"name":"category_id","in":"query","required":false,"description":"Category (tid) to search in.","schema":{"type":"integer"}},{"name":"search_type","in":"query","required":false,"description":"What to search: video (default), bili_user, media_bangumi (anime), media_ft (film and TV), article, live_room.","schema":{"type":"string","enum":["video","bili_user","media_bangumi","media_ft","article","live_room"]}},{"name":"pubtime_begin","in":"query","required":false,"description":"Videos published on or after this date (YYYY-MM-DD, China time).","schema":{"type":"string"}},{"name":"pubtime_end","in":"query","required":false,"description":"Videos published on or before this date (YYYY-MM-DD, China time).","schema":{"type":"string"}},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"query":"minecraft","page":1,"order":"totalrank","duration":"any","total":1000,"pages":50,"count":19,"items":[{"bvid":"BV1pKxS6kEwe","aid":117554479635182,"url":"https://www.bilibili.com/video/BV1pKxS6kEwe","title":"方解石系列终于补齐啦！新唱片Flurry！我的世界Java版26.4-Snapshot-7版本解析！","description":"","cover":"https://i0.hdslb.com/bfs/archive/e3ab97e72da819956f41abda43fa5184b63d1342.jpg","duration":829,"duration_text":"13:49","published_at":"2026-11-03T20:56:50.000Z","author":{"mid":471631082,"name":"卡伦兔君KarenRabbitO","avatar":"https://i2.hdslb.com/bfs/face/bd9a0e3c245a5d3484d120e54d989fed9158dca9.jpg","url":"https://space.bilibili.com/471631082"},"category":"单机游戏","category_id":17,"tags":["我的世界Java版","沙盒游戏","… 8 more"],"stats":{"views":5303,"danmaku":29,"favorites":53,"replies":50,"likes":194},"rank":1},{"bvid":"BV1ep4G6FEWd","aid":117552550251307,"url":"https://www.bilibili.com/video/BV1ep4G6FEWd","title":"【中字】短短三十天，dream的频道彻底崩溃！！！","description":"原视频链接：https://youtu.be/PsNsoEM9Axg?si=STWpSOu6AjYSnlo6\n原视频发布时间：2026/11/3\n原视频标题：How Dream&#x27;s Career Fell Apart in 30 Days\n原视频作者：Blissolic…","cover":"https://i1.hdslb.com/bfs/archive/b177acb5e67df81b68b81520938f9405d76ed278.jpg","duration":482,"duration_text":"8:2","published_at":"2026-11-03T12:42:51.000Z","author":{"mid":3747571862342120,"name":"末影珍珠打水漂","avatar":"https://i2.hdslb.com/bfs/face/45ea317be347a2420edf737f7722dbeec0d2ba88.jpg","url":"https://space.bilibili.com/3747571862342120"},"category":"单机游戏","category_id":17,"tags":["我的世界","Dream猎人追杀","… 8 more"],"stats":{"views":44567,"danmaku":202,"favorites":655,"replies":233,"likes":1242},"rank":2},"… 17 more"],"next_page":2,"cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/suggest":{"get":{"operationId":"bilibiliSuggest","summary":"Search suggestions","description":"Bilibili's search autocomplete suggestions for the text typed so far.\n\nEvery response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-suggest","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"q","in":"query","required":true,"description":"Text typed so far.","schema":{"type":"string"},"example":"yuan"},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"query":"yuan","count":10,"items":[{"value":"原神","name":"原神","type":null,"ref":0},{"value":"袁东申论","name":"袁东申论","type":null,"ref":0},"… 8 more"],"cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/user":{"get":{"operationId":"bilibiliUser","summary":"Bilibili user profile","description":"A Bilibili user's profile by mid: name, sign, avatar, gender, level, followers, following, total likes received, video and article counts, verification (type and text) and VIP status.\n\nEvery response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-user","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"mid","in":"query","required":true,"description":"User id (space.bilibili.com/<mid>) or the space URL.","schema":{"type":"string"},"example":"2"},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"mid":2,"name":"碧诗","url":"https://space.bilibili.com/2","sign":"https://kami.im 直男过气网红 #  We Are Star Dust","avatar":"https://i2.hdslb.com/bfs/face/ef0457addb24141e15dfac6fbf45293ccf1e32ab.jpg","gender":"男","level":6,"followers":1435784,"following":430,"likes":5103860,"videos":44,"articles":0,"verified":true,"verification":{"type":0,"text":"bilibili创始人（站长）","role":2},"vip":{"type":2,"label":"十年大会员","expires_at":"2098-03-24T16:00:00.000Z"},"banner":"https://i0.hdslb.com/bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png","badge":"见习偶像","cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/user/videos":{"get":{"operationId":"bilibiliUserVideos","summary":"Bilibili creator videos","description":"Videos uploaded by a Bilibili creator (by mid): BV id, title, cover, duration, publish date, category, parts, views, danmaku and flags, plus the total count. Pass `next_cursor` back as `cursor`; null on the last page.\n\nEvery response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-user-videos","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"mid","in":"query","required":true,"description":"Creator id (space.bilibili.com/<mid>) or the space URL.","schema":{"type":"string"},"example":"2"},{"name":"order","in":"query","required":false,"description":"pubdate (newest first) or click (most viewed).","schema":{"type":"string","enum":["pubdate","click"]}},{"name":"page_size","in":"query","required":false,"description":"Results per page, 1-50 (default 20).","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"Pass `next_cursor` from the previous response.","schema":{"type":"string"}},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"mid":2,"order":"pubdate","total":43,"count":20,"items":[{"bvid":"BV1ujNV6qEXg","aid":116908221270151,"url":"https://www.bilibili.com/video/BV1ujNV6qEXg","title":"帮不帮？","cover":"https://i2.hdslb.com/bfs/archive/1670e3ec4d0c6d51455d1cd5f7eeaebfd94205c6.jpg","duration":22,"published_at":"2026-07-12T17:41:36.000Z","category":"绘画","parts":2,"stats":{"views":785443,"danmaku":2807},"author":"碧诗","is_paid":false,"is_cooperation":false,"is_live_replay":false,"is_popular":false},{"bvid":"BV172421f7Km","aid":1606615709,"url":"https://www.bilibili.com/video/BV172421f7Km","title":"极限竞速:地平线 新疆DLC","cover":"https://i2.hdslb.com/bfs/archive/64f64eafed1e79f74b3a46c7a7c6066bed385752.jpg","duration":299,"published_at":"2024-08-26T13:42:19.000Z","category":"出行","parts":1,"stats":{"views":1399841,"danmaku":1489},"author":"碧诗 等联合创作","is_paid":false,"is_cooperation":true,"is_live_replay":false,"is_popular":false},"… 18 more"],"next_cursor":"910689","cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/video":{"get":{"operationId":"bilibiliVideo","summary":"Bilibili video details","description":"One Bilibili video: title, description, cover, duration, publish date, category, copyright type, uploader, stats (views, danmaku, replies, favorites, coins, shares, likes, rank), parts (multi-part videos), resolution, subtitles, co-creators, honors and tags. `include` adds `related` (recommended videos with stats), `danmaku` (the on-screen comments: time in the video, mode, colour, send time and text), `online_count` (people watching now) and `chapters` (the uploader's chapter marks with start and end seconds).\n\nEvery response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-video","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"bvid","in":"query","required":false,"description":"BV id, or pass aid (the av number) or url.","schema":{"type":"string"},"example":"BV1ujNV6qEXg"},{"name":"aid","in":"query","required":false,"description":"The av number.","schema":{"type":"string"}},{"name":"url","in":"query","required":false,"description":"bilibili.com/video URL.","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"Comma-separated extras: related, danmaku, online, chapters.","schema":{"type":"string"}},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"bvid":"BV1ujNV6qEXg","aid":116908221270151,"url":"https://www.bilibili.com/video/BV1ujNV6qEXg","title":"帮不帮？","description":"去还是不去？图来自@悲傷小姐  AI作品，觉得很适合征兵场景，整活~","cover":"https://i2.hdslb.com/bfs/archive/1670e3ec4d0c6d51455d1cd5f7eeaebfd94205c6.jpg","duration":22,"published_at":"2026-07-12T17:41:36.000Z","created_at":"2026-07-12T17:41:36.000Z","category":null,"category_id":162,"copyright":3,"owner":{"mid":2,"name":"碧诗","avatar":"https://i2.hdslb.com/bfs/face/ef0457addb24141e15dfac6fbf45293ccf1e32ab.jpg","url":"https://space.bilibili.com/2"},"stats":{"views":785451,"danmaku":2807,"replies":9434,"favorites":12300,"coins":4578,"shares":7248,"likes":89960,"rank_now":0,"rank_best":0},"parts":[{"cid":39891898365,"page":1,"title":"video_9d999842-78bb-4f2d-b7aa-b68276372a35_mu0-1hc-6tx4k-7sk","duration":11,"width":1080,"height":1920,"first_frame":"https://i1.hdslb.com/bfs/storyff/_00003bptam0ebchie2weefym8mr9f7b_firsti.jpg"},{"cid":39892028322,"page":2,"title":"video_d24afc34-cc49-44d3-a992-ebc5379736ba_mu0-1hc-717ik-7sk","duration":11,"width":1080,"height":1920,"first_frame":"https://i2.hdslb.com/bfs/storyff/_000011xaa5q115ua32kf74y33v4akob_firsti.jpg"}],"width":1080,"height":1920,"cid":39891898365,"subtitles":[],"staff":[],"honors":["热门收录"],"tags":["战锤40K","updream","… 1 more"],"rights":{"bp":0,"elec":0,"download":1,"movie":0,"pay":0,"hd5":0,"no_reprint":0,"autoplay":1,"ugc_pay":0,"is_cooperation":0,"ugc_pay_preview":0,"no_background":0,"clean_mode":0,"is_stein_gate":0,"is_360":0,"no_share":0,"arc_pay":0,"free_watch":0},"dynamic":null,"argue":"含AI生成内容","cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/video/comment/replies":{"get":{"operationId":"bilibiliVideoCommentReplies","summary":"Bilibili comment replies","description":"All replies under one comment of a Bilibili video, oldest first, up to 20 per page: text, date, likes, IP location, pictures, mentions and author, plus the comment itself and the total reply count. Pass `next_page` back as `page` (null on the last page). Every response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-video-comment-replies","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"bvid","in":"query","required":true,"description":"BV id, av number (aid) or a bilibili.com/video link.","schema":{"type":"string"},"example":"BV1GJ411x7h7"},{"name":"root","in":"query","required":true,"description":"The comment's rpid (from /bilibili/v1/video/comments).","schema":{"type":"string"},"example":"3760801399"},{"name":"page","in":"query","required":false,"description":"Page number.","schema":{"type":"string"}},{"name":"page_size","in":"query","required":false,"description":"Replies per page (1-20, default 20).","schema":{"type":"string"}},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"bvid":"BV1GJ411x7h7","aid":80433022,"root":"3760801399","page":1,"page_size":20,"total":2256,"count":20,"root_comment":{"rpid":"3760801399","root":null,"parent":null,"text":"坏消息：被骗了\n好消息：真好听","created_at":"2020-11-29T12:26:45.000Z","likes":772966,"reply_count":2256,"pictures":[],"emotes":[],"mentions":[],"ip_location":null,"time_text":"2165天前发布","up_liked":false,"up_replied":false,"author":{"mid":"320773657","name":"老咸鱼A","avatar":"https://i1.hdslb.com/bfs/face/10fbeb658285067378c049b290988ab49c32aee5.jpg","level":6,"sign":null,"vip":0,"official":null,"url":"https://space.bilibili.com/320773657"},"replies":[]},"replies":[{"rpid":"4012538137","root":"3760801399","parent":"3760801399","text":"[支持]","created_at":"2021-01-27T13:06:21.000Z","likes":1542,"reply_count":0,"pictures":[],"emotes":["[支持]"],"mentions":[],"ip_location":null,"time_text":"2106天前发布","up_liked":false,"up_replied":false,"author":{"mid":"441145305","name":"WtfWasThat","avatar":"https://i0.hdslb.com/bfs/face/276c7c7a9ff0ad4a11c94b75a1b6e173f8ca4c01.jpg","level":6,"sign":"im jerking off, shut up","vip":0,"official":null,"url":"https://space.bilibili.com/441145305"},"replies":[]},{"rpid":"4022566644","root":"3760801399","parent":"3760801399","text":"不懂就问，为什么是被骗了","created_at":"2021-01-29T11:28:49.000Z","likes":4215,"reply_count":0,"pictures":[],"emotes":[],"mentions":[],"ip_location":null,"time_text":"2104天前发布","up_liked":false,"up_replied":false,"author":{"mid":"629099467","name":"烈火烧啊烧","avatar":"https://i1.hdslb.com/bfs/face/780648587e22f6bc8ce74d53912d186f67bd9288.jpg","level":5,"sign":"QQ2574497438","vip":0,"official":null,"url":"https://space.bilibili.com/629099467"},"replies":[]},"… 18 more"],"next_page":2,"cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/bilibili/v1/video/comments":{"get":{"operationId":"bilibiliVideoComments","summary":"Bilibili video comments","description":"The comments on a Bilibili video, hot or newest first, 20 per page: text, date, likes, reply count, IP location, pictures, emotes, mentions, whether the uploader liked or replied, the author (mid, name, avatar, level, VIP, verification) and the first replies of each comment; the pinned comments come with the first page. Pass `next_cursor` back as `cursor` for the next page (null on the last). Use /bilibili/v1/video/comment/replies for all replies under a comment. Every response includes `credits_used`: the credits this call cost.\n\nPrice: 1 credit per successful call. Docs: https://api.sh/docs/bilibili-video-comments","tags":["Bilibili"],"x-credits":1,"parameters":[{"name":"bvid","in":"query","required":true,"description":"BV id, av number (aid) or a bilibili.com/video link.","schema":{"type":"string"},"example":"BV1GJ411x7h7"},{"name":"sort","in":"query","required":false,"description":"hot (most liked and replied) or newest.","schema":{"type":"string","enum":["hot","newest"],"default":"hot"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous response.","schema":{"type":"string"}},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/fresh"},{"$ref":"#/components/parameters/output"},{"$ref":"#/components/parameters/records"}],"responses":{"200":{"description":"The data as JSON (or CSV / NDJSON with `output`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-credits-used":{"$ref":"#/components/headers/x-credits-used"},"x-credits-remaining":{"$ref":"#/components/headers/x-credits-remaining"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"bvid":"BV1GJ411x7h7","aid":80433022,"sort":"hot","total":239800,"count":20,"pinned":[],"comments":[{"rpid":"3760801399","root":null,"parent":null,"text":"坏消息：被骗了\n好消息：真好听","created_at":"2020-11-29T12:26:45.000Z","likes":772966,"reply_count":2256,"pictures":[],"emotes":[],"mentions":[],"ip_location":null,"time_text":"2165天前发布","up_liked":false,"up_replied":false,"author":{"mid":"320773657","name":"老咸鱼A","avatar":"https://i1.hdslb.com/bfs/face/10fbeb658285067378c049b290988ab49c32aee5.jpg","level":6,"sign":null,"vip":0,"official":null,"url":"https://space.bilibili.com/320773657"},"replies":[{"rpid":"4065967309","root":"3760801399","parent":"3760801399","text":"坏消息:好消息\n好消息:坏消息","created_at":"2021-02-05T17:40:23.000Z","likes":41338,"reply_count":0,"pictures":[],"emotes":[],"mentions":[],"ip_location":null,"time_text":"2097天前发布","up_liked":false,"up_replied":false,"author":{"…":"8 fields"},"replies":[]},{"rpid":"4066363586","root":"3760801399","parent":"4065967309","text":"回复 @惠惠Megumin_ :相 对 论","created_at":"2021-02-05T21:09:50.000Z","likes":18631,"reply_count":0,"pictures":[],"emotes":[],"mentions":[{"…":"2 fields"}],"ip_location":null,"time_text":"2097天前发布","up_liked":false,"up_replied":false,"author":{"…":"8 fields"},"replies":[]}]},{"rpid":"3463001426","root":null,"parent":null,"text":"第一次听到是在罪恶都市的车载电台上，后来每次开车都会调到那个频道，然后在文件夹里面找到了这首歌(=・ω・=)","created_at":"2020-09-06T10:32:20.000Z","likes":181279,"reply_count":769,"pictures":[],"emotes":[],"mentions":[],"ip_location":null,"time_text":"2249天前发布","up_liked":false,"up_replied":false,"author":{"mid":"25364748","name":"八百里外取友军首级","avatar":"https://i0.hdslb.com/bfs/face/79d4a9c571ee977e01f9ac1113187b783e6936fd.jpg","level":6,"sign":"B站深似海","vip":0,"official":null,"url":"https://space.bilibili.com/25364748"},"replies":[{"rpid":"3578600385","root":"3463001426","parent":"3463001426","text":"罪恶都市收录了好多那个年代的经典","created_at":"2020-10-08T09:13:31.000Z","likes":10164,"reply_count":0,"pictures":[],"emotes":[],"mentions":[],"ip_location":null,"time_text":"2217天前发布","up_liked":false,"up_replied":false,"author":{"…":"8 fields"},"replies":[]},{"rpid":"3652387780","root":"3463001426","parent":"3463001426","text":"确实，我和你一样，还有一首neyo的mad,这两首陪我度过了那段童年，后来我就爱上这两首歌了。","created_at":"2020-10-30T00:46:11.000Z","likes":6512,"reply_count":0,"pictures":[],"emotes":[],"mentions":[],"ip_location":null,"time_text":"2196天前发布","up_liked":false,"up_replied":false,"author":{"…":"8 fields"},"replies":[]}]},"… 18 more"],"uploader_mid":486906719,"next_cursor":"CAEiAggC","cached":false,"credits_used":1}},"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"404":{"$ref":"#/components/responses/E404"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}}},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Create keys at https://app.api.sh/keys. Authorization: Bearer <key> also works."}},"parameters":{"raw":{"name":"raw","in":"query","required":false,"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","schema":{"type":"string","enum":["0","1"]}},"fields":{"name":"fields","in":"query","required":false,"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","schema":{"type":"string"}},"fresh":{"name":"fresh","in":"query","required":false,"description":"1 skips the 24-hour cache and fetches live.","schema":{"type":"string","enum":["1"]}},"output":{"name":"output","in":"query","required":false,"description":"csv or ndjson returns the response's records (its main list, or the object as one row) as CSV or NDJSON instead of JSON.","schema":{"type":"string","enum":["json","csv","ndjson"]}},"records":{"name":"records","in":"query","required":false,"description":"With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.","schema":{"type":"string"}}},"schemas":{"Error":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string"}},"required":["success","error"]}},"responses":{"E400":{"description":"A parameter is missing or invalid. Not charged (unless the call ran and the source rejected the value; credits_used says).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E401":{"description":"Missing, invalid, revoked or expired API key. Not charged. See https://api.sh/docs/errors#401","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E402":{"description":"Not enough credits, a spend limit you set was reached (`spend_limit`), or the key's monthly credit cap was reached (`key_cap`). Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E404":{"description":"Not found, or not public. A lookup that ran costs the endpoint's price (credits_used says); an unknown route is free.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E502":{"description":"The source site failed this time; retry. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E503":{"description":"Endpoint paused or temporarily unavailable; may include retry-after. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"headers":{"x-request-id":{"description":"The call's id (logs, re-fetch with /v1/results/{id}).","schema":{"type":"string","format":"uuid"}},"x-credits-used":{"description":"Credits charged for this call.","schema":{"type":"integer"}},"x-credits-remaining":{"description":"Balance after the call.","schema":{"type":"integer"}}}},"externalDocs":{"url":"https://api.sh/docs"}}