Get Prefetch

This API is used to get URL batch prefetch.

1. Request Definition

  • API URL
https://cdn-api.swiftfederation.com/v2.0/services/{serviceId}/prefetches/{batchId}
  • Request Method
GET
  • Request Header

Refer to HTTP Request Headers

  • Request Body Example


2. Response Definition

  • Response Header

Refer to HTTP Response Headers

  • Response Body
Field Type Description
id int the id of batch prefetch
created string the creation time
completedUrls int the number of completed urls
failedUrls string[] failed urls
pendingUrls sting[] pending urls
totalUrls int the total number of urls
  • Response Body Example
{
    "batch": {
        "id": 2,
        "completedUrls": 0,
        "created": "2020-01-06T13:26:51.127Z",
        "failedUrls": [
            "http://abc123.com.cn/abc/hello?",
            "http://abc123.com.cn/hao/nihao?a=1"
        ],
        "pendingUrls": [],
        "totalUrls": 2
    }
}
           Updated 2020-09-15 08:06:17

results matching ""

    No results matching ""