Image Service

Description

An image service provides access to raster data through a web service. Multiple rasters can be served as one image service through mosaic dataset technology, dynamically processed and mosaicked on the fly. An image service supports accessing the mosaicked image, its catalog, and the individual rasters in the catalog.

An image service supports dynamic access and tiled access. Dynamic access provides more functionality, and tiled access provides faster and more scalable access to precooked tiles. There are two types of tiles: map tiles and elevation tiles. Map tiles (introduced at 10.1) represent rendered map images, typically in JPEG or PNG format. Elevation tiles (introduced at 10.3) represent elevation data and are stored as Limited Error Raster Compression (LERC) tiles.

The ArcGIS REST API ImageServer resource root information represents an image service published with ArcGIS Server. The resource provides basic information associated with the image service, such as the service description, its name, its extent, pixel sizes, and band counts.

10.3.1

At 10.3.1 and later, this resource also returns the advancedQueryCapabilities property, which indicates the useStandardizedQueries, supportsStatistics, supportsOrderBy, supportsDistinct, and supportsPagination values.

10.3

At 10.3 and later, this resource also does the following:

  • Returns the hasMultidimensions property, which indicates whether a multidimensionalInfo resource is available.

  • Returns the optional lercError property in tileInfo, which is available for LERC compressed cache tiles.

  • Takes an optional renderingRule parameter.

10.2.1

At 10.2.1 and later, this resource also returns the supportsStatistics and supportsAdvancedQueries properties. Both return true if the data source is a mosaic dataset in a file or enterprise workspace.

10.2

At 10.2 and later, this resource also returns the allowComputeTiepoints and useStandardizedQueries properties.

10.1

At 10.1 and later, the Image Service resource has an input option and outSR parameters to support viewing of an image service footprint in ArcGIS Online Map Viewer Classic. Also at 10.1, this resource includes the following:

  • initialExtent, fullExtent, singleFusedMapCache, and tileInfo properties that indicate cache information of the service.
  • defaultMosaicMethod, mosaicOperator, defaultCompressionQuality, and defaultResamplingMethod properties that indicate service defaults. The default mosaic rule is composed of defaultMosaicMethod and mosaicOperator. When defaultMosaicMethod is esriMosaicAttribute, Image Service uses sortField and sortValue along with it.
  • allowRasterFunction, allowedMosaicMethods, maxRecordCount, maxImageHeight, maxImageWidth, maxDownloadImageCount,maxDownloadSizeLimit, and maxMosaicImageCount properties that indicate service constraints.
  • rasterFunctionInfos, rasterTypeInfos, and mensurationCapabilities properties that indicate supported raster function templates (for exporting images), raster types (for adding and updating rasters), and mensuration capabilities (for mensuration).
  • hasHistograms, hasColormap, and hasRasterAttributeTable properties that indicate whether a corresponding resource is available for the service.
  • The capabilities property that indicates supported operations.
  • editFieldsInfo and ownershipBasedAccessControlForRasters values containing editor tracking and access control related properties.
  • The Raster ICS To Pixel property that provides coefficients to build the mathematic model for the geometric transformation between image coordinate space and map coordinate space.
  • The Raster Info property that obtains information about the associated raster, such as its width, height, number of bands, and pixel type.

10.0

At 10.0 and later, this resource also returns the accessible fields and timeInfo of the image service.

Child operations

The ImageServer resource supports the following operations

Child resources

The ImageServer resource provides the following child resources.

Request parameters

Parameter

Details

option

This parameter was added at 10.1. If option is footprints, the footprint of the image service is returned as a feature collection. This feature collection can be viewed in an ArcGIS Online map. This is only supported when the format (f) parameter is specified as json.

Value: footprints

outSR

This parameter was added at 10.1. The spatial reference of the geometry returned in footprints. This parameter is supported only when option is specified as footprints. The spatial reference should be specified as a well-known ID. If outSR is not specified, the geometry is returned in GCS_WGS_1984.

renderingRule

This parameter was added at 10.3.The rendering rule for how the requested image will be processed is specified. The response is updated service information that reflects a custom processing as defined by the rendering rule. For example, if renderingRule contains an attributeTable function, the response will indicate "hasRasterAttributeTable" as true; if the renderingRule contains functions that alter the number of bands, the response will indicate the correct bandCount value.

See Raster function objects for the syntax and examples.

f

The response format. The default response format is html.

Values: html | json | kmz | lyr

Example usage

Below are two examples for the ImageServer resource.

Example one

Below is an example that directs users to an image service.

https://sampleserver6.arcgisonline.com/arcgis/rest/services/CharlotteLAS/ImageServer

JSON Response syntax

{
  "currentVersion": <currentVersion>, //Added at 10.0 SP1
  "serviceDescription": "<serviceDescription>",
  "name": "<name>",//name of the service
  "description": "<description>",
  "extent": {<extent>},//extent of the service
  "initialExtent": {<envelope>}, //New in 10.1. Initial extent of the service.
  "fullExtent": {<envelope>}, //New in 10.1. Full extent of the service.
  "timeInfo": { //Added at 10.0. Optional. Time information of the service.
    "startTimeField": "<startTimeField>",//New in 10.1. The name of the attribute used as start time.
    "endTimeField": "<endTimeField>",//New in 10.1. The name of the attribute used as end time.
    "timeExtent": [<startTime>, <endTime>],//Added at 10.0. The time extent of the service (start/end), represented using "Epoch time": milliseconds since 1970.
    "timeReference": null//Added at 10.0. The time reference of the service
  },
  "pixelSizeX": <pixelSizeX>,//The base pixel size in X dimension. It's usually the source resolution of single raster service, or best available raster resolution in a mosaic dataset (can be multiresolution, multi-source).
  "pixelSizeY": <pixelSizeY>,//The base pixel size in Y dimension. It's usually the source resolution of single raster service, or best available raster resolution in a mosaic dataset (can be multiresolution, multi-source).
  "bandCount": <bandCount>,//Number of bands of the image service.
  "pixelType": "<pixelType>",//Represents pixel type, e.g., U8 means unsigned 8bit; F32 means float 32bit; S16 means signed 16bit
  "minPixelSize": <minPixelSize>,//Minimum pixel size.
  "maxPixelSize": <maxPixelSize>,//Maximum pixel size.
  "copyrightText": "<copyrightText>",//Copyright text.
  "serviceDataType": "<serviceDataType>",//Type of service data, can be: 
  "minValues": [<minValue1>, <minValue2>],//Minimum pixel values of all bands
  "maxValues": [<maxValue1>, <maxValue2>],//Maximum pixel values of all bands
  "meanValues": [<meanValue1>, <meanValue2>],//Mean pixel values of all bands
  "stdvValues": [<stdvValue1>, <stdvValue2>],//Standard deviation of pixel values of all bands
  "objectIdField": "<objectIdFieldName>", //Accessible fields - added at 10
  "fields": [ //domain property is added at 10.1. Editable and nullable properties are available only if image service has edit capability
    {
      "name": "<fieldName1>",
      "type": "<fieldType1>",
      "alias": "<fieldAlias1>",
      "length": "<length1>",
      "editable": "<true | false>",
      "nullable": "<true | false>",
      "domain": <domain1>
    },
    {
      "name": "<fieldName2>",
      "type": "<fieldType2>",
      "alias": "<fieldAlias1>",
      "length": "<length2>",
      "editable": "<true | false>",
      "nullable": "<true | false>",
      "domain": <domain2>
    }
  ],
  "capabilities": "<capabilities>", //New in 10.1. Comma-separated list of supported capabilities, e.g., "Image,Metadata,Pixels,Catalog,Download,Mensuration,Edit,Uploads".
  "defaultCompressionQuality": "<defaultCompressionQuality>", //New in 10.1. Default compression quality of jpeg format exported image (applies to jpg and jpgpng).
  "defaultResamplingMethod": "<defaultResamplingMethod>", //New in 10.1. Default resampling method. 
  "maxImageHeight": <maxImageHeight>, //New in 10.1. The maximum number of rows that the service allows in a client request.
  "maxImageWidth": <maxImageWidth>, //New in 10.1. The maximum number of columns that the service allows in a client request.
  "defaultMosaicMethod": "<defaultMosaicMethod>", //New in 10.1. Optional. Default mosaic method.
  "allowedMosaicMethods": "<allowedMosaicMethods>", //New in 10.1. Optional. Comma-separated list of allowed mosaic methods. Can be one or more of the following: None,Center,NorthWest,LockRaster,ByAttribute,Nadir,Viewpoint,Seamline  (not case sensitive). Corresponds to the following enums: esriMosaicNone | esriMosaicCenter | esriMosaicNorthwest | esriMosaicLockRaster | esriMosaicAttribute | esriMosaicNadir | esriMosaicViewpoint | esriMosaicSeamline
  "sortField": "<sortField>", //New in 10.1. Optional. Specifies the sort field of default mosaic rule when byattribute is used as the default mosaic method.
  "sortValue": <sortValue>, //New in 10.1. Optional. Specifies the sort base value of default mosaic rule when byattribute is used as the default mosaic method. The type depends on attribute type
  "mosaicOperator": "<mosaicOperator>", //New in 10.1. Optional. Specifies default mosaic operator.
  "maxRecordCount": <maxRecordCount>, //New in 10.1. Optional. The maximum records returned in a query response. For single raster-based image services, the maxRecordCount is -1. 
  "maxDownloadImageCount": <maxDownloadImageCount>, //New in 10.1. Optional. The maximum number of downloadable rasters (number of rows) that the service allows per request
  "maxDownloadSizeLimit": <maxDownloadSizeLimit>, //New in 10.1. Optional. The maximum size of download raster request that the service allows per request
  "maxMosaicImageCount": <maxMosaicImageCount>, //New in 10.1. Optional. The maximum number of rasters the service can mosaic per request
  "singleFusedMapCache": <true | false>, //New in 10.1. Indicates the existence of tile resource
  "cacheDirectory": "<cacheDirectory>", //New in 10.1 SP2. Optional. The cache directory
  "tileInfo": { //New in 10.1. Optional. Information of tile resource
    "rows": <rows>, 
    "cols": <cols>, 
    "dpi": <dpi>, 
    "format": <format>, 
    "compressionQuality": <quality>,
    "lercError":<lercError>, //optional, double, new in 10.3 -- for cache tiles stored in lerc compression
    "origin": {<point>},
    "spatialReference": {<spatialReference>},
    "lods": [
      {
        "level": <level1>,
        "resolution": <resolution1>,
        "scale": <scale1>
      },
      {
        "level": <level2>,
        "resolution": <resolution2>,
        "scale": <scale2>
      }
    ]
  },
		"transposeInfo": { //New in 11.0. Optional. Information of transposed tile resource 
  	 "cols": 8,
  	 "rows": 8
 	},
  "minScale": <minScale>, //New in 10.1. The denominator of the minimum scale at which caching may be available. It's 0 for not cached service. 
  "maxScale": <maxScale>, //New in 10.1. The denominator of the maximum scale at which caching may be available. It's 0 for not cached service. 
  "allowRasterFunction": [<allowRasterFunction>], //New in 10.1. Indicates whether the service allows raster functions in request
  "rasterFunctionInfos":   [ //New in 10.1. Optional. Specifies the supported raster function templates the client can invoke. The first one is applied to exportImage request by default
    {
      "name": "<name>",
      "description": "<description>",
      "help": "<help>"
    }
  ],
  "editFieldsInfo": { //New in 10.1. Optional. Editor tracking fields information.
    "creationDateField": "<creationDateField>",
    "creatorField": "<creatorField>",
    "editDateField": "<editDateField>",
    "editorField": "<editorField>"
    "realm":"<realm>",
  },
  "ownershipBasedAccessControlForRasters": { //New in 10.1. Optional. Ownership-based access (update/delete) control information.
    "allowOthersToUpdate": <true | false>,
    "allowOthersToDelete": <true | false>
  },
  "rasterTypeInfos": [ //New in 10.1. Optional. Supported raster types in add rasters operation
    {
      "name": "<name>",
      "description": "<description>",
      "help": "<help>"
    }
  ], 
  "mensurationCapabilities": "<mensurationCapabilities>", //New in 10.1. Mensuration capabilities, one or more in "Basic,Base-Top Height,Top-Top Shadow Height,Base-Top Shadow Height,3D"
  "hasHistograms": <true | false>,  //New in 10.1. Indicates the existence of histograms resource.
  "hasColormap": <true | false>,
  "hasRasterAttributeTable": <true | false>, //New in 10.1. Indicates the existence of raster attribute table resource.
  "spatialReference" : {<spatialReference>}, //New in 10.1 SP1.
  "allowComputeTiePoints":<true | false>, //New at 10.2
  "useStandardizedQueries":<true | false>, //New at 10.2
  "supportsStatistics":<true | false>, //New at 10.2.1
  "supportsAdvancedQueries":<true | false>, //New at 10.2.1
  "hasMultidimensions":<true | false>, //New at 10.3
  "advancedQueryCapabilities": { //New at 10.3.1
    "useStandardizedQueries": <true | false>,
    "supportsStatistics": <true | false>,
    "supportsOrderBy": <true | false>,
    "supportsDistinct": <true | false>,
    "supportsPagination": <true | false>
  }
}

JSON Response example

{
  "currentVersion": 10.3,
  "serviceDescription": "Test Image Service Description",
  "name": "wsiearth.tif",
  "description": "wsiearth.tif",
  "extent": {
    "xmin": -180,
    "ymin": -90,
    "xmax": 180,
    "ymax": 90,
    "spatialReference": {
      "wkid": 4326,
      "latestWkid": 4326
    }
  },
	 "initialExtent": {
    "xmin": -180,
    "ymin": -90,
    "xmax": 180,
    "ymax": 90,
    "spatialReference": {
      "wkid": 4326,
      "latestWkid": 4326
    }
  },
	 "fullExtent": {
    "xmin": -180,
    "ymin": -90,
    "xmax": 180,
    "ymax": 90,
    "spatialReference": {
      "wkid": 4326,
      "latestWkid": 4326
    }
  },
  "timeInfo": {
    "startTimeField": "AcquisitionDate",
    "endTimeField": "",
    "timeExtent": [
      1106822673000,
      1125907321000
    ],
    "timeReference": null
  },
  "pixelSizeX": 30.386,
  "pixelSizeY": 30.386,
  "bandCount": 3,
  "pixelType": "U8",
  "minPixelSize": 0.0,
  "maxPixelSize": 0.0,
  "copyrightText": "ESRI",
  "editFieldsInfo": {
    "creationDateField": "DateCreated",
    "creatorField": "CreationUser",
    "editDateField": "DateModified",
    "editorField": "LastUser",
	   "realm": "myserver"
  },
  "ownershipBasedAccessControlForRasters": {
    "allowOthersToUpdate": false,
    "allowOthersToDelete": false
  },	
  "serviceDataType": "esriImageServiceDataTypeRGB",
  "minValues": [
    0.0,
    0.0,
    0.0
  ],
  "maxValues": [
    255.0,
    254.0,
    255.0
  ],
  "meanValues": [
    82.707,
    107.448,
    60.118
  ],
  "stdvValues": [
    39.838,
    37.735,
    36.466
  ],
  "objectIdField": "OBJECTID",
  "fields": [
    {
      "name": "OBJECTID",
      "type": "esriFieldTypeOID",
      "alias": "OBJECTID",
      "domain": null,
      "editable": false,
      "nullable": false
    },
    {
      "name": "Shape",
      "type": "esriFieldTypeGeometry",
      "alias": "Shape",
			   "domain": null,
			   "editable": false,
			   "nullable": false
    },
    {
      "name": "Name",
      "type": "esriFieldTypeString",
      "alias": "Name",
      "domain": null,
      "editable": true,
      "nullable": true,
      "length": 50
    },
    {
      "name": "Category",
      "type": "esriFieldTypeInteger",
      "alias": "Category",
      "domain": {
        "type": "codedValue",
        "name": "MosaicCatalogItemCategoryDomain",
        "codedValues": [
          {
            "name": "Unknown",
            "code": 0
          },
          {
            "name": "Primary",
            "code": 1
          },
          {
            "name": "Overview",
            "code": 2
          },
          {
            "name": "Unprocessed Overview",
            "code": 3
          },
          {
            "name": "Partial Overview",
            "code": 4
          },
          {
            "name": "Uploaded",
            "code": 253
          },
          {
            "name": "Incomplete",
            "code": 254
          },
          {
            "name": "Custom",
            "code": 255
          }
        ]
      },
      "editable": false,
      "nullable": true
    }
  ],
  "capabilities": "Image,Metadata,Pixels,Catalog,Download",
  "defaultMosaicMethod": "Center",
  "allowedMosaicMethods": "Center,NorthWest,LockRaster,ByAttribute,Nadir,Viewpoint,Seamline",
  "maxRecordCount": 500,
  "maxImageHeight": 4100,
  "maxImageWidth": 15000,
  "defaultResamplingMethod": "Bilinear",
  "maxDownloadImageCount": 20,
  "maxDownloadSizeLimit": 2048,
  "maxMosaicImageCount": 20,
  "singleFusedMapCache": true,
  "tileInfo": {
    "rows": 256,
    "cols": 256,
    "dpi": 96,
    "format": "Mixed",
    "compressionQuality": 75,
    "origin": {
      "x": -5120900,
      "y": 9998100
    },
    "spatialReference": {"wkt": "PROJCS[\"WGS_84_UTM_zone_12N\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"false_easting\",500000.0],PARAMETER[\"false_northing\",0.0],PARAMETER[\"central_meridian\",-111.0],PARAMETER[\"scale_factor\",0.9996],PARAMETER[\"latitude_of_origin\",0.0],UNIT[\"Meter\",1.0]]"},
    "lods": [
      {
        "level": 0,
        "resolution": 529.1677250021168,
        "scale": 2000000
      },
      {
        "level": 1,
        "resolution": 264.5838625010584,
        "scale": 1000000
      },
      {
        "level": 2,
        "resolution": 132.2919312505292,
        "scale": 500000
      },
      {
        "level": 3,
        "resolution": 66.1459656252646,
        "scale": 250000
      },
      {
        "level": 4,
        "resolution": 33.0729828126323,
        "scale": 125000
      }
    ]
  },
  "allowRasterFunction": true,
  "rasterFunctionInfos": [
    {
      "name": "NDVIWithColormap",
      "description": "A raster function template.",
      "help": ""
    }
  ],
  "rasterTypeInfos": [
    {
      "name": "Raster Dataset",
      "description": "Supports all ArcGIS Raster Datasets",
      "help": ""
    }
  ],
  "mensurationCapabilities": "Basic, Base-Top Height",
  "hasHistograms": true,
  "hasColormap": false,
  "hasRasterAttributeTable": false,
  "hasMultidimensions": true,
  "allowComputeTiePoints": false,
  "useStandardizedQueries": true,
  "supportsStatistics":true,
  "supportsAdvancedQueries":true,
  "spatialReference" : {
    "wkid" : 4326,
    "latestWkid": 4326
  },
  "advancedQueryCapabilities": {
    "useStandardizedQueries": true,
    "supportsStatistics": true,
    "supportsOrderBy": true,
    "supportsDistinct": true,
    "supportsPagination": true
  }
}

Example two

Below is a sample request URL that demonstrates how to request a footprint for a service:

https://sampleserver6.arcgisonline.com/arcgis/rest/services/CharlotteLAS/ImageServer?f=json&option=footprints&outSR=102100

JSON Response syntax

{
  "featureCollection": {
    "layers": [
      {
        "layerDefinition": {
          "type": "Feature Layer",
          "geometryType": "esriGeometryPoint",
          "extent": {
            <envelope>
          },
          "objectIdField": "id",
          "displayFieldName": "<displayFieldName>",
          "drawingInfo": {
            "renderer": {
              "type": "simple",
              "label": "<label>",
              "description": "",
              "symbol": {
                "height": 24,
                "xoffset": 0,
                "yoffset": 0,
                "width": 24,
                "contentType": "image/png",
                "type": "esriPMS",
                "imageData": "<imageData>",
                "url": "<imageUrl>"
              }
            }
          },
          "fields": [
            {
              "name": "id",
              "alias": "ID",
              "type": "esriFieldTypeOID"
            },
            {
              "name": "title",
              "alias": "Title",
              "type": "esriFieldTypeString"
            },
            {
              "name": "summary",
              "alias": "Summary",
              "type": "esriFieldTypeString"
            },
            {
              "name": "description",
              "alias": "Description",
              "type": "esriFieldTypeString"
            },
            {
              "name": "tags",
              "alias": "Tags",
              "type": "esriFieldTypeString"
            },
            {
              "name": "type",
              "alias": "Type",
              "type": "esriFieldTypeString"
            },
            {
              "name": "thumbnail",
              "alias": "Thumbnail",
              "type": "esriFieldTypeString"
            },
            {
              "name": "xmin",
              "alias": "xmin",
              "type": "esriFieldTypeDouble"
            },
            {
              "name": "ymin",
              "alias": "ymin",
              "type": "esriFieldTypeDouble"
            },
            {
              "name": "xmax",
              "alias": "xmax",
              "type": "esriFieldTypeDouble"
            },
            {
              "name": "ymax",
              "alias": "ymax",
              "type": "esriFieldTypeDouble"
            },
            {
              "name": "accessInformation",
              "alias": "Access Information",
              "type": "esriFieldTypeString"
            },
            {
              "name": "licenseInfo",
              "alias": "License Information",
              "type": "esriFieldTypeString"
            },
            {
              "name": "credits",
              "alias": "Credits",
              "type": "esriFieldTypeString"
            },
            {
              "name": "link",
              "alias": "Link",
              "type": "esriFieldTypeString"
            },
            {
              "name": "arcgisJslink",
              "alias": "ArcgisJsLink",
              "type": "esriFieldTypeString"
            }
          ]
        },
        "featureSet": {
          "geometryType": "esriGeometryPoint",
          "spatialReference": {
            "wkid": <wkid>
          },
          "features": [
            {
              "geometry": {
                <point>
              },
              "attributes": {
                "id": 1,
                "title": "<title>",
                "summary": "<summary>",
                "description": "<description>",
                "tags": "[\"<tag1>\,\"<tag2>\"]",
                "type": "ImageServer",
                "thumbnail": "<thumbnailUrl>",
                "xmin": <xmin>,
                "ymin": <ymin>,
                "xmax": <xmax>,
                "ymax": <ymax>,
                "accessInformation": "<accessInformation>",
                "licenseInfo": "<licenseInfo>",
                "credits": "<credits>",
                "link": "<serviceResourceLink>",
                "arcgisJslink": "<View in JSAPI Link>"
              }
            }
          ]
        },
        "popupInfo": {
          "title": "{title} ({type})",
          "fieldInfos": [
            {
              "fieldName": "id",
              "label": "ID",
              "visible": false
            },
            {
              "fieldName": "title",
              "label": "Title",
              "visible": true
            },
            {
              "fieldName": "summary",
              "label": "Summary",
              "visible": true
            },
            {
              "fieldName": "description",
              "label": "Description",
              "visible": true
            },
            {
              "fieldName": "tags",
              "label": "Tags",
              "visible": true
            },
            {
              "fieldName": "type",
              "label": "Type",
              "visible": true
            },
            {
              "fieldName": "thumbnail",
              "label": "Thumbnail",
              "visible": false
            },
            {
              "fieldName": "xmin",
              "label": "xmin",
              "format": {
                "places": 2,
                "digitSeparator": false
              },
              "visible": false
            },
            {
              "fieldName": "ymin",
              "label": "ymin",
              "format": {
                "places": 2,
                "digitSeparator": false
              },
              "visible": false
            },
            {
              "fieldName": "xmax",
              "label": "xmax",
              "format": {
                "places": 2,
                "digitSeparator": false
              },
              "visible": false
            },
            {
              "fieldName": "ymax",
              "label": "ymax",
              "format": {
                "places": 2,
                "digitSeparator": false
              },
              "visible": false
            },
            {
              "fieldName": "accessInformation",
              "label": "Access Information",
              "visible": true
            },
            {
              "fieldName": "licenseInfo",
              "label": "License Information",
              "visible": true
            },
            {
              "fieldName": "credits",
              "label": "Credits",
              "visible": true
            },
            {
              "fieldName": "link",
              "label": "Link",
              "visible": true
            }
          ],
          "description": null,
          "showAttachments": false,
          "mediaInfos": [
            {
              "type": "image",
              "caption": "Initial Extent: [{xmin}, {ymin}] - [{xmax}, {ymax}]",
              "value": {
                "sourceURL": "{thumbnail}",
                "linkURL": "{arcgisJslink}"
              }
            }
          ]
        }
      }
    ]
  }
}

JSON Response example

{
  "featureCollection": {
    "layers": [
      {
        "layerDefinition": {
          "type": "Feature Layer",
          "geometryType": "esriGeometryPoint",
          "extent": {
            "xmin": -13847325.10565813,
            "ymin": 3833856.441897385,
            "xmax": -12704325.10565813,
            "ymax": 5161307.765959541,
            "spatialReference": {
              "wkid": 102100
            }
          },
          "objectIdField": "id",
          "displayFieldName": "Maps/CaliforniaDEMImageServer",
          "drawingInfo": {
            "renderer": {
              "type": "simple",
              "label": "Maps/CaliforniaDEM",
              "description": "",
              "symbol": {
                "height": 24,
                "xoffset": 0,
                "yoffset": 0,
                "width": 24,
                "contentType": "image/png",
                "type": "esriPMS",
                "url": "https://machine.domain.com/webadaptor/rest/static/images/RedShinyPin.png"
              }
            }
          },
          "fields": [
            {
              "name": "id",
              "alias": "ID",
              "type": "esriFieldTypeOID"
            },
            {
              "name": "title",
              "alias": "Title",
              "type": "esriFieldTypeString"
            },
            {
              "name": "summary",
              "alias": "Summary",
              "type": "esriFieldTypeString"
            },
            {
              "name": "description",
              "alias": "Description",
              "type": "esriFieldTypeString"
            },
            {
              "name": "tags",
              "alias": "Tags",
              "type": "esriFieldTypeString"
            },
            {
              "name": "type",
              "alias": "Type",
              "type": "esriFieldTypeString"
            },
            {
              "name": "thumbnail",
              "alias": "Thumbnail",
              "type": "esriFieldTypeString"
            },
            {
              "name": "xmin",
              "alias": "xmin",
              "type": "esriFieldTypeDouble"
            },
            {
              "name": "ymin",
              "alias": "ymin",
              "type": "esriFieldTypeDouble"
            },
            {
              "name": "xmax",
              "alias": "xmax",
              "type": "esriFieldTypeDouble"
            },
            {
              "name": "ymax",
              "alias": "ymax",
              "type": "esriFieldTypeDouble"
            },
            {
              "name": "accessInformation",
              "alias": "Access Information",
              "type": "esriFieldTypeString"
            },
            {
              "name": "licenseInfo",
              "alias": "License Information",
              "type": "esriFieldTypeString"
            },
            {
              "name": "credits",
              "alias": "Credits",
              "type": "esriFieldTypeString"
            },
            {
              "name": "link",
              "alias": "Link",
              "type": "esriFieldTypeString"
            },
            {
              "name": "arcgisJslink",
              "alias": "ArcgisJsLink",
              "type": "esriFieldTypeString"
            }
          ]
        },
        "featureSet": {
          "geometryType": "esriGeometryPoint",
          "spatialReference": {
            "wkid": 102100
          },
          "features": [
            {
              "geometry": {
                "x": -13275825.10565813,
                "y": 4497582.1039284635
              },
              "attributes": {
                "id": 1,
                "title": "Maps/CaliforniaDEM",
                "summary": "",
                "description": "This service hosts a raster image generated from raw DEM (Digital Elevation Model) data gathered for the Shuttle Radar Topography Mission (SRTM). The mission was co-sponsored by the National Aeronautics and Space Administration (NASA) and National Geospatial-Intelligence Agency (NGA). NASA's Jet Propulsion Laboratory (JPL) performed preliminary processing of SRTM data and forwarded it to the NGA for further processing and distribution. The raster image hosted by this service was generated using ArcGIS tools to convert DEM data for the state of California into a raster image. The results were reprojected into World Mercator (WKID: 54004) for display purposes. Pixel size is approximately 90 meters and vertical units are defined in meters. ESRI reserves the right to change or remove this service at any time and without notice. Copyright: Copyright:© 2010 ESRI ",
                "tags": "[\"CA\",\"California\",\"DEM\"]",
                "type": "ImageServer",
                "thumbnail": "https://sampleserver/arcgis/rest/services/Maps/CaliforniaDEM/ImageServer/info/thumbnail",
                "xmin": -13847325.10565813,
                "ymin": 3833856.441897385,
                "xmax": -12704325.10565813,
                "ymax": 5161307.765959541,
                "accessInformation": "",
                "licenseInfo": "",
                "credits": "",
                "link": "https://sampleserver/arcgis/rest/services/Maps/CaliforniaDEM/ImageServer",
                "arcgisJslink": "https://sampleserver/arcgis/rest/services/Maps/CaliforniaDEM/ImageServer?f=jsapi"
              }
            }
          ]
        },
        "popupInfo": {
          "title": "{title} ({type})",
          "fieldInfos": [
            {
              "fieldName": "id",
              "label": "ID",
              "visible": false
            },
            {
              "fieldName": "title",
              "label": "Title",
              "visible": true
            },
            {
              "fieldName": "summary",
              "label": "Summary",
              "visible": true
            },
            {
              "fieldName": "description",
              "label": "Description",
              "visible": true
            },
            {
              "fieldName": "tags",
              "label": "Tags",
              "visible": true
            },
            {
              "fieldName": "type",
              "label": "Type",
              "visible": true
            },
            {
              "fieldName": "thumbnail",
              "label": "Thumbnail",
              "visible": false
            },
            {
              "fieldName": "xmin",
              "label": "xmin",
              "format": {
                "places": 2,
                "digitSeparator": false
              },
              "visible": false
            },
            {
              "fieldName": "ymin",
              "label": "ymin",
              "format": {
                "places": 2,
                "digitSeparator": false
              },
              "visible": false
            },
            {
              "fieldName": "xmax",
              "label": "xmax",
              "format": {
                "places": 2,
                "digitSeparator": false
              },
              "visible": false
            },
            {
              "fieldName": "ymax",
              "label": "ymax",
              "format": {
                "places": 2,
                "digitSeparator": false
              },
              "visible": false
            },
            {
              "fieldName": "accessInformation",
              "label": "Access Information",
              "visible": true
            },
            {
              "fieldName": "licenseInfo",
              "label": "License Information",
              "visible": true
            },
            {
              "fieldName": "credits",
              "label": "Credits",
              "visible": true
            },
            {
              "fieldName": "link",
              "label": "Link",
              "visible": true
            }
          ],
          "description": null,
          "showAttachments": false,
          "mediaInfos": [
            {
              "type": "image",
              "caption": "Initial Extent: [{xmin}, {ymin}] - [{xmax}, {ymax}]",
              "value": {
                "sourceURL": "{thumbnail}",
                "linkURL": "{arcgisJslink}"
              }
            }
          ]
        }
      }
    ]
  }
}