openapi: 3.0.0
info:
  title: Rumble Video API
  description: |
    Get one Rumble video's details from its URL or video ID: a regular video, a live or ended stream, or a Short.

    The response carries the video's IDs, title, description, duration, upload time, views, likes, dislikes, comment and repost counts, tags, categories, thumbnail, dimensions, visibility, its Shorts, premium-only, age-restricted and live states, the live audience and stream times, and the channel's ID, name, type, link, followers, picture and verified badge. Times are UTC. Description and categories are left out for an unlisted video, and can also be missing for a public video when Rumble does not return them.

    **Cross-linking**: rumble.com links in Google Videos or Bing Videos results can be passed as `url`, and `video.id` can be passed back as `video_id`.
  version: 1.0.0
servers:
  - url: https://www.searchapi.io/api/v1
paths:
  /search:
    get:
      summary: Rumble Video Search
      security:
        - ApiKeyAuth: []
        - ApiKeyQuery: []
      parameters:
        - name: engine
          in: query
          required: true
          description: 'Search engine. Must be set to: `rumble_video`'
          schema:
            type: string
            enum: ["rumble_video"]
        - name: url
          in: query
          required: false
          description: Rumble video URL, such as `https://rumble.com/vdmum1-moose-the-dog-helps-girls-dig-a-snow-fort.html`. Watch, Shorts, share and embed links on rumble.com are accepted, with or without the scheme. Use either `url` or `video_id`.
          schema:
            type: string
            maxLength: 2048
        - name: video_id
          in: query
          required: false
          description: Rumble video ID, the part of a watch URL before the first dash, such as `vdmum1`, or Rumble's numeric video ID, such as `18507443`. An embed ID names a different video here, so pass embed links as `url`. Use either `url` or `video_id`.
          schema:
            type: string
            pattern: '^([vV][0-9a-zA-Z]{4,9}|(?!0+$)[0-9]{1,12})$'
        - name: zero_retention
          in: query
          required: false
          description: Set to true to disable logging and persistent storage for this request. Enterprise plans only.
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '400':
          description: Validation Error. There is an issue with query parameters, such as missing required parameters or invalid values.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication Error. The API key is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden. Zero data retention is not available to the account, or the account requires `zero_retention=true`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate Limit Exceeded. The number of allowed requests has been exceeded. Consider upgrading your plan or waiting for the limit to reset.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server Error. Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Timeout. We could not retrieve results in 90 seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use Bearer authentication. Format: "Bearer YOUR_API_KEY"'
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: Pass API key as query parameter
  schemas:
    SearchResponse:
      type: object
      required: [search_metadata, search_parameters]
      properties:
        search_metadata:
          $ref: '#/components/schemas/SearchMetadata'
        search_parameters:
          $ref: '#/components/schemas/SearchParameters'
        video:
          $ref: '#/components/schemas/Video'
        channel:
          $ref: '#/components/schemas/Channel'
        error:
          type: string
          description: Why there is no video to return.
    Video:
      type: object
      required: [id, embed_id, numeric_id, link, title, iso_date, views, likes, dislikes, comments, reposts, thumbnail, width, height, visibility, is_short, is_premium_only, is_age_restricted, is_live_content, is_live]
      properties:
        id:
          type: string
          description: Rumble video ID from the watch URL, accepted as `video_id`.
        embed_id:
          type: string
          description: Video ID used in the video's embed link.
        numeric_id:
          type: integer
          description: Rumble's numeric video ID, accepted as `video_id`.
        link:
          type: string
          description: Watch page URL.
        title:
          type: string
          description: Title of the video.
        description:
          type: string
          description: The description with paragraphs separated by blank lines, or the page’s shorter teaser for some Shorts.
        length_seconds:
          type: integer
          description: Duration in seconds.
        iso_date:
          type: string
          format: date-time
          description: Upload time in UTC.
        views:
          type: integer
          description: View count.
        likes:
          type: integer
          description: Upvote count.
        dislikes:
          type: integer
          description: Downvote count.
        comments:
          type: integer
          description: Comment count.
        reposts:
          type: integer
          description: Repost count.
        keywords:
          type: array
          description: Tags the uploader set.
          items:
            type: string
        categories:
          type: array
          description: The video's primary category, then its secondary category.
          items:
            type: string
        thumbnail:
          type: string
          description: Thumbnail image URL.
        width:
          type: integer
          description: Video width in pixels.
        height:
          type: integer
          description: Video height in pixels.
        visibility:
          type: string
          description: Visibility of the video, such as `public` or `unlisted`.
        live_status:
          type: string
          enum: ["ended", "upcoming", "on_air"]
          description: State of the live stream.
        viewers:
          type: integer
          description: Number of people watching the live stream now.
        started_at:
          type: string
          format: date-time
          description: Time the live stream started, in UTC.
        scheduled_at:
          type: string
          format: date-time
          description: Time the live stream was scheduled for, in UTC.
        is_short:
          type: boolean
          description: Whether the video is a Short.
        is_premium_only:
          type: boolean
          description: Whether only Rumble Premium members can watch the video.
        is_age_restricted:
          type: boolean
          description: Whether the video is age-restricted.
        is_live_content:
          type: boolean
          description: Whether the video is a live stream, on air, upcoming or ended.
        is_live:
          type: boolean
          description: Whether the live stream is on air now.
    Channel:
      type: object
      required: [id, name, type, link, followers, is_verified]
      properties:
        id:
          type: string
          description: Rumble ID of the channel or user account.
        name:
          type: string
          description: Display name of the channel or user.
        type:
          type: string
          enum: ["channel", "user"]
          description: Whether the uploader is a channel or a user account.
        link:
          type: string
          description: URL of the channel or user page.
        followers:
          type: integer
          description: Follower count.
        thumbnail:
          type: string
          description: Profile picture URL.
        is_verified:
          type: boolean
          description: Whether the channel has Rumble's verified badge.
    SearchMetadata:
      type: object
      required: [status, created_at]
      properties:
        id:
          type: string
          description: Unique identifier for the search request
        status:
          type: string
          description: Status of the search request
        created_at:
          type: string
          format: date-time
          description: Timestamp when the search was created
        request_time_taken:
          type: number
          description: Time taken to make the request in seconds
        parsing_time_taken:
          type: number
          description: Time taken to parse the results in seconds
        total_time_taken:
          type: number
          description: Total time taken for the search in seconds
        request_url:
          type: string
          description: Rumble URL for this video
        html_url:
          type: string
          description: URL to view HTML results
        json_url:
          type: string
          description: URL to view JSON results
    SearchParameters:
      type: object
      properties:
        engine:
          type: string
        url:
          type: string
        video_id:
          type: string
        zero_retention:
          type: boolean
          description: Whether zero data retention was requested
    ErrorResponse:
      type: object
      required: [error]
      properties:
        error:
          type: string
          description: Error message describing what went wrong
