POST Search/Photos

获取图片作品

Request Information

URI Parameters

None.

Body Parameters

PhotoRequestModel
NameDescriptionTypeAdditional information
pageSize

每页多少条(默认10条)[可选]

integer

None.

pageIndex

当前是第几页(默认第1页)[可选]

integer

None.

imgtype

图片类型(默认全部)[1:照片|2:插画|3:向量][可选]

integer

None.

typeid

分类[可选]

integer

None.

key

搜索词[可选]

string

None.

selection

是否精选(默认精选)[1:是|2:否][可选]

integer

None.

direction

图片方向(默认:任意方位)[0:任意方位|1:水平| 2: 垂直][可选]

integer

None.

imageWidth

宽度[可选]

integer

None.

imageHeight

高度[可选]

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "pageSize": 1,
  "pageIndex": 2,
  "imgtype": 3,
  "typeid": 4,
  "key": "sample string 5",
  "selection": 6,
  "direction": 7,
  "imageWidth": 8,
  "imageHeight": 9
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PhotoRequestModel'.

Response Information

Resource Description

ApiResultModelOfApiPageModelOfPhotoModel
NameDescriptionTypeAdditional information
Code

CodeEnum

None.

Msg

string

None.

Result

ApiPageModelOfPhotoModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 0,
  "Msg": "sample string 1",
  "Result": {
    "pageSize": 1,
    "pageIndex": 2,
    "pageCount": 3,
    "totalCount": 4,
    "Data": [
      {
        "id": 1,
        "imgtype": 2,
        "tags": "sample string 3",
        "title": "sample string 4",
        "webformatURL": "sample string 5",
        "previewURL": "sample string 6",
        "user_id": "sample string 7",
        "user_name": "sample string 8",
        "userImageURL": "sample string 9",
        "downhtml": "sample string 10",
        "infohtml": "sample string 11",
        "imageWidth": 12,
        "imageHeight": 13,
        "views": 14,
        "downloads": 15,
        "typeid": 16,
        "typeName": "sample string 17",
        "imageSize": "sample string 18",
        "Pid": 19,
        "selection": 20,
        "time": "sample string 21",
        "FileFormat": "sample string 22",
        "lastuptime": "2025-10-29 18:57",
        "State": 24
      },
      {
        "id": 1,
        "imgtype": 2,
        "tags": "sample string 3",
        "title": "sample string 4",
        "webformatURL": "sample string 5",
        "previewURL": "sample string 6",
        "user_id": "sample string 7",
        "user_name": "sample string 8",
        "userImageURL": "sample string 9",
        "downhtml": "sample string 10",
        "infohtml": "sample string 11",
        "imageWidth": 12,
        "imageHeight": 13,
        "views": 14,
        "downloads": 15,
        "typeid": 16,
        "typeName": "sample string 17",
        "imageSize": "sample string 18",
        "Pid": 19,
        "selection": 20,
        "time": "sample string 21",
        "FileFormat": "sample string 22",
        "lastuptime": "2025-10-29 18:57",
        "State": 24
      }
    ]
  }
}