Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Bilibili Video Search

API 문서
https://api.sandbase.ai/v1/api/bilibili/search-video

Search Bilibili videos by keyword with page-based pagination and sorting by general ranking, play count, publish time, danmaku count, or favorites.

가격
$0.014286USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 2개

Playground

입력
Search keyword.
Page number for pagination.
Sorting criteria for search results.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

API README

Bilibili Video Search API

Returns one page of Bilibili video search results for a keyword. Each result has the video IDs, title-matched author, play, like, favorite and danmaku counts, duration and publish time. The only required input is keyword.

Use cases

  • Track which videos rank first for a game or brand keyword such as 原神.
  • Find the most played or most favorited videos on a topic by setting order to click or stow.
  • Monitor new uploads about a keyword by sorting with pubdate.
  • Collect bvid and mid values to feed into video detail or creator lookups.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/search-video" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "原神"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword.
orderstringNoSorting criteria for search results.
pagestringNoPage number for pagination.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "code": 0,
  "data": {
    "egg_hit": 0,
    "exp_list": {
      "100010": true,
      "105208": true,
      "106000": true,
      "5502": true,
      "55020101": true,
      "64778101": true,
      "65785101": true,
      "6600": true,
      "70529100": true,
      "73163100": true,
      "78757104": true,
      "78772100": true
    },
    "in_black_key": 0,
    "in_white_key": 0,
    "is_hit_web_inf": false,
    "next": 2,
    "numPages": 50,
    "numResults": 1000,
    "page": 1,
    "pagesize": 20,
    "result": [
      {
        "aid": 117547651307164,
        "arcurl": "http://www.bilibili.com/video/av117547651307164",
        "area": 0,
        "author": "原神",
        "badgepay": false,
        "biz_data": null,
        "bvid": "BV19b4A6PECX",
        "card_status": 0,
        "cate_name": "",
        "cny_flag": 0,
        "corner": "",
        "cover": ""
      }
    ],
    "rqt_type": "search"
  },
  "message": "OK",
  "ttl": 1
}

Response fields

FieldMeaning
data.result[].bvid / data.result[].aidThe BV ID and numeric AV ID of the video. arcurl holds the video page link when it is set.
data.result[].author / data.result[].midName and numeric ID of the uploader.
data.result[].play / data.result[].danmaku / data.result[].favorites / data.result[].likeCounts of plays, danmaku comments, favorites and likes for the video.
data.result[].durationVideo length as a text value such as 11:21.
data.result[].pubdatePublish time as a Unix timestamp in seconds.
data.result[].descriptionVideo description text. The desc field is empty in this response.
data.result[].picCover image URL. It starts with //, so add a scheme such as https: before use.
data.result[].hit_columnsLists which parts of the video matched the keyword, such as title, description, author or tag. It is null for some results.
data.result[].rank_indexPosition of the result in the ranking, starting at 1.
data.result[].biz_dataExtra block that holds ad data. It is null for normal results and filled for ad slots, where is_ad_loc is true.
data.page / data.pagesize / data.numPages / data.numResults / data.nextCurrent page number, results per page, total pages, total result count and the next page number.

Notes

  • Pass page to move through results. The response data.next gives the next page number, and data.page shows the current one.
  • Valid order values are general (default), click, pubdate, dm and stow.
  • Ad results can appear in data.result[]. They have a filled biz_data object, and some have an empty arcurl, pic, or zero like and favorites.
  • Use the bvid with Bilibili Video Details or Bilibili Video Comments. Use mid with Bilibili User Profile.

Pricing

$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

더 살펴보기

관련 API

모든 API
API가격응답
Bilibili$0.014286 / 호출JSON
Bilibili$0.001 / 호출JSON
Bilibili$0.001 / 호출JSON
Bilibili$0.001 / 호출JSON
Bilibili$0.001 / 호출JSON
Bilibili$0.001 / 호출JSON

가이드:Best Bilibili API in 2026: Pricing Compared

질문

FAQ

Bilibili Video Search API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/bilibili/search-video에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Bilibili Video Search API 비용은 얼마인가요?

호출당 $0.014286, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Bilibili Video Search API는 어떤 매개변수를 받나요?

필수: keyword (string). 선택: page (string) 및 order(general, click, pubdate, dm, stow 중 하나). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Bilibili Video Search API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Bilibili 개발자 계정이나 API 키가 필요한가요?

아니요. Bilibili Video Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Bilibili API 액세스를 별도로 신청할 필요는 없습니다.