Get feature service metadata

GET https://{{host}}.arcgis.com/{{org_id}}/ArcGIS/rest/services/{{service_name}}/FeatureServer/{{layer_id}}?f=json&token={{access_token}}

In the [Structures and definitions] folder you will find request to help you setting the: host, org_id, service_name and layer_id environment variables.

Request Params

KeyDatatypeRequiredDescription
fstring
tokenstring

RESPONSES

status: OK

{"currentVersion":10.81,"id":0,"name":"Trailheads","type":"Feature Layer","serviceItemId":"883cedb8c9fe4524b64d47666ed234a7","cacheMaxAge":30,"displayField":"","description":"","copyrightText":"","defaultVisibility":true,"serverGens":{"minServerGen":318897,"serverGen":389475},"editingInfo":{"lastEditDate":1607017294831},"relationships":[],"isDataVersioned":false,"hasContingentValuesDefinition":false,"supportsAppend":true,"supportsCalculate":true,"supportsASyncCalculate":true,"supportsTruncate":true,"supportsAttachmentsByUploadId":true,"supportsAttachmentsResizing":true,"supportsRollbackOnFailureParameter":true,"supportsStatistics":true,"supportsExceedsLimitStatistics":true,"supportsAdvancedQueries":true,"supportsValidateSql":true,"supportsCoordinatesQuantization":true,"supportsLayerOverrides":true,"supportsTilesAndBasicQueriesMode":true,"supportsFieldDescriptionProperty":true,"supportsQuantizationEditMode":true,"supportsApplyEditsWithGlobalIds":true,"supportsReturningQueryGeometry":true,"advancedQueryCapabilities":{"supportsPagination":true,"supportsQueryAttachmentsCountOnly":true,"supportsPaginationOnAggregatedQueries":true,"supportsQueryRelatedPagination":true,"supportsQueryWithDistance":true,"supportsReturningQueryExtent":true,"supportsStatistics":true,"supportsOrderBy":true,"supportsDistinct":true,"supportsQueryWithResultType":true,"supportsSqlExpression":true,"supportsAdvancedQueryRelated":true,"supportsCountDistinct":true,"supportsPercentileStatistics":true,"supportsSpatialAggregationStatistics":true,"supportedSpatialAggregationStatistics":["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],"supportsLod":true,"supportsQueryWithLodSR":false,"supportedLodTypes":["geohash"],"supportsReturningGeometryCentroid":false,"supportsQueryWithDatumTransformation":true,"supportsHavingClause":true,"supportsOutFieldSQLExpression":true,"supportsMaxRecordCountFactor":true,"supportsTopFeaturesQuery":true,"supportsDisjointSpatialRel":true,"supportsQueryWithCacheHint":true,"supportsQueryAnalytic":true},"advancedQueryAnalyticCapabilities":{"supportsLinearRegression":true,"supportsAsync":true,"supportsPercentileAnalytic":true},"advancedEditingCapabilities":{"supportedSqlFormatsInCalculate":["standard"],"supportsAsyncApplyEdits":true,"supportsReturnEditResults":true},"infoInEstimates":["extent","count"],"useStandardizedQueries":true,"geometryType":"esriGeometryPoint","minScale":2311163,"maxScale":0,"extent":{"xmin":-13240129.679701095,"ymin":3994281.988775314,"xmax":-13106722.92583799,"ymax":4101417.5063218847,"spatialReference":{"wkid":102100,"latestWkid":3857}},"drawingInfo":{"renderer":{"type":"simple","symbol":{"color":[26,26,26,255],"size":6,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[255,255,255,255],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"}}},"transparency":0},"allowGeometryUpdates":true,"hasAttachments":false,"htmlPopupType":"esriServerHTMLPopupTypeNone","hasM":false,"hasZ":false,"objectIdField":"FID","uniqueIdField":{"name":"FID","isSystemMaintained":true},"globalIdField":"GlobalID","typeIdField":"","fields":[{"name":"OBJECTID","type":"esriFieldTypeInteger","actualType":"int","alias":"OBJECTID","sqlType":"sqlTypeInteger","nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"TRL_NAME","type":"esriFieldTypeString","actualType":"nvarchar","alias":"TRL_NAME","sqlType":"sqlTypeNVarchar","length":256,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"PARK_NAME","type":"esriFieldTypeString","actualType":"nvarchar","alias":"PARK_NAME","sqlType":"sqlTypeNVarchar","length":256,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"TRL_ID","type":"esriFieldTypeInteger","actualType":"int","alias":"TRL_ID","sqlType":"sqlTypeInteger","nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"SEG_ID","type":"esriFieldTypeInteger","actualType":"int","alias":"SEG_ID","sqlType":"sqlTypeInteger","nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"FEATURE","type":"esriFieldTypeString","actualType":"nvarchar","alias":"FEATURE","sqlType":"sqlTypeNVarchar","length":256,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"FEAT_CMNT","type":"esriFieldTypeString","actualType":"nvarchar","alias":"FEAT_CMNT","sqlType":"sqlTypeNVarchar","length":256,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"ELEV_FT","type":"esriFieldTypeInteger","actualType":"int","alias":"ELEV_FT","sqlType":"sqlTypeInteger","nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"CITY_JUR","type":"esriFieldTypeString","actualType":"nvarchar","alias":"CITY_JUR","sqlType":"sqlTypeNVarchar","length":256,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"ZIP_CODE","type":"esriFieldTypeInteger","actualType":"int","alias":"ZIP_CODE","sqlType":"sqlTypeInteger","nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"SUP_DIST","type":"esriFieldTypeString","actualType":"nvarchar","alias":"SUP_DIST","sqlType":"sqlTypeNVarchar","length":256,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"X_STREET","type":"esriFieldTypeString","actualType":"nvarchar","alias":"X_STREET","sqlType":"sqlTypeNVarchar","length":256,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"PARKING","type":"esriFieldTypeString","actualType":"nvarchar","alias":"PARKING","sqlType":"sqlTypeNVarchar","length":256,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"PHOTO","type":"esriFieldTypeString","actualType":"nvarchar","alias":"PHOTO","sqlType":"sqlTypeNVarchar","length":256,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"LAT","type":"esriFieldTypeDouble","actualType":"float","alias":"LAT","sqlType":"sqlTypeFloat","nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"LON","type":"esriFieldTypeDouble","actualType":"float","alias":"LON","sqlType":"sqlTypeFloat","nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"FID","type":"esriFieldTypeOID","actualType":"int","alias":"FID","sqlType":"sqlTypeInteger","nullable":false,"editable":false,"domain":null,"defaultValue":null},{"name":"GlobalID","type":"esriFieldTypeGlobalID","alias":"GlobalID","sqlType":"sqlTypeOther","length":38,"nullable":false,"editable":false,"domain":null,"defaultValue":"NEWID() WITH VALUES"}],"indexes":[{"name":"PK__TRAILHEA__C1BEA5A2F8203E06","fields":"FID","isAscending":true,"isUnique":true,"description":"clustered, unique, primary key"},{"name":"TRAILHEADS_TRAILHEADS_Shape_sidx","fields":"Shape","isAscending":false,"isUnique":false,"description":"Shape Index"},{"name":"ELEV_FT_Index","fields":"ELEV_FT","isAscending":true,"isUnique":false,"description":"ELEV_FT_Index"},{"name":"CITY_JUR_Index","fields":"CITY_JUR","isAscending":true,"isUnique":false,"description":"CITY_JUR_Index"},{"name":"GlobalID_Index","fields":"GlobalID","isAscending":false,"isUnique":true,"description":""}],"dateFieldsTimeReference":{"timeZone":"UTC","respectsDaylightSaving":false},"preferredTimeReference":null,"types":[],"templates":[{"name":"New Feature","description":"","drawingTool":"esriFeatureEditToolPoint","prototype":{"attributes":{"OBJECTID":null,"TRL_NAME":null,"PARK_NAME":null,"FEATURE_ID":null,"TRL_ID":null,"SEG_ID":null,"STG_AR_ID":null,"SUB_TYPE":null,"FEATURE":null,"FEAT_CMNT":null,"ELEV_FT":null,"CITY_JUR":null,"ZIP_CODE":null,"SUP_DIST":null,"X_STREET":null,"X":null,"Y":null,"PARKING":null,"PHOTO":null,"TXT_E":null,"LAT":null,"LON":null,"DB_ID":null,"DIR_LAT":null,"DIR_LON":null}}}],"supportedQueryFormats":"JSON, geoJSON, PBF","supportedAppendFormats":"sqlite,gpkg,shapefile,filegdb,featureCollection,geojson,csv,excel","supportedExportFormats":"csv,shapefile,sqlite,gpkg,filegdb,featureCollection,geojson,excel","supportedContingentValuesFormats":"JSON, PBF","supportedSyncDataOptions":4,"hasStaticData":false,"maxRecordCount":2000,"standardMaxRecordCount":32000,"standardMaxRecordCountNoGeometry":32000,"tileMaxRecordCount":8000,"maxRecordCountFactor":1,"capabilities":"Query,ChangeTracking"}