Last updated: 2021-03-19 16:45:18

1. API Description

Domain name for API request: cdn.tencentcloudapi.com.

This API is used to submit multiple URL purge tasks, which are carried out according to the current acceleration region of the domain names in the URLs.
By default, a maximum of 10,000 URLs can be purged per day for acceleration regions either within or outside Mainland China, and up to 1,000 tasks can be submitted at a time.

A maximum of 20 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 parameter. The value used for this API: PurgeUrlsCache.
Version Yes String Common parameter. The value used for this API: 2018-06-06.
Region No String Common parameter. This parameter is not required for this API.
Urls.N Yes Array of String List of URLs. The protocol header such as "http://" or "https://" needs to be included.
Area No String Purging region
The acceleration region of the acceleration domain name will be purged if this parameter is not passed in
If mainland is passed in, only the content cached on nodes in the Chinese mainland will be purged
If overseas is passed in, only the content cached on nodes outside the Chinese mainland will be purged
The specified purging region should match the domain name acceleration region
UrlEncode No Boolean Whether to encode Chinese characters before purge.

3. Output Parameters

Parameter Name Type Description
TaskId String Purge task ID. URLs submitted in one request share a task ID.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Submitting a URL purge task

Input Example

&<Common request parameters>

Output Example

  "Response": {
    "RequestId": "4d5a83f8-a61f-445b-8036-5636be640bef",
    "TaskId": "1533045796-i60rfmzm"

5. Developer Resources


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