tencent cloud

APIs

PullUpload

Download
フォーカスモード
フォントサイズ
最終更新日: 2026-05-19 15:01:38

1. API Description

Domain name for API request: vod.intl.tencentcloudapi.com.

This API is used to pull a video on the internet to the VOD platform.

A maximum of 100 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: PullUpload.
Version Yes String Common Params. The value used for this API: 2018-07-17.
Region No String Common Params. This parameter is not required.
MediaUrl Yes String Media URL to be pulled. Temporary not support pull Dash format (support HLS).
Supported extensions are listed in Media type. Please ensure the media URL can access.
MediaType No String Media type (extension). Supported types are detailed in media type.
If MediaType is not filled in or takes an empty string, the file type will be automatically obtained based on MediaUrl.
SubAppId No Integer On-demand application ID. Customers who activate on-demand services from December 25, 2023 must fill this field with the app ID when accessing resources in on-demand applications (whether default or newly created).
MediaName No String Media name.
CoverUrl No String Video cover URL to pull. Supported file formats: gif, jpeg (jpg), png.
Procedure No String Media subsequent task operation. For details, see Upload Specified Task Flow.
ExpireTime No Timestamp ISO8601 The media file expiry time, format according to ISO 8601. For details, see ISO date format description.
StorageRegion No String Designate the upload park, applicable only to the user with special requirement for upload target region.
  • If left blank, files will be uploaded to your default region by default.
  • If a designated upload park is specified, please confirm the upload storage settings have already enabled corresponding storage regions.
  • ClassId No Integer Category ID, used to categorize and manage media. You can create a category and obtain the category ID via the create category API.
    TasksPriority No Integer Task priority. The higher the value, the higher the priority. The value ranges from -10 to 10. If left blank, the default value is 0.
    SessionContext No String Source context, used for passing through user request information. When specifying a Procedure task, the task flow status change callback will return the value of this field, up to 1000 characters.
    SessionId No String Identifier for deduplication. If a request with the same identifier has been sent within the past three days, an error is returned for the current request. The maximum length is 50 characters. If this is not specified or left empty, deduplication is not performed.
    ExtInfo No String Reserved field, used when special purpose.
    SourceContext No String Source context, used to pass through user request information. The callback on upload completion will return the value of this field, up to 250 characters.
    MediaStoragePath No String Media storage path, starting with /.
    Only sub-apps in FileID + Path mode can specify the storage path.

    3. Output Parameters

    Parameter Name Type Description
    TaskId String Pull Upload Task ID. The status of the pull upload task can be queried through this ID.
    RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    ">

    Example1 Pulling an MP4 video from

    and uploading it to VOD

    This example shows you how to pull an MP4 video from a URL and upload it to VOD.

    Input Example

    POST / HTTP/1.1
    Host: vod.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: PullUpload
    <Common request parameters>
    
    {
        "MediaUrl": "http://www.abc.com/abc.mp4"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "5ca61e3a-6b8e-4b4e-9256-fdc701190064ef0",
            "TaskId": "125xxxxxx07-pull-893dc41e6fdc22dcf24aa6e9c61cp94"
        }
    }
    

    ">

    Example2 Pulling an MP4 video from

    (inside the Chinese mainland) and uploading it to the Chongqing storage region

    This example shows you how to pull an MP4 video from a URL and upload it to the Chongqing storage region.

    Input Example

    POST / HTTP/1.1
    Host: vod.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: PullUpload
    <Common request parameters>
    
    {
        "StorageRegion": "ap-chongqing",
        "MediaUrl": "http://www.abc.com/abc.mp4"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "6ca61e3a-6b8e-4b4e-9256-fdc701190064ef0",
            "TaskId": "125xxxxxx07-pull-793dc41e6fdc22dcf24aa6e9c61cp94"
        }
    }
    

    ">

    Example3 Pulling an MP4 video from

    (outside the Chinese mainland) and uploading it to the Singapore storage region

    This example shows you how to pull an MP4 video from a URL and upload it to the Singapore storage region.

    Input Example

    POST / HTTP/1.1
    Host: vod.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: PullUpload
    <Common request parameters>
    
    {
        "StorageRegion": "ap-singapore",
        "MediaUrl": "http://www.abc.com/abc.mp4"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "5ca61e3a-6b8e-4b4e-9256-fdc701190064ef0",
            "TaskId": "125xxxxxx07-pull-693dc41e6fdc22dcf24aa6e9c61cp94"
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    FailedOperation Operation failed.
    FailedOperation.CoverType Operation failed: unsupported cover type.
    FailedOperation.InvalidVodUser The VOD service is not activated.
    FailedOperation.MediaType Operation failed: unsupported media type.
    InternalError Internal error.
    InvalidParameter.ExpireTime Incorrect parameter value: expiration time.
    InvalidParameter.StorageRegion Incorrect parameter value: storage region.
    InvalidParameterValue Parameter value error.
    InvalidParameterValue.CoverUrl Incorrect parameter value: cover URL.
    InvalidParameterValue.ExpireTime Incorrect parameter value: incorrect ExpireTime format.
    InvalidParameterValue.MediaStoragePath Parameter value error: Media storage path.
    InvalidParameterValue.MediaUrl Incorrect parameter value: media file URL.
    InvalidParameterValue.SessionContextTooLong SessionContext is too long.
    InvalidParameterValue.SessionId The deduplication ID already exists. The request is removed due to duplication.
    InvalidParameterValue.SessionIdTooLong SessionId is too long.
    InvalidParameterValue.StorageRegion Incorrect parameter value: StorageRegion.
    ResourceNotFound.CoverUrl The resource does not exist: the cover does not exist.
    ResourceNotFound.UserNotExist The user does not exist.
    UnauthorizedOperation Unauthorized operation.

    ヘルプとサポート

    この記事はお役に立ちましたか?

    フィードバック