Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Setting YouTube Subtitles Tasks

Server:https://openapi.felo.ai
Client Libraries

DataForSEO

​

SEO, search-engine results, keyword research, backlinks and AI visibility data.

Setting YouTube Subtitles Tasks

​

Queues one YouTube video's subtitle track on YouTube, returning a task id in tasks[0].id. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. The live twin answers immediately and is simpler for a single query; queue when the batch would outlast a tool call.

Body
required
application/json
  • Type: array object[]
    • Type: object
      • video_id
        Type: string
        required

        ID of the video

      • language_code
        Type: string

        YouTube interface language code, for example en. Provide this or language_name.

      • language_name
        Type: string

        YouTube interface language name, for example English. Provide this or language_code.

      • location_code
        Type: integer

        YouTube location code, for example 2840. Provide this or location_name.

      • location_name
        Type: string

        YouTube location name, for example United States. Provide this or location_code.

      • pingback_url
        Type: string

        Notification URL of a completed task

      • postback_data
        Type: string

        Postback datatype; possible value: advanced

      • postback_url
        Type: string

        URL for sending task results

      • priority
        Type: integer

        Task priority

      Empty object
      Empty object
      • Empty object
Responses
  • 200
    Type: object

    Successful response

    • cost
      Type: number

      Total tasks cost, USD

    • status_code
      Type: integer

      General status code

    • status_message
      Type: string

      General informational message

    • tasks
      Type: array string[]

      Array of task objects

    • tasks_count
      Type: integer

      The number of tasks in the tasks array

    • tasks_error
      Type: integer

      The number of tasks in the tasks array returned with an error

    • tasks[].cost
      Type: number

      Cost of the task, USD

    • tasks[].id
      Type: string

      Task identifier in UUID format

    • tasks[].result_count
      Type: integer

      Number of elements in the result array

    • tasks[].status_code
      Type: integer

      Task status code

    • tasks[].status_message
      Type: string

      Task status message

    • time
      Type: string

      Execution time, seconds

    • version
      Type: string

      The current version of the API

    application/json
  • 400

    Bad request

  • 401

    Unauthorized

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    Rate limit exceeded

  • 500

    Internal server error

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for post/v1/beta/dataforseo/serp/youtube/video_subtitles/task_post
curl https://openapi.felo.ai/v1/beta/dataforseo/serp/youtube/video_subtitles/task_post \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '[
  {
    "language_code": "en",
    "video_id": "aircAruvnKk",
    "location_code": 2840
  }
]'
{
  "version": "string",
  "status_code": 1,
  "status_message": "string",
  "time": "string",
  "cost": 1,
  "tasks_count": 1,
  "tasks_error": 1,
  "tasks": [
    "string"
  ],
  "tasks[].id": "string",
  "tasks[].status_code": 1,
  "tasks[].status_message": "string",
  "tasks[].cost": 1,
  "tasks[].result_count": 1
}
Setting YouTube Subtitles Tasks