SSURGO Soil

API change history

The SURGGO Soils API provides soil type and average of the soil type attribute (e.g., NCCPI) by field for a shape entered.

Post Request SSURGO Soils




This API is utilized to drive the Ag-Analytics SSURGO soil panel below, for illustration. Area calculations from the API are provided in square meters and can be easily converted to acres on the front-end. The API Response contains shapes/features in ESRI JSON format, as well as the calculated metric (e.g., National Commodity Crop Productivity Index) and areas of each shape, the soil type name, the area for the sums of each soil type across all features for display in the table, metadata related to projection and other information. This API can be easily called and mapped using any standard front-end JavaScript mapping library (e.g., Leaflet).


SSURGO Soils and NCCPI in Ag-Analytics FarmScope.


Click the Jupyter Notebook Static Sample to view a static rendition of this APIs Jupyter Notebook.
Click the Jupyter Notebook Github Repo to access the Jupyter Notebook .ipynb files and
instructions needed in order to run this APIs Jupyter Notebook.

Try it

Request

Request URL

Request headers

  • (optional)
    string
    Media type of the body sent to the API.
  • string
    Subscription key which provides access to this API. Found in your Profile.

Request body

inputShape (ESRI Polygon shape): The inputShape should have the Albers (“wkid”: 5070) spatial reference. The shape information for field is esriGeometryPolygon format. Standard open source JavaScript front-end libraries (e.g., Leaflet) can be used to structure the shape. See example request below, in which "spatialReference": {"wkid": 5070} is required
inputFields (string): The metrics to return with the format “TableName_SoilTypeName” (e.g., “muaggatt_hydgrpdcd” represents the hydgrpdcd soil type with in muaggatt table. hydgrpdcd is the Hydrologic Group which includes groups A, B, C and D, and Dual hydrologic groups A/D, B/D, C/D). In the Ag-Analytics application, muaggatt_hydgrpdcd is returned. See table in Appendix I for other possible data return types available (e.g., 57 available for valu1 table and 36 available for muaggatt table).

inputShape={"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-117.238391742523,47.361909235884],[-117.238411501866,47.3666540718942],[-117.238104754146,47.3667759852526],[-117.237319049869,47.3670230954214],[-117.236502184832,47.3672180544179],[-117.235661598881,47.3673590381549],[-117.234805056156,47.3674447833694],[-117.233940328881,47.3674745225006],[-117.233075399484,47.3674479313533],[-117.229969230047,47.3672509033416],[-117.229356757788,47.3672212024152],[-117.22853778171,47.3672224679418],[-117.227723359192,47.3672812881216],[-117.227682312472,47.3672871989753],[-117.227679393845,47.361915157684],[-117.238391742523,47.361909235884]],[[-117.238412821491,47.3669707991394],[-117.238415162501,47.3675329177202],[-117.23836557909,47.3675462695532],[-117.238147889449,47.3676624203185],[-117.237943109497,47.3677611967894],[-117.237667547691,47.3679827628098],[-117.237328008768,47.3682945667015],[-117.237167413351,47.3683370558738],[-117.235936548037,47.3683403893704],[-117.235406151252,47.3683001002252],[-117.235154584345,47.3682849987845],[-117.234879172557,47.3683040762091],[-117.234607729526,47.3683570355562],[-117.232721607891,47.3688442182915],[-117.232516017658,47.3688941350618],[-117.232282382022,47.3689218625919],[-117.231444584442,47.3689637471116],[-117.23072185566,47.3689532429787],[-117.227683127244,47.3687289626645],[-117.227682461592,47.3675684873122],[-117.227860990975,47.3675442842706],[-117.228597121723,47.3674949095447],[-117.229336828664,47.3674950166272],[-117.22993174874,47.3675238856855],[-117.233037934347,47.3677209138943],[-117.23394144908,47.3677486493423],[-117.234844729352,47.3677176107795],[-117.235739513359,47.3676280299109],[-117.236617581515,47.3674807436285],[-117.237470878627,47.3672771155391],[-117.238291599234,47.3670189848782],[-117.238412821491,47.3669707991394]]
,[[-117.23515564795,47.3683951410649],[-117.235390077697,47.3684092039139],[-117.235927869413,47.3684500575822],[-117.236804847014
,47.3684477109369],[-117.236812404541,47.3702758170121],[-117.2384265738,47.3702727251689],[-117.238452279092,47.3764430152127],[-117.227687263087,47.3764376942387],[-117.227683192821,47.3688392932326],[-117.230711395677,47.369062799795],[-117.231448818202,47.3690734961619],[-117.232302264435,47.3690308469639],[-117.232557405738,47.3690005654039],[-117.232777461542,47.3689471011173],[-117.234658812225,47.3684611927385],[-117.234909864397,47.3684121954782],[-117.23515564795,47.3683951410649]]],"spatialReference":{"wkid":4326}}}]}
&inputFields=nccpi2all&env:outSR=4326&env:processSR=&returnZ=false&returnM=false&f=pjson

Responses

200 OK

Representations

{"results":[{"paramName":"output1","dataType":"GPRecordSet","value":{"displayFieldName":"","fields":[{"name":"FID","type":"esriFieldTypeOID","alias":"FID"},{"name":"intersect_FID_inputShapeProjected","type":"esriFieldTypeInteger","alias":"intersect.FID_inputShapeProjected"},{"name":"FREQUENCY","type":"esriFieldTypeInteger","alias":"FREQUENCY"},{"name":"SUM_wa_nccpi2all","type":"esriFieldTypeDouble","alias":"SUM_wa_nccpi2all"}],"features":[{"attributes":{"FID":1,"intersect_FID_inputShapeProjected":0,"FREQUENCY":6,"SUM_wa_nccpi2all":0.90582095475000701}}],"exceededTransferLimit":false}},{"paramName":"output2","dataType":"GPFeatureRecordSetLayer","value":{"displayFieldName":"","geometryType":"esriGeometryPolygon","spatialReference":{"wkid":5070,"latestWkid":5070},"fields":[{"name":"FID","type":"esriFieldTypeOID","alias":"FID"},{"name":"FID_inputShapeProjected","type":"esriFieldTypeInteger","alias":"FID_inputShapeProjected"},{"name":"OBJECTID","type":"esriFieldTypeInteger","alias":"OBJECTID"},{"name":"Shape_Leng","type":"esriFieldTypeDouble","alias":"Shape_Leng"},{"name":"FID_soilmu_a_il107","type":"esriFieldTypeInteger","alias":"FID_soilmu_a_il107"},{"name":"AREASYMBOL","type":"esriFieldTypeString","alias":"AREASYMBOL","length":20},{"name":"SPATIALVER","type":"esriFieldTypeInteger","alias":"SPATIALVER"},{"name":"MUSYM","type":"esriFieldTypeString","alias":"MUSYM","length":6},{"name":"MUKEY","type":"esriFieldTypeString","alias":"MUKEY","length":30},{"name":"Shape_Area1","type":"esriFieldTypeSingle","alias":"Shape_Area1"},{"name":"Shape_Length","type":"esriFieldTypeDouble","alias":"Shape_Length"},{"name":"Shape_Area","type":"esriFieldTypeDouble","alias":"Shape_Area"}],"features":[{"attributes":{"FID":1,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":524,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"43A","MUKEY":"1595752","Shape_Area1":15223.83,"Shape_Length":546.49140459136197,"Shape_Area":15223.825654695422},"geometry":{"rings":[[[563512.95659999922,1936313.8019999992],[563509.92139999941,1936306.7554000001],[563463.26880000159,1936263.4583000001],[563449.4188000001,1936210.2927999999],[563433.90340000018,1936193.6099999994],[563421.98539999872,1936194.2383999992],[563406.26779999956,1936205.3493000008],[563377.27589999884,1936208.9915999994],[563358.17500000075,1936224.6840000004],[563352.62440000102,1936243.9296000004],[563355.81489999965,1936265.2034000009],[563368.14880000055,1936308.5282000005],[563376.07899999991,1936321.4567000009],[563395.10049999878,1936333.6230999995],[563438.68349999934,1936326.3969000001],[563455.33449999988,1936331.1855999995],[563472.13379999995,1936347.9400999993],[563485.92500000075,1936371.7874999996],[563492.34120000154,1936375.1425999999],[563495.84439999983,1936335.6561999992],[563510.6165000014,1936314.3482000008],[563512.95659999922,1936313.8019999992]]]}},{"attributes":{"FID":2,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":546,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"705B","MUKEY":"1595742","Shape_Area1":1134.54,"Shape_Length":134.11222508051497,"Shape_Area":1134.5395896101234},"geometry":{"rings":[[[563222.07609999925,1936349.9636000004],[563218.87700000033,1936389.1864999998],[563249.83410000056,1936395.4365999997],[563253.17639999837,1936378.3698999994],[563245.24109999835,1936359.6800999995],[563235.97159999982,1936353.4915999994],[563222.07609999925,1936349.9636000004]]]}},{"attributes":{"FID":3,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":551,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"43A","MUKEY":"1595752","Shape_Area1":6326.561,"Shape_Length":431.21670458684588,"Shape_Area":6326.5604489414472},"geometry":{"rings":[[[563287.46049999818,1936309.0731000006],[563280.21249999851,1936311.5933999997],[563267.53700000048,1936308.4973000009],[563259.54919999838,1936298.5961000007],[563235.07149999961,1936250.0477000009],[563230.82429999858,1936242.7040999997],[563222.07609999925,1936349.9636000004],[563235.97159999982,1936353.4915999994],[563245.24109999835,1936359.6800999995],[563253.17639999837,1936378.3698999994],[563249.83410000056,1936395.4365999997],[563282.29120000079,1936396.2930999994],[563309.73479999974,1936407.1701999996],[563291.62590000033,1936366.9780000001],[563287.46049999818,1936309.0731000006]]]}},{"attributes":{"FID":4,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":566,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"749B","MUKEY":"1612280","Shape_Area1":108996.5,"Shape_Length":2936.4710539462753,"Shape_Area":108996.45204857511},"geometry":{"rings":[[[563402.66429999843,1936423.3034000006],[563386.84209999815,1936402.1371999998],[563384.29580000043,1936387.4042000007],[563388.29529999942,1936377.5004999992],[563393.74500000104,1936372.9519999996],[563403.60379999876,1936375.0023999996],[563417.16820000112,1936390.8133000005],[563427.88470000029,1936393.9598999992],[563436.5903000012,1936387.6450999994],[563441.83779999986,1936374.9112999998],[563451.25160000101,1936370.8115999997],[563459.89240000024,1936385.9177000001],[563453.69280000031,1936413.9662999995],[563456.59580000117,1936423.4340000004],[563464.4395999983,1936433.3629999999],[563486.57959999889,1936440.0842000004],[563492.34120000154,1936375.1425999999],[563485.92500000075,1936371.7874999996],[563472.13379999995,1936347.9400999993],[563455.33449999988,1936331.1855999995],[563438.68349999934,1936326.3969000001],[563395.10049999878,1936333.6230999995],[563376.07899999991,1936321.4567000009],[563368.14880000055,1936308.5282000005],[563355.81489999965,1936265.2034000009],[563352.62440000102,1936243.9296000004],[563358.17500000075,1936224.6840000004],[563377.27589999884,1936208.9915999994],[563406.26779999956,1936205.3493000008],[563421.98539999872,1936194.2383999992],[563433.90340000018,1936193.6099999994],[563449.4188000001,1936210.2927999999],[563463.26880000159,1936263.4583000001],[563509.92139999941,1936306.7554000001],[563512.95659999922,1936313.8019999992],[563565.62810000032,1936301.5073000006],[563588.86899999902,1936279.2610999998],[563590.14050000161,1936276.3223000001],[563585.35390000045,1936279.2988000009],[563556.76130000129,1936279.6412000004],[563546.31390000135,1936276.7707000002],[563545.66479999945,1936276.3880000003],[563535.85579999909,1936268.0592999998],[563524.87700000033,1936255.9419999998],[563525.35229999945,1936248.0015999991],[563524.25299999863,1936232.4254000001],[563528.2098999992,1936208.6701999996],[563535.10579999909,1936112.2261999995],[563522.62220000103,1936119.3778000008],[563503.26539999992,1936114.1722999997],[563493.99689999968,1936106.1575000007],[563485.47949999943,1936088.2923000008],[563477.17650000006,1936046.0798000004],[563482.74340000004,1935998.6697000004],[563501.73090000078,1935957.6655999999],[563517.18609999865,1935942.8462000005],[563534.35979999974,1935941.4398999996],[563545.59580000117,1935949.6877999995],[563546.36969999969,1935951.7365000006],[563546.09180000052,1935931.0669999998],[563525.40080000088,1935918.8265000004],[563523.47929999977,1935916.1078999992],[563520.23039999977,1935911.8356999997],[563518.50279999897,1935896.7767999992],[563513.35049999878,1935884.7334000003],[563509.95439999923,1935881.3493000008],[563504.16380000114,1935874.7640000004],[563495.43230000138,1935873.9239000008],[563283.07490000129,1935858.7313000001],[563278.02840000018,1935858.3757000007],[563271.6884999983,1935854.7841999996],[563267.98990000039,1935849.6942999996],[563263.79140000045,1935838.5044999998],[563235.36820000038,1936186.9931000005],[563243.53029999882,1936190.7356000002],[563264.26350000128,1936213.0007000007],[563288.33819999918,1936265.4557000007],[563290.44990000129,1936286.5592],[563287.46049999818,1936309.0731000006],[563291.62590000033,1936366.9780000001],[563309.73479999974,1936407.1701999996],[563358.61329999939,1936442.6028000005],[563388.76199999824,1936441.4331999999],[563402.66429999843,1936423.3034000006]],[[563353.39869999886,1935957.5270000007],[563338.19729999825,1935986.8429000005],[563328.71869999915,1936022.4174000006],[563319.44629999995,1936041.1936000008],[563294.03280000016,1936065.0264999997],[563274.69440000132,1936060.7642000001],[563270.34849999845,1936053.2660000008],[563270.49049999937,1936038.3836000003],[563299.80959999934,1935973.4058999997],[563313.88500000164,1935909.8014000002],[563323.58680000156,1935892.3732999992],[563345.25290000066,1935880.7022999991],[563358.19830000028,1935876.3618999999],[563379.65619999915,1935882.5247000009],[563393.99320000038,1935900.2539000008],[563420.4365000017,1935917.1042999998],[563426.9224999994,1935933.0375999995],[563426.07360000163,1935941.8642999995],[563414.95199999958,1935953.2992000002],[563372.13949999958,1935950.1686000004],[563353.39869999886,1935957.5270000007]]]}},{"attributes":{"FID":5,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":993,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"43A","MUKEY":"1595752","Shape_Area1":3767.69,"Shape_Length":338.65191676703262,"Shape_Area":3767.6898009257193},"geometry":{"rings":[[[563483.61899999902,1936473.4542999994],[563475.58689999953,1936469.1864],[563448.56909999996,1936461.5205000006],[563402.66429999843,1936423.3034000006],[563388.76199999824,1936441.4331999999],[563358.61329999939,1936442.6028000005],[563374.11989999935,1936458.3999000005],[563396.80579999834,1936471.8413999993],[563446.50230000168,1936482.8003000002],[563479.86789999902,1936515.7340999991],[563483.61899999902,1936473.4542999994]]]}},{"attributes":{"FID":6,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":1375,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"68A","MUKEY":"1595762","Shape_Area1":4210.069,"Shape_Length":293.23194927029346,"Shape_Area":4210.0689822442646},"geometry":{"rings":[[[563287.46049999818,1936309.0731000006],[563290.44990000129,1936286.5592],[563288.33819999918,1936265.4557000007],[563264.26350000128,1936213.0007000007],[563243.53029999882,1936190.7356000002],[563235.36820000038,1936186.9931000005],[563230.82429999858,1936242.7040999997],[563235.07149999961,1936250.0477000009],[563259.54919999838,1936298.5961000007],[563267.53700000048,1936308.4973000009],[563280.21249999851,1936311.5933999997],[563287.46049999818,1936309.0731000006]]]}},{"attributes":{"FID":7,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":3963,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"43A","MUKEY":"1595752","Shape_Area1":9369.749,"Shape_Length":524.74638433056839,"Shape_Area":9369.7489046853625},"geometry":{"rings":[[[563212.68699999899,1936465.0800999999],[563204.16070000082,1936569.6194000002],[563217.36190000176,1936593.8465999998],[563217.55330000073,1936594.0589000005],[563336.47089999914,1936603.7302000001],[563314.28700000048,1936545.4195000008],[563293.23270000145,1936525.9178999998],[563279.51509999856,1936523.5391000006],[563253.87299999967,1936550.8388],[563239.18519999832,1936548.3540000003],[563232.86780000106,1936532.2445999999],[563245.93980000168,1936498.7496000007],[563247.65780000016,1936478.5936999992],[563234.39420000091,1936463.5385999996],[563212.68699999899,1936465.0800999999]]]}},{"attributes":{"FID":8,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":4692,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"171C2","MUKEY":"1596009","Shape_Area1":622.1296,"Shape_Length":205.69163950070879,"Shape_Area":622.12965788427618},"geometry":{"rings":[[[563632.58089999855,1936229.8988000005],[563631.87029999867,1936229.0840000007],[563625.83769999817,1936238.5775000006],[563610.77859999985,1936257.9559000004],[563601.08879999816,1936269.5142999999],[563590.14050000161,1936276.3223000001],[563588.86899999902,1936279.2610999998],[563565.62810000032,1936301.5073000006],[563566.04520000145,1936301.4099000003],[563603.67779999971,1936274.7508000005],[563630.72690000013,1936255.5440999996],[563630.87370000035,1936243.8741999995],[563632.58089999855,1936229.8988000005]]]}},{"attributes":{"FID":9,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":5062,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"68A","MUKEY":"1595762","Shape_Area1":32104.14,"Shape_Length":1541.1711490380396,"Shape_Area":32104.141101901441},"geometry":{"rings":[[[563423.6688000001,1936610.8219000008],[563460.61809999868,1936613.8268999998],[563448.01260000095,1936598.2425999995],[563436.43580000103,1936594.0374999996],[563428.15720000118,1936597.3135000002],[563423.6688000001,1936610.8219000008]],[[563473.9477000013,1936582.4627999999],[563479.86789999902,1936515.7340999991],[563446.50230000168,1936482.8003000002],[563396.80579999834,1936471.8413999993],[563374.11989999935,1936458.3999000005],[563358.61329999939,1936442.6028000005],[563309.73479999974,1936407.1701999996],[563282.29120000079,1936396.2930999994],[563249.83410000056,1936395.4365999997],[563218.87700000033,1936389.1864999998],[563212.68699999899,1936465.0800999999],[563234.39420000091,1936463.5385999996],[563247.65780000016,1936478.5936999992],[563245.93980000168,1936498.7496000007],[563232.86780000106,1936532.2445999999],[563239.18519999832,1936548.3540000003],[563253.87299999967,1936550.8388],[563279.51509999856,1936523.5391000006],[563293.23270000145,1936525.9178999998],[563314.28700000048,1936545.4195000008],[563336.47089999914,1936603.7302000001],[563365.81120000035,1936606.1163999997],[563353.9160999991,1936578.9952000007],[563346.97659999877,1936527.0888],[563354.0214000009,1936504.3336999994],[563369.91950000077,1936493.6685000006],[563383.6229000017,1936496.0464999992],[563395.53119999915,1936507.4102999996],[563403.78079999983,1936547.9622000009],[563414.41890000179,1936562.2676999997],[563468.74240000173,1936576.9231000002],[563473.9477000013,1936582.4627999999]],[[563204.16070000082,1936569.6194000002],[563202.26880000159,1936592.8158],[563217.55330000073,1936594.0589000005],[563217.36190000176,1936593.8465999998],[563204.16070000082,1936569.6194000002]],[[563486.57959999889,1936440.0842000004],[563464.4395999983,1936433.3629999999],[563456.59580000117,1936423.4340000004],[563453.69280000031,1936413.9662999995],[563459.89240000024,1936385.9177000001],[563451.25160000101,1936370.8115999997],[563441.83779999986,1936374.9112999998],[563436.5903000012,1936387.6450999994],[563427.88470000029,1936393.9598999992],[563417.16820000112,1936390.8133000005],[563403.60379999876,1936375.0023999996],[563393.74500000104,1936372.9519999996],[563388.29529999942,1936377.5004999992],[563384.29580000043,1936387.4042000007],[563386.84209999815,1936402.1371999998],[563402.66429999843,1936423.3034000006],[563448.56909999996,1936461.5205000006],[563475.58689999953,1936469.1864],[563483.61899999902,1936473.4542999994],[563486.57959999889,1936440.0842000004]]]}},{"attributes":{"FID":10,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":6871,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"705B","MUKEY":"1595742","Shape_Area1":7873.263,"Shape_Length":434.14947814758398,"Shape_Area":7873.2630157816893},"geometry":{"rings":[[[563473.9477000013,1936582.4627999999],[563468.74240000173,1936576.9231000002],[563414.41890000179,1936562.2676999997],[563403.78079999983,1936547.9622000009],[563395.53119999915,1936507.4102999996],[563383.6229000017,1936496.0464999992],[563369.91950000077,1936493.6685000006],[563354.0214000009,1936504.3336999994],[563346.97659999877,1936527.0888],[563353.9160999991,1936578.9952000007],[563365.81120000035,1936606.1163999997],[563423.6688000001,1936610.8219000008],[563428.15720000118,1936597.3135000002],[563436.43580000103,1936594.0374999996],[563448.01260000095,1936598.2425999995],[563460.61809999868,1936613.8268999998],[563461.18519999832,1936613.8729999997],[563471.1484999992,1936614.0139000006],[563473.9477000013,1936582.4627999999]]]}},{"attributes":{"FID":11,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":7875,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"622C2","MUKEY":"1596046","Shape_Area1":0.9693159,"Shape_Length":5.3618195072284545,"Shape_Area":0.96931592053068982},"geometry":{"rings":[[[563631.87029999867,1936229.0840000007],[563632.58089999855,1936229.8988000005],[563632.87319999933,1936227.5057999995],[563631.87029999867,1936229.0840000007]]]}},{"attributes":{"FID":12,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":7928,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"43A","MUKEY":"1595752","Shape_Area1":9192.161,"Shape_Length":418.08543258087803,"Shape_Area":9192.1611107211102},"geometry":{"rings":[[[563535.10579999909,1936112.2261999995],[563546.40320000052,1935954.2247000001],[563546.36969999969,1935951.7365000006],[563545.59580000117,1935949.6877999995],[563534.35979999974,1935941.4398999996],[563517.18609999865,1935942.8462000005],[563501.73090000078,1935957.6655999999],[563482.74340000004,1935998.6697000004],[563477.17650000006,1936046.0798000004],[563485.47949999943,1936088.2923000008],[563493.99689999968,1936106.1575000007],[563503.26539999992,1936114.1722999997],[563522.62220000103,1936119.3778000008],[563535.10579999909,1936112.2261999995]]]}},{"attributes":{"FID":13,"FID_inputShapeProjected":0,"OBJECTID":1,"Shape_Leng":0,"FID_soilmu_a_il107":7946,"AREASYMBOL":"IL107","SPATIALVER":3,"MUSYM":"68A","MUKEY":"1595762","Shape_Area1":11840.21,"Shape_Length":545.17514459256006,"Shape_Area":11840.210080753603},"geometry":{"rings":[[[563353.39869999886,1935957.5270000007],[563372.13949999958,1935950.1686000004],[563414.95199999958,1935953.2992000002],[563426.07360000163,1935941.8642999995],[563426.9224999994,1935933.0375999995],[563420.4365000017,1935917.1042999998],[563393.99320000038,1935900.2539000008],[563379.65619999915,1935882.5247000009],[563358.19830000028,1935876.3618999999],[563345.25290000066,1935880.7022999991],[563323.58680000156,1935892.3732999992],[563313.88500000164,1935909.8014000002],[563299.80959999934,1935973.4058999997],[563270.49049999937,1936038.3836000003],[563270.34849999845,1936053.2660000008],[563274.69440000132,1936060.7642000001],[563294.03280000016,1936065.0264999997],[563319.44629999995,1936041.1936000008],[563328.71869999915,1936022.4174000006],[563338.19729999825,1935986.8429000005],[563353.39869999886,1935957.5270000007]]]}}],"exceededTransferLimit":false}},{"paramName":"output3","dataType":"GPRecordSet","value":{"displayFieldName":"","fields":[{"name":"FID","type":"esriFieldTypeOID","alias":"FID"},{"name":"intersect_MUKEY","type":"esriFieldTypeString","alias":"intersect.MUKEY","length":30},{"name":"intersect_FID_inputShapeProjected","type":"esriFieldTypeInteger","alias":"intersect.FID_inputShapeProjected"},{"name":"FREQUENCY","type":"esriFieldTypeInteger","alias":"FREQUENCY"},{"name":"MIN_valu1_nccpi2all","type":"esriFieldTypeDouble","alias":"MIN_valu1.nccpi2all"},{"name":"SUM_intersect_Shape_Area1","type":"esriFieldTypeDouble","alias":"SUM_intersect.Shape_Area1"},{"name":"FIRST_valu1_MUNAME","type":"esriFieldTypeString","alias":"FIRST_valu1.MUNAME","length":214},{"name":"wa_nccpi2all","type":"esriFieldTypeDouble","alias":"wa_nccpi2all"}],"features":[{"attributes":{"FID":1,"intersect_MUKEY":"1595742","intersect_FID_inputShapeProjected":0,"FREQUENCY":2,"MIN_valu1_nccpi2all":0.93900001049041748,"SUM_intersect_Shape_Area1":9007.802734375,"FIRST_valu1_MUNAME":"Buckhart silt loam, 2 to 5 percent slopes","wa_nccpi2all":0.040151220935292074}},{"attributes":{"FID":2,"intersect_MUKEY":"1595752","intersect_FID_inputShapeProjected":0,"FREQUENCY":5,"MIN_valu1_nccpi2all":0.92400002479553223,"SUM_intersect_Shape_Area1":43879.985595703125,"FIRST_valu1_MUNAME":"Ipava silt loam, 0 to 2 percent slopes","wa_nccpi2all":0.19246543752731546}},{"attributes":{"FID":3,"intersect_MUKEY":"1595762","intersect_FID_inputShapeProjected":0,"FREQUENCY":3,"MIN_valu1_nccpi2all":0.83099997043609619,"SUM_intersect_Shape_Area1":48154.41943359375,"FIRST_valu1_MUNAME":"Sable silty clay loam, 0 to 2 percent slopes","wa_nccpi2all":0.18995531583666062}},{"attributes":{"FID":4,"intersect_MUKEY":"1596009","intersect_FID_inputShapeProjected":0,"FREQUENCY":1,"MIN_valu1_nccpi2all":0.69900000095367432,"SUM_intersect_Shape_Area1":622.129638671875,"FIRST_valu1_MUNAME":"Catlin silt loam, 5 to 10 percent slopes, eroded","wa_nccpi2all":0.0020642978504928672}},{"attributes":{"FID":5,"intersect_MUKEY":"1596046","intersect_FID_inputShapeProjected":0,"FREQUENCY":1,"MIN_valu1_nccpi2all":0.52600002288818359,"SUM_intersect_Shape_Area1":0.96931594610214233,"FIRST_valu1_MUNAME":"Wyanet silt loam, 5 to 10 percent slopes, eroded","wa_nccpi2all":2.4202788878987444e-006}},{"attributes":{"FID":6,"intersect_MUKEY":"1612280","intersect_FID_inputShapeProjected":0,"FREQUENCY":1,"MIN_valu1_nccpi2all":0.93000000715255737,"SUM_intersect_Shape_Area1":108996.453125,"FIRST_valu1_MUNAME":"Buckhart silt loam, till substratum, 2 to 5 percent slopes","wa_nccpi2all":0.48118226232135802}}],"exceededTransferLimit":false}}],"messages":[]}

Code samples

@ECHO OFF

curl -v -X POST "https://aganalyticsapimanagementservice.azure-api.net/ssurgosoil/"
-H "Content-Type: application/x-www-form-urlencoded"
-H "Ocp-Apim-Subscription-Key: {subscription key}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");

            var uri = "https://aganalyticsapimanagementservice.azure-api.net/ssurgosoil/?" + queryString;

            HttpResponseMessage response;

            // Request body
            byte[] byteData = Encoding.UTF8.GetBytes("{body}");

            using (var content = new ByteArrayContent(byteData))
            {
               content.Headers.ContentType = new MediaTypeHeaderValue("< your content type, i.e. application/json >");
               response = await client.PostAsync(uri, content);
            }

        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://aganalyticsapimanagementservice.azure-api.net/ssurgosoil/");


            URI uri = builder.build();
            HttpPost request = new HttpPost(uri);
            request.setHeader("Content-Type", "application/x-www-form-urlencoded");
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
        };
      
        $.ajax({
            url: "https://aganalyticsapimanagementservice.azure-api.net/ssurgosoil/?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
            },
            type: "POST",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://aganalyticsapimanagementservice.azure-api.net/ssurgosoil/";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"POST"];
    // Request headers
    [_request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://aganalyticsapimanagementservice.azure-api.net/ssurgosoil/');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Content-Type' => 'application/x-www-form-urlencoded',
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_POST);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Content-Type': 'application/x-www-form-urlencoded',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.urlencode({
})

try:
    conn = httplib.HTTPSConnection('aganalyticsapimanagementservice.azure-api.net')
    conn.request("POST", "/ssurgosoil/?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Content-Type': 'application/x-www-form-urlencoded',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.parse.urlencode({
})

try:
    conn = http.client.HTTPSConnection('aganalyticsapimanagementservice.azure-api.net')
    conn.request("POST", "/ssurgosoil/?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://aganalyticsapimanagementservice.azure-api.net/ssurgosoil/')


request = Net::HTTP::Post.new(uri.request_uri)
# Request headers
request['Content-Type'] = 'application/x-www-form-urlencoded'
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body