Skip to main content
GET
/
v1
/
getSubtitle
Only returns the video subtitles array in detail
curl --request GET \
  --url https://api.bibigpt.co/api/v1/getSubtitle \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "id": "<string>",
  "service": "<string>",
  "sourceUrl": "<string>",
  "htmlUrl": "<string>",
  "summary": "<string>",
  "costDuration": 123,
  "remainingTime": 123,
  "detail": {
    "summary": "<string>",
    "dbId": "<string>",
    "id": "<string>",
    "embedId": "<string>",
    "pageId": "<string>",
    "url": "<string>",
    "rawLang": "<string>",
    "translationUrls": [
      {
        "code": "<string>",
        "url": "<string>"
      }
    ],
    "audioUrl": "<string>",
    "playUrl": "<string>",
    "type": "bilibili",
    "title": "<string>",
    "cover": "<string>",
    "author": "<string>",
    "authorId": "<string>",
    "duration": 123,
    "publishedDate": "<any>",
    "subtitlesArray": [
      {
        "startTime": 123,
        "end": 123,
        "text": "<string>",
        "index": 123,
        "words": [
          {
            "start": 123,
            "end": 123,
            "text": "<string>",
            "punctuation": "<string>"
          }
        ],
        "speaker_id": 123,
        "_isGrouped": true,
        "_originalSubtitles": [
          "<any>"
        ]
      }
    ],
    "descriptionText": "<string>",
    "contentText": "<string>",
    "aiImages": [
      {
        "startTime": 123,
        "endTime": 123,
        "image": "<string>",
        "prompt": "<string>"
      }
    ],
    "chapters": [
      {
        "from": 123,
        "to": 123,
        "content": "<string>",
        "type": 123,
        "imgUrl": "<string>"
      }
    ],
    "local_path": "<string>",
    "status": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

url
string
required

The URL to the video (e.g., ?url=https://www.bilibili.com/video/BV1Sk4y1x7r2)

audioLanguage
string
enabledSpeaker
boolean

Response

Successful response

success
boolean
required
id
string
required
service
string
required
sourceUrl
string
required
htmlUrl
string
required
costDuration
number
required
remainingTime
number
required
summary
string
detail
object
  • Option 1
  • Option 2
I