Queries images by page in a specified image library.

Description

Operation: DescribeImageFromLib

You can call this operation to query images by page in a specified image library. For more information about how to construct an HTTP request, see Request structure. You can also select an existing HTTP request. For more information, see SDK overview.

Billing: This operation is free of charge.

QPS limit

You can send up to 10 requests per second to call this operation by using your Alibaba Cloud account. If you send an excessive number of requests, throttling is implemented, and your business may be affected.

Request parameters

For more information about the common request parameters that must be included in all Content Moderation API requests, see Common parameters.

The following table describes the parameters in the request body.
Parameter Type Required Example Description
ImageLibId Integer Yes 2147 The primary key ID of the image library.
TotalCount Integer No 12 The number of images to return.
CurrentPage String No 1 The number of the page to return.
PageSize Integer Yes 10 The number of entries to return on each page.

Response parameters

For more information about common response parameters that this operation returns, see Common response parameters.
Parameter Type Example Description
TotalCount Integer 12 The number of returned images.
CurrentPage Integer 1 The number of the returned page.
PageSize Integer 10 The number of entries returned on each page.
ImageFromLibList JSONArray The list of images. For more information about the parameter structure, see Table 1.
Table 1. ImageFromLibList
Parameter Type Example Description
Id Integer 0 The primary key ID of the image.
Image String https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg The URL of the image.
Thumbnail String https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg The thumbnail URL of the image.

Examples

Sample requests
http(s)://green.cn-shanghai.aliyuncs.com/?
Action=DescribeImageFromLib&ServiceModule=open_api
&<Common request parameters>
{
  "ImageLibId": "2147"
}
Sample success responses
{
  "code": 200,
  "requestId": "73133169-C2FC-4A42-82FC-9C197BC5DCDE",
  "data": {
    "TotalCount": 12,
    "PageSize": 10,
    "CurrentPage": 1,
    "ImageFromLibList": [
      {
        "Id": 0,
        "Image": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg"
      },
      {
        "Id": 1,
        "Image": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 2,
        "Image": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 3,
        "Image": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg"
      },
      {
        "Id": 4,
        "Image": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 5,
        "Image": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 6,
        "Image": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg"
      },
      {
        "Id": 7,
        "Image": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 8,
        "Image": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 9,
        "Image": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg"
      },
      {
        "Id": 10,
        "Image": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 11,
        "Image": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 12,
        "Image": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg"
      },
      {
        "Id": 13,
        "Image": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 14,
        "Image": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 15,
        "Image": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg"
      },
      {
        "Id": 16,
        "Image": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 17,
        "Image": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 18,
        "Image": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg"
      },
      {
        "Id": 19,
        "Image": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 20,
        "Image": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 21,
        "Image": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1PDhjXrSYBuNjSspfXXcZCpXa-130-130.jpg"
      },
      {
        "Id": 22,
        "Image": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1ndhiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      },
      {
        "Id": 23,
        "Image": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg",
        "Thumbnail": "https://example.com/bao/uploaded/TB1h0hiXCCWBuNjy0FhXXb6EVXa-130-130.jpg"
      }
    ]
  }
}