Skip to content

Paged Query Existing Images

API Information

  • Request Path: /market/page/query
  • Request Method: POST
  • Content-Type: application/json

Request Headers

ParameterTypeRequiredDescription
AuthorizationStringYesUser authentication token
Content-TypeStringYesMust be set to application/json

Request Body Structure

FieldTypeRequiredDescriptionConstraints
providerStringNoProvider namevalue: changguang or tianyi, changguang represents Optical, tianyi represents SAR
startDateStringNoStart date-
endDateStringNoEnd date-
geometryStringNoGeometry-
productIdsList<String>NoProduct IDs-
sensorsList<Integer>NoSensor types-
pageNumberintYesPage number-
pageSizeintYesPage size-
imageGsdIntegerNoImage GSD-
cloudPercentDoubleNoCloud cover percentage-

Request Body Example

json
{
  "provider": "tianyi",
  "startDate": "2023-01-01",
  "endDate": "2026-12-31",
  "geometry": "{\"type\":\"Polygon\",\"coordinates\":[[[102.61282157031928,21.488503948497097],[106.99114976403081,21.488503948497097],[106.99114976403081,18.594746845159506],[102.61282157031928,18.594746845159506],[102.61282157031928,21.488503948497097]]]}",
  "pageNumber": 1,
  "pageSize": 10,
  "imageGsd": 50,
  "cloudPercent": 20.0
}

Response Body Structure

CommonResponse Object

FieldTypeDescription
codeIntegerResponse status code
messageStringResponse message
dataImageListRespResponse data

ImageListResp Object

FieldTypeDescription
totalLongTotal count
contentList<ImageListRespItem>Product list
timeItemsList<String>Time items

ImageListRespItem Object

FieldTypeDescription
idLongProduct ID
productIdStringProduct ID string
thumbStringThumbnail URL
nameStringProduct name
resolutionStringResolution
imageTimeStringImage acquisition time
minSizeBigDecimalMinimum size
deliveryInBigDecimalDelivery time
unitPriceBigDecimalUnit price
geometryStringGeometry WKT
areaBigDecimalArea size
amountBigDecimalTotal amount
discountBigDecimalDiscount rate
discountAmountBigDecimalDiscounted amount
discountUnitPriceBigDecimalDiscounted unit price
providerStringProvider name
satelliteAngleBigDecimalSatellite angle
centerLongitudeBigDecimalCenter longitude
centerLatitudeBigDecimalCenter latitude

Response Examples

Success Response

json
{
  "code": 200,
  "message": "success",
  "data": {
    "total": 100,
    "content": [
      {
        "id": 12345,
        "productId": "product_1",
        "provider": "tianyi",
        "thumb": "http://example.com/thumb.jpg",
        "name": "SAR Image",
        "resolution": "0.5m",
        "imageTime": "2023-06-15 12:00:00",
        "minSize": 25,
        "deliveryIn": 24,
        "unitPrice": 100.00,
        "geometry": "{\"type\":\"Polygon\",\"coordinates\":[[[102.6886899850927,20.21950658516742],[102.451897801616,20.16874196097035],[102.56974195534,19.67552515468356],[102.8057902075779,19.72608503057904],[102.6886899850927,20.21950658516742]]]}",
        "area": 50.5,
        "amount": 5050.00,
        "discount": 0.9,
        "discountAmount": 4545.00,
        "discountUnitPrice": 90.00,
        "satelliteAngle": 15.5,
        "centerLongitude": 120.5,
        "centerLatitude": 30.5
      }
    ],
    "timeItems": ["2023-06-15"]
  }
}

Failure Response

json
{
  "code": 400,
  "message": "Invalid date format",
  "data": null
}

Error Code Description

Error CodeDescription
200Success
400Request parameter error
401Unauthorized
500Server internal error

Usage Instructions

  1. This API is used to query market products with pagination
  2. User authentication is required
  3. Supports filtering by date range, geometry, provider, etc.
  4. Returns a paginated list of products

Notes

  • Geometry should be in WKT format
  • Date format should be YYYY-MM-DD