Polaris Soils Data Layers

API change history

The POLARIS Soils Data Layers API provides a spatially continuous, internally consistent, quantitative prediction of soil series at a 30 m spatial resolution for the contiguous United States.

Get Request Polaris Soils Data Layers

Polaris is a recently developed soil data set that provides additional soil attributes. The POLARIS Soils Data Layers API provides a spatially continuous, internally consistent, quantitative prediction of soil series at a 30 m spatial resolution for the contiguous United States.

View Documentation


Polaris Soils in Ag-Analytics FarmScope.

Try it

Request

Request URL

Request parameters

  • The shape information for field in esriGeometryPolygon format.

  • e.g. pH, Organic Matter

  • Statistics options are: min, max, mean, and variance

  • Soil depth in CM.

Request headers

  • string
    Subscription key which provides access to this API. Found in your Profile.

Request body

Responses

200 OK

Representations

{"results":[{"paramName":"MeanFieldValue","dataType":"GPString","value":"6.17"},{"paramName":"PolygonOutput","dataType":"GPFeatureRecordSetLayer","value":{"displayFieldName":"","geometryType":"esriGeometryPolygon","spatialReference":{"wkid":4326,"latestWkid":4326},"fields":[{"name":"FID","type":"esriFieldTypeOID","alias":"FID"},{"name":"ID","type":"esriFieldTypeInteger","alias":"ID"},{"name":"GRIDCODE","type":"esriFieldTypeInteger","alias":"GRIDCODE"},{"name":"val_float","type":"esriFieldTypeDouble","alias":"val_float"},{"name":"Shape_Length","type":"esriFieldTypeDouble","alias":"Shape_Length"},{"name":"Shape_Area","type":"esriFieldTypeDouble","alias":"Shape_Area"}],"features":[{"attributes":{"FID":1,"ID":1,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.0025317420608140925,"Shape_Area":2.0972534543453469e-007},"geometry":{"rings":[[[-88.513221989999977,39.598409325000034],[-88.514217762999976,39.598469014000045],[-88.51420851599994,39.598557971000048],[-88.514149940999971,39.598554460000059],[-88.514145317999976,39.598598938000066],[-88.51408674299995,39.598595427000078],[-88.514082118999966,39.598639906000074],[-88.513964968999971,39.59863288400004],[-88.513960344999987,39.598677363000036],[-88.513316019999991,39.598638740000069],[-88.513311395999949,39.598683219000065],[-88.513194245999955,39.598676196000042],[-88.513221989999977,39.598409325000034]]]}},{"attributes":{"FID":2,"ID":2,"GRIDCODE":6209930,"val_float":6.2099299999999999,"Shape_Length":0.0028558977982848887,"Shape_Area":3.1983131838778713e-007},"geometry":{"rings":[[[-88.512109069999951,39.598342605000028],[-88.513221989999977,39.598409325000034],[-88.513194245999955,39.598676196000042],[-88.512549919999969,39.598637570000051],[-88.512545295999985,39.598682048000057],[-88.512076695999951,39.598653955000032],[-88.512109069999951,39.598342605000028]]]}},{"attributes":{"FID":3,"ID":3,"GRIDCODE":6133198,"val_float":6.1331980000000001,"Shape_Length":0.0028279723898758553,"Shape_Area":3.6177576394967585e-007},"geometry":{"rings":[[[-88.511054725999941,39.598279388000037],[-88.512109069999951,39.598342605000028],[-88.512076695999951,39.598653955000032],[-88.511725245999969,39.59863288300005],[-88.511720620999938,39.598677361000057],[-88.511017721999963,39.598635215000058],[-88.511054725999941,39.598279388000037]]]}},{"attributes":{"FID":4,"ID":4,"GRIDCODE":6148544,"val_float":6.1485440000000002,"Shape_Length":0.0031242047257856857,"Shape_Area":4.5615151166673748e-007},"geometry":{"rings":[[[-88.50994180899994,39.598212649000061],[-88.511054725999941,39.598279388000037],[-88.511017721999963,39.598635215000058],[-88.510959146999937,39.598631703000081],[-88.510954520999974,39.59867618100003],[-88.510134472999937,39.598627005000026],[-88.510129846999973,39.598671484000079],[-88.509895546999985,39.598657433000028],[-88.50994180899994,39.598212649000061]]]}},{"attributes":{"FID":5,"ID":5,"GRIDCODE":6133198,"val_float":6.1331980000000001,"Shape_Length":0.0015985259884337597,"Shape_Area":1.5729357874616028e-007},"geometry":{"rings":[[[-88.509590361999983,39.598191571000029],[-88.50994180899994,39.598212649000061],[-88.509895546999985,39.598657433000028],[-88.509544097999935,39.598636355000053],[-88.509590361999983,39.598191571000029]]]}},{"attributes":{"FID":6,"ID":6,"GRIDCODE":6133198,"val_float":6.1331980000000001,"Shape_Length":0.0036717199087141035,"Shape_Area":1.3370045650972759e-007},"geometry":{"rings":[[[-88.517234328999962,39.59779942800003],[-88.517229706999956,39.597843906000037],[-88.516526812999984,39.597801791000052],[-88.516522190999979,39.597846270000048],[-88.51581929699995,39.597804151000048],[-88.515814673999955,39.597848629000055],[-88.515521801999967,39.59783107800007],[-88.515535669999963,39.59769764300006],[-88.517234328999962,39.59779942800003]]]}},{"attributes":{"FID":7,"ID":7,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.0036944009223015203,"Shape_Area":8.3102907436767199e-007},"geometry":{"rings":[[[-88.513309847999949,39.59756423400006],[-88.514247034999983,39.597620411000037],[-88.514219293999986,39.597887282000045],[-88.514277868999955,39.597890793000033],[-88.514217762999976,39.598469014000045],[-88.513221989999977,39.598409325000034],[-88.513309847999949,39.59756423400006]]]}},{"attributes":{"FID":8,"ID":8,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.0026381657882200791,"Shape_Area":3.6963599353205685e-007},"geometry":{"rings":[[[-88.509561113999951,39.597339457000032],[-88.510029704999965,39.597367560000066],[-88.50994180899994,39.598212649000061],[-88.509590361999983,39.598191571000029],[-88.509531787999947,39.598188058000062],[-88.509582677999958,39.597698797000078],[-88.50952410299999,39.597695284000054],[-88.509561113999951,39.597339457000032]]]}},{"attributes":{"FID":9,"ID":9,"GRIDCODE":6148544,"val_float":6.1485440000000002,"Shape_Length":0.0011011558185239335,"Shape_Area":2.8836806820438634e-008},"geometry":{"rings":[[[-88.518875910999952,39.597315950000052],[-88.518934484999988,39.597319458000072],[-88.518883658999982,39.59780872400006],[-88.518825083999957,39.597805215000051],[-88.518875910999952,39.597315950000052]]]}},{"attributes":{"FID":10,"ID":10,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.0039290983840893773,"Shape_Area":9.0180347996494174e-007},"geometry":{"rings":[[[-88.517790728999955,39.596982408000031],[-88.518903633999969,39.597049078000055],[-88.518875910999952,39.597315950000052],[-88.518825083999957,39.597805215000051],[-88.518649360999973,39.597794689000068],[-88.518644739999957,39.597839168000064],[-88.518000418999975,39.597800569000071],[-88.517995797999959,39.597845048000067],[-88.51770292499998,39.59782750200003],[-88.517790728999955,39.596982408000031]]]}},{"attributes":{"FID":11,"ID":11,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.0060415296261089454,"Shape_Area":1.842920033707243e-006},"geometry":{"rings":[[[-88.511230488999956,39.596589209000058],[-88.513397702999953,39.59671914300003],[-88.513309847999949,39.59756423400006],[-88.511142607999943,39.597434299000042],[-88.511230488999956,39.596589209000058]]]}},{"attributes":{"FID":12,"ID":12,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.0099706805313048569,"Shape_Area":3.7356813233188289e-006},"geometry":{"rings":[[[-88.510117597999965,39.596522472000061],[-88.511230488999956,39.596589209000058],[-88.511142607999943,39.597434299000042],[-88.513309847999949,39.59756423400006],[-88.513221989999977,39.598409325000034],[-88.512109069999951,39.598342605000028],[-88.511054725999941,39.598279388000037],[-88.50994180899994,39.598212649000061],[-88.510029704999965,39.597367560000066],[-88.510117597999965,39.596522472000061]]]}},{"attributes":{"FID":13,"ID":13,"GRIDCODE":6148544,"val_float":6.1485440000000002,"Shape_Length":0.0028728673540596075,"Shape_Area":4.5351944139921709e-007},"geometry":{"rings":[[[-88.509531866999964,39.596487343000035],[-88.510117597999965,39.596522472000061],[-88.510029704999965,39.597367560000066],[-88.509561113999951,39.597339457000032],[-88.509574992999944,39.59720602200008],[-88.509516418999965,39.597202509000056],[-88.509567308999976,39.596713247000025],[-88.509508735999987,39.596709734000058],[-88.509531866999964,39.596487343000035]]]}},{"attributes":{"FID":14,"ID":14,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.0060414945693402916,"Shape_Area":1.8429027563706388e-006},"geometry":{"rings":[[[-88.515711326999963,39.596007458000031],[-88.517878531999941,39.596137315000078],[-88.517790728999955,39.596982408000031],[-88.515623498999958,39.596852550000051],[-88.515711326999963,39.596007458000031]]]}},{"attributes":{"FID":15,"ID":15,"GRIDCODE":6209930,"val_float":6.2099299999999999,"Shape_Length":0.0039290595335135983,"Shape_Area":9.4635106345350302e-007},"geometry":{"rings":[[[-88.510205489999976,39.595677384000055],[-88.511318367999991,39.595744120000063],[-88.511230488999956,39.596589209000058],[-88.510117597999965,39.596522472000061],[-88.510205489999976,39.595677384000055]]]}},{"attributes":{"FID":16,"ID":16,"GRIDCODE":6194583,"val_float":6.1945829999999997,"Shape_Length":0.0031075652937194252,"Shape_Area":5.3740087723643679e-007},"geometry":{"rings":[[[-88.509502620999967,39.595635229000038],[-88.510205489999976,39.595677384000055],[-88.510117597999965,39.596522472000061],[-88.509531866999964,39.596487343000035],[-88.509559624999952,39.596220473000074],[-88.509501051999962,39.596216960000049],[-88.509551940999984,39.595727699000065],[-88.509493367999937,39.595724186000041],[-88.509502620999967,39.595635229000038]]]}},{"attributes":{"FID":17,"ID":17,"GRIDCODE":6133198,"val_float":6.1331980000000001,"Shape_Length":0.0056283452174911543,"Shape_Area":1.7249287892405484e-006},"geometry":{"rings":[[[-88.518844919999935,39.595344854000075],[-88.518903492999982,39.595348363000028],[-88.518857287999936,39.595793149000031],[-88.518915860999982,39.59579665800004],[-88.518865035999966,39.596285923000039],[-88.518923608999955,39.596289432000049],[-88.518868162999979,39.596823176000044],[-88.518926736999958,39.596826684000064],[-88.518903633999969,39.597049078000055],[-88.517790728999955,39.596982408000031],[-88.517878531999941,39.596137315000078],[-88.517966331999958,39.595292221000079],[-88.518844919999935,39.595344854000075]]]}},{"attributes":{"FID":18,"ID":18,"GRIDCODE":6133198,"val_float":6.1331980000000001,"Shape_Length":0.0038395736235199772,"Shape_Area":8.965232654575615e-007},"geometry":{"rings":[[[-88.512543776999962,39.594161635000034],[-88.513656633999972,39.594228351000027],[-88.513573407999957,39.595028962000072],[-88.51246053899996,39.59496224600008],[-88.512543776999962,39.594161635000034]]]}},{"attributes":{"FID":19,"ID":19,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.0037222179826827558,"Shape_Area":8.4933707129253328e-007},"geometry":{"rings":[[[-88.512543776999962,39.594161635000034],[-88.51246053899996,39.59496224600008],[-88.511406243999943,39.594899031000068],[-88.511489493999989,39.594098421000069],[-88.512543776999962,39.594161635000034]]]}},{"attributes":{"FID":20,"ID":20,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.0038116381430792138,"Shape_Area":8.9651636169227089e-007},"geometry":{"rings":[[[-88.517083024999977,39.593583346000059],[-88.518137304999982,39.593646513000067],[-88.518049508999979,39.594491606000076],[-88.516995215999941,39.594428439000069],[-88.517083024999977,39.593583346000059]]]}},{"attributes":{"FID":21,"ID":21,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.0039289910119951156,"Shape_Area":9.4632270225063602e-007},"geometry":{"rings":[[[-88.517083024999977,39.593583346000059],[-88.516995215999941,39.594428439000069],[-88.515882352999938,39.594361753000044],[-88.51597017499995,39.593516661000081],[-88.517083024999977,39.593583346000059]]]}},{"attributes":{"FID":22,"ID":22,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.009467877741262485,"Shape_Area":3.6857120345334168e-006},"geometry":{"rings":[[[-88.513744480999947,39.593383260000053],[-88.514857326999959,39.593449966000037],[-88.51476949299996,39.594295057000068],[-88.515882352999938,39.594361753000044],[-88.515799151999943,39.595162366000068],[-88.514686278999989,39.595095669000045],[-88.514598440999976,39.595940760000076],[-88.513485556999967,39.595874053000045],[-88.513573407999957,39.595028962000072],[-88.513656633999972,39.594228351000027],[-88.513744480999947,39.593383260000053]]]}},{"attributes":{"FID":23,"ID":23,"GRIDCODE":6148544,"val_float":6.1485440000000002,"Shape_Length":0.0039289865013335543,"Shape_Area":9.4632057561954503e-007},"geometry":{"rings":[[[-88.51263163699997,39.59331654500005],[-88.513744480999947,39.593383260000053],[-88.513656633999972,39.594228351000027],[-88.512543776999962,39.594161635000034],[-88.51263163699997,39.59331654500005]]]}},{"attributes":{"FID":24,"ID":24,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.030448152689286238,"Shape_Area":1.4161114839896085e-005},"geometry":{"rings":[[[-88.511577365999983,39.593253333000064],[-88.51263163699997,39.59331654500005],[-88.512543776999962,39.594161635000034],[-88.511489493999989,39.594098421000069],[-88.511406243999943,39.594899031000068],[-88.51246053899996,39.59496224600008],[-88.513573407999957,39.595028962000072],[-88.513485556999967,39.595874053000045],[-88.514598440999976,39.595940760000076],[-88.515711326999963,39.596007458000031],[-88.515623498999958,39.596852550000051],[-88.517790728999955,39.596982408000031],[-88.51770292499998,39.59782750200003],[-88.517234328999962,39.59779942800003],[-88.515535669999963,39.59769764300006],[-88.515521801999967,39.59783107800007],[-88.515053205999948,39.597802996000041],[-88.515048582999952,39.597847474000048],[-88.51457998799998,39.597819390000041],[-88.514593856999966,39.597685954000042],[-88.514535282999987,39.597682443000053],[-88.514567645999989,39.597371094000039],[-88.514509071999953,39.59736758300005],[-88.514518317999944,39.597278626000048],[-88.514401169999985,39.59727160500006],[-88.51440579399997,39.597227126000064],[-88.514347219999991,39.597223615000075],[-88.514365712999961,39.59704570100007],[-88.514307138999982,39.597042191000071],[-88.514348749999954,39.596641884000064],[-88.514114455999959,39.596627841000043],[-88.514063596999961,39.597117104000063],[-88.51412217099994,39.597120615000051],[-88.514094429999943,39.597387486000059],[-88.514153003999979,39.597390997000048],[-88.514148380999984,39.597435475000054],[-88.514206954999963,39.597438986000043],[-88.514202330999979,39.597483465000039],[-88.514260904999958,39.597486976000027],[-88.514247034999983,39.597620411000037],[-88.513309847999949,39.59756423400006],[-88.513397702999953,39.59671914300003],[-88.511230488999956,39.596589209000058],[-88.511318367999991,39.595744120000063],[-88.510205489999976,39.595677384000055],[-88.509502620999967,39.595635229000038],[-88.509544256999959,39.595234924000067],[-88.509485684999959,39.595231411000043],[-88.509536572999991,39.594742150000059],[-88.509478000999991,39.594738637000034],[-88.509528888999967,39.59424937600005],[-88.509470317999956,39.594245863000026],[-88.509498074999954,39.593978993000064],[-88.510376640999937,39.594031686000051],[-88.510464526999954,39.593186598000045],[-88.511577365999983,39.593253333000064]]]}},{"attributes":{"FID":25,"ID":25,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.012317283109817109,"Shape_Area":4.7315637028055076e-006},"geometry":{"rings":[[[-88.512719495999988,39.592471456000055],[-88.513832325999942,39.592538171000058],[-88.514945158999979,39.592604875000063],[-88.517170830999987,39.592738254000039],[-88.517083024999977,39.593583346000059],[-88.51597017499995,39.593516661000081],[-88.515882352999938,39.594361753000044],[-88.51476949299996,39.594295057000068],[-88.514857326999959,39.593449966000037],[-88.513744480999947,39.593383260000053],[-88.51263163699997,39.59331654500005],[-88.512719495999988,39.592471456000055]]]}},{"attributes":{"FID":26,"ID":26,"GRIDCODE":6209930,"val_float":6.2099299999999999,"Shape_Length":0.0038116055696386869,"Shape_Area":8.9650187695360276e-007},"geometry":{"rings":[[[-88.512719495999988,39.592471456000055],[-88.51263163699997,39.59331654500005],[-88.511577365999983,39.593253333000064],[-88.511665236999988,39.592408244000069],[-88.512719495999988,39.592471456000055]]]}},{"attributes":{"FID":27,"ID":27,"GRIDCODE":6148544,"val_float":6.1485440000000002,"Shape_Length":0.018851491172766591,"Shape_Area":7.866857870949534e-006},"geometry":{"rings":[[[-88.518840019999971,39.591987906000043],[-88.518835399999944,39.592032385000039],[-88.518893969999965,39.592035893000059],[-88.518833906999987,39.59261411500006],[-88.518892476999952,39.59261762400007],[-88.518837032999954,39.593151367000075],[-88.518895603999965,39.593154876000028],[-88.518835539999941,39.59373309800003],[-88.518894110999952,39.59373660600005],[-88.518834045999938,39.594314828000051],[-88.518892617999938,39.594318337000061],[-88.518837172999952,39.594852081000056],[-88.518895744999952,39.594855589000076],[-88.518844919999935,39.595344854000075],[-88.517966331999958,39.595292221000079],[-88.517878531999941,39.596137315000078],[-88.515711326999963,39.596007458000031],[-88.514598440999976,39.595940760000076],[-88.514686278999989,39.595095669000045],[-88.515799151999943,39.595162366000068],[-88.515882352999938,39.594361753000044],[-88.516995215999941,39.594428439000069],[-88.518049508999979,39.594491606000076],[-88.518137304999982,39.593646513000067],[-88.517083024999977,39.593583346000059],[-88.517170830999987,39.592738254000039],[-88.518225099999938,39.592801420000058],[-88.518312891999983,39.591956327000048],[-88.518840019999971,39.591987906000043]]]}},{"attributes":{"FID":28,"ID":28,"GRIDCODE":6194583,"val_float":6.1945829999999997,"Shape_Length":0.0061585869312700174,"Shape_Area":1.8925980466748993e-006},"geometry":{"rings":[[[-88.515032989999952,39.591759784000033],[-88.517258634999962,39.591893162000076],[-88.517170830999987,39.592738254000039],[-88.514945158999979,39.592604875000063],[-88.515032989999952,39.591759784000033]]]}},{"attributes":{"FID":29,"ID":29,"GRIDCODE":6209930,"val_float":6.2099299999999999,"Shape_Length":0.0039289338428304607,"Shape_Area":9.462981720020912e-007},"geometry":{"rings":[[[-88.513920169999949,39.591693081000074],[-88.515032989999952,39.591759784000033],[-88.514945158999979,39.592604875000063],[-88.513832325999942,39.592538171000058],[-88.513920169999949,39.591693081000074]]]}},{"attributes":{"FID":30,"ID":30,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.0040462736059071608,"Shape_Area":9.4891548284063454e-007},"geometry":{"rings":[[[-88.509468910999942,39.591426168000055],[-88.510640291999948,39.591496423000081],[-88.510552409999946,39.592341511000029],[-88.50949815499996,39.592278280000073],[-88.509512032999965,39.592144845000064],[-88.509453463999989,39.59214133200004],[-88.50950897599995,39.591607594000038],[-88.509450406999974,39.591604081000071],[-88.509468910999942,39.591426168000055]]]}},{"attributes":{"FID":31,"ID":31,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.0061585334368293859,"Shape_Area":1.8925745630075592e-006},"geometry":{"rings":[[[-88.515120817999957,39.590914694000048],[-88.517346437999947,39.591048070000056],[-88.517258634999962,39.591893162000076],[-88.515032989999952,39.591759784000033],[-88.515120817999957,39.590914694000048]]]}},{"attributes":{"FID":32,"ID":32,"GRIDCODE":6194583,"val_float":6.1945829999999997,"Shape_Length":0.003928906214608778,"Shape_Area":9.4628638537162575e-007},"geometry":{"rings":[[[-88.514008010999987,39.590847991000032],[-88.515120817999957,39.590914694000048],[-88.515032989999952,39.591759784000033],[-88.513920169999949,39.591693081000074],[-88.514008010999987,39.590847991000032]]]}},{"attributes":{"FID":33,"ID":33,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.0060411731173444045,"Shape_Area":1.8427661507794336e-006},"geometry":{"rings":[[[-88.511840971999959,39.590718068000058],[-88.514008010999987,39.590847991000032],[-88.513920169999949,39.591693081000074],[-88.511753104999968,39.591563156000063],[-88.511840971999959,39.590718068000058]]]}},{"attributes":{"FID":34,"ID":34,"GRIDCODE":6194583,"val_float":6.1945829999999997,"Shape_Length":0.017945360777829978,"Shape_Area":7.3685404828787102e-006},"geometry":{"rings":[[[-88.509498234999967,39.590577568000072],[-88.509615371999985,39.590584594000063],[-88.510728170999982,39.590651336000064],[-88.511840971999959,39.590718068000058],[-88.511753104999968,39.591563156000063],[-88.513920169999949,39.591693081000074],[-88.513832325999942,39.592538171000058],[-88.512719495999988,39.592471456000055],[-88.511665236999988,39.592408244000069],[-88.511577365999983,39.593253333000064],[-88.510464526999954,39.593186598000045],[-88.510376640999937,39.594031686000051],[-88.509498074999954,39.593978993000064],[-88.509521204999942,39.593756602000042],[-88.509462634999977,39.593753089000074],[-88.509513521999963,39.593263828000033],[-88.509454950999952,39.593260315000066],[-88.509510463999959,39.592726576000075],[-88.509451893999938,39.592723063000051],[-88.50949815499996,39.592278280000073],[-88.510552409999946,39.592341511000029],[-88.510640291999948,39.591496423000081],[-88.509468910999942,39.591426168000055],[-88.509510544999955,39.591025864000073],[-88.50945197599998,39.59102235000006],[-88.509498234999967,39.590577568000072]]]}},{"attributes":{"FID":35,"ID":35,"GRIDCODE":6148544,"val_float":6.1485440000000002,"Shape_Length":0.010410870956705771,"Shape_Area":3.5387468787020875e-006},"geometry":{"rings":[[[-88.51081142299995,39.589850727000055],[-88.515204021999978,39.590114082000071],[-88.515120817999957,39.590914694000048],[-88.514008010999987,39.590847991000032],[-88.511840971999959,39.590718068000058],[-88.510728170999982,39.590651336000064],[-88.51081142299995,39.589850727000055]]]}},{"attributes":{"FID":36,"ID":36,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.0038394364369288979,"Shape_Area":8.9646793141483316e-007},"geometry":{"rings":[[[-88.509698636999985,39.589783986000043],[-88.51081142299995,39.589850727000055],[-88.510728170999982,39.590651336000064],[-88.509615371999985,39.590584594000063],[-88.509698636999985,39.589783986000043]]]}},{"attributes":{"FID":37,"ID":37,"GRIDCODE":6148544,"val_float":6.1485440000000002,"Shape_Length":0.0020792387637877212,"Shape_Area":1.4679013026007152e-007},"geometry":{"rings":[[[-88.509464365999975,39.58976993400006],[-88.509698636999985,39.589783986000043],[-88.509615371999985,39.590584594000063],[-88.509498234999967,39.590577568000072],[-88.509507486999951,39.590488612000058],[-88.509448918999965,39.590485099000034],[-88.509504429999936,39.589951360000043],[-88.50944586199995,39.589947847000076],[-88.509464365999975,39.58976993400006]]]}},{"attributes":{"FID":38,"ID":38,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.00073769052541261234,"Shape_Area":2.6212223721738452e-008},"geometry":{"rings":[[[-88.509712513999943,39.58965055200008],[-88.509698636999985,39.589783986000043],[-88.509464365999975,39.58976993400006],[-88.509473617999959,39.589680978000047],[-88.509590752999941,39.589688004000038],[-88.509595378999961,39.589643526000032],[-88.509712513999943,39.58965055200008]]]}},{"attributes":{"FID":39,"ID":39,"GRIDCODE":6194583,"val_float":6.1945829999999997,"Shape_Length":0.0025873140290852232,"Shape_Area":1.5989412200851147e-007},"geometry":{"rings":[[[-88.51082992299996,39.589672814000039],[-88.51081142299995,39.589850727000055],[-88.509698636999985,39.589783986000043],[-88.509712513999943,39.58965055200008],[-88.510591027999965,39.589703243000031],[-88.510595652999939,39.589658764000035],[-88.51082992299996,39.589672814000039]]]}},{"attributes":{"FID":40,"ID":40,"GRIDCODE":6148544,"val_float":6.1485440000000002,"Shape_Length":0.003213378725966996,"Shape_Area":5.268694780013576e-007},"geometry":{"rings":[[[-88.517480447999958,39.58975819300008],[-88.517429616999948,39.590247457000032],[-88.51631681799995,39.590180775000078],[-88.516363034999983,39.589735990000065],[-88.516831578999984,39.589764068000079],[-88.516836199999943,39.589719589000026],[-88.517480447999958,39.58975819300008]]]}},{"attributes":{"FID":41,"ID":41,"GRIDCODE":6179237,"val_float":6.1792369999999996,"Shape_Length":0.0018667435968832725,"Shape_Area":1.9921452853925131e-007},"geometry":{"rings":[[[-88.518543913999963,39.58973239900007],[-88.518836753999949,39.589749943000072],[-88.518827513999952,39.589838900000075],[-88.518886081999938,39.589842409000028],[-88.518835259999946,39.590331673000037],[-88.518483848999949,39.590310620000025],[-88.518543913999963,39.58973239900007]]]}},{"attributes":{"FID":42,"ID":42,"GRIDCODE":6163890,"val_float":6.1638900000000003,"Shape_Length":0.023493996027768395,"Shape_Area":7.3945455664565385e-006},"geometry":{"rings":[[[-88.518543913999963,39.58973239900007],[-88.518483848999949,39.590310620000025],[-88.518835259999946,39.590331673000037],[-88.518826019999949,39.59042063000004],[-88.518884588999981,39.590424139000049],[-88.518829146999963,39.590957881000065],[-88.518887715999938,39.590961390000075],[-88.518832272999987,39.59149513300008],[-88.518890842999951,39.591498642000033],[-88.518840019999971,39.591987906000043],[-88.518312891999983,39.591956327000048],[-88.518225099999938,39.592801420000058],[-88.517170830999987,39.592738254000039],[-88.517258634999962,39.591893162000076],[-88.517346437999947,39.591048070000056],[-88.515120817999957,39.590914694000048],[-88.515204021999978,39.590114082000071],[-88.51081142299995,39.589850727000055],[-88.51082992299996,39.589672814000039],[-88.511649870999975,39.589721986000029],[-88.511654494999959,39.589677507000033],[-88.512650145999942,39.589737208000031],[-88.512654769999983,39.589692730000024],[-88.513650421999955,39.589752422000061],[-88.51365504599994,39.589707944000054],[-88.514533562999986,39.589760607000073],[-88.514538185999982,39.589716129000067],[-88.515299567999989,39.589761765000048],[-88.515304190999984,39.589717287000042],[-88.516065572999935,39.589762919000066],[-88.516070194999941,39.58971844000007],[-88.516363034999983,39.589735990000065],[-88.51631681799995,39.590180775000078],[-88.517429616999948,39.590247457000032],[-88.517480447999958,39.58975819300008],[-88.517539015999944,39.589761703000079],[-88.51754363699996,39.589717224000026],[-88.518305020999946,39.589762842000027],[-88.518309640999973,39.589718364000078],[-88.518543913999963,39.58973239900007]]]}}],"exceededTransferLimit":false}},{"paramName":"TableOutput","dataType":"GPRecordSet","value":{"displayFieldName":"","fields":[{"name":"OID","type":"esriFieldTypeOID","alias":"OID"},{"name":"Value","type":"esriFieldTypeInteger","alias":"Value"},{"name":"Count","type":"esriFieldTypeDouble","alias":"Count"},{"name":"val_float","type":"esriFieldTypeDouble","alias":"val_float"}],"features":[{"attributes":{"OID":0,"Value":6133198,"Count":1249,"val_float":6.1331980000000001}},{"attributes":{"OID":1,"Value":6148544,"Count":5327,"val_float":6.1485440000000002}},{"attributes":{"OID":2,"Value":6163890,"Count":7462,"val_float":6.1638900000000003}},{"attributes":{"OID":3,"Value":6179237,"Count":10927,"val_float":6.1792369999999996}},{"attributes":{"OID":4,"Value":6194583,"Count":4160,"val_float":6.1945829999999997}},{"attributes":{"OID":5,"Value":6209930,"Count":1186,"val_float":6.2099299999999999}}],"exceededTransferLimit":false}},{"paramName":"LegendRangeValues","dataType":"GPString","value":[[6.12552499771118, 6.1408713658650695, 6.133198], [6.1408713658650695, 6.156217734018959, 6.148544], [6.156217734018959, 6.171564102172849, 6.16389], [6.171564102172849, 6.186910470326739, 6.179237], [6.186910470326739, 6.202256838480628, 6.194583], [6.202256838480628, 6.217603206634518, 6.20993]]}],"messages":[]}

Code samples

@ECHO OFF

curl -v -X GET "https://aganalyticsapimanagementservice.azure-api.net/PolarisSoilsDataLayers/get?inputShape={"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-88.509566,39.598643],[-88.509484,39.593239],[-88.509476,39.589665],[-88.514219,39.589738],[-88.518608,39.589742],[-88.518855,39.589739],[-88.518868,39.593309],[-88.518864,39.594773],[-88.518898,39.596357],[-88.518899,39.596927],[-88.518909,39.59738],[-88.518911,39.59765],[-88.518913,39.597752],[-88.518871,39.597807],[-88.518732,39.597818],[-88.517513,39.597823],[-88.51559,39.597826],[-88.514642,39.597827],[-88.514569,39.597811],[-88.514558,39.597596],[-88.51454,39.597346],[-88.514512,39.597276],[-88.514447,39.597266],[-88.514343,39.597238],[-88.514326,39.596633],[-88.514087,39.596636],[-88.514097,39.597291],[-88.514139,39.597401],[-88.514217,39.59744],[-88.514272,39.59754],[-88.514257,39.597693],[-88.514223,39.597828],[-88.514263,39.597956],[-88.514263,39.598009],[-88.514247,39.598188],[-88.514232,39.598432],[-88.514214,39.598504],[-88.514163,39.598561],[-88.514046,39.598634],[-88.513967,39.59866],[-88.512896,39.598661],[-88.509937,39.598649],[-88.509566,39.598643]]],"spatialReference":{"wkid":4326}}}]}&SoilValue=ph&Statistics=mean&SoilHorizon=0_5"
-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}");

            // Request parameters
            queryString["inputShape"] = "{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-88.509566,39.598643],[-88.509484,39.593239],[-88.509476,39.589665],[-88.514219,39.589738],[-88.518608,39.589742],[-88.518855,39.589739],[-88.518868,39.593309],[-88.518864,39.594773],[-88.518898,39.596357],[-88.518899,39.596927],[-88.518909,39.59738],[-88.518911,39.59765],[-88.518913,39.597752],[-88.518871,39.597807],[-88.518732,39.597818],[-88.517513,39.597823],[-88.51559,39.597826],[-88.514642,39.597827],[-88.514569,39.597811],[-88.514558,39.597596],[-88.51454,39.597346],[-88.514512,39.597276],[-88.514447,39.597266],[-88.514343,39.597238],[-88.514326,39.596633],[-88.514087,39.596636],[-88.514097,39.597291],[-88.514139,39.597401],[-88.514217,39.59744],[-88.514272,39.59754],[-88.514257,39.597693],[-88.514223,39.597828],[-88.514263,39.597956],[-88.514263,39.598009],[-88.514247,39.598188],[-88.514232,39.598432],[-88.514214,39.598504],[-88.514163,39.598561],[-88.514046,39.598634],[-88.513967,39.59866],[-88.512896,39.598661],[-88.509937,39.598649],[-88.509566,39.598643]]],"spatialReference":{"wkid":4326}}}]}";
            queryString["SoilValue"] = "ph";
            queryString["Statistics"] = "mean";
            queryString["SoilHorizon"] = "0_5";
            var uri = "https://aganalyticsapimanagementservice.azure-api.net/PolarisSoilsDataLayers/get?" + queryString;

            var response = await client.GetAsync(uri);
        }
    }
}	
// // 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/PolarisSoilsDataLayers/get");

            builder.setParameter("inputShape", "{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-88.509566,39.598643],[-88.509484,39.593239],[-88.509476,39.589665],[-88.514219,39.589738],[-88.518608,39.589742],[-88.518855,39.589739],[-88.518868,39.593309],[-88.518864,39.594773],[-88.518898,39.596357],[-88.518899,39.596927],[-88.518909,39.59738],[-88.518911,39.59765],[-88.518913,39.597752],[-88.518871,39.597807],[-88.518732,39.597818],[-88.517513,39.597823],[-88.51559,39.597826],[-88.514642,39.597827],[-88.514569,39.597811],[-88.514558,39.597596],[-88.51454,39.597346],[-88.514512,39.597276],[-88.514447,39.597266],[-88.514343,39.597238],[-88.514326,39.596633],[-88.514087,39.596636],[-88.514097,39.597291],[-88.514139,39.597401],[-88.514217,39.59744],[-88.514272,39.59754],[-88.514257,39.597693],[-88.514223,39.597828],[-88.514263,39.597956],[-88.514263,39.598009],[-88.514247,39.598188],[-88.514232,39.598432],[-88.514214,39.598504],[-88.514163,39.598561],[-88.514046,39.598634],[-88.513967,39.59866],[-88.512896,39.598661],[-88.509937,39.598649],[-88.509566,39.598643]]],"spatialReference":{"wkid":4326}}}]}");
            builder.setParameter("SoilValue", "ph");
            builder.setParameter("Statistics", "mean");
            builder.setParameter("SoilHorizon", "0_5");

            URI uri = builder.build();
            HttpGet request = new HttpGet(uri);
            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
            "inputShape": "{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-88.509566,39.598643],[-88.509484,39.593239],[-88.509476,39.589665],[-88.514219,39.589738],[-88.518608,39.589742],[-88.518855,39.589739],[-88.518868,39.593309],[-88.518864,39.594773],[-88.518898,39.596357],[-88.518899,39.596927],[-88.518909,39.59738],[-88.518911,39.59765],[-88.518913,39.597752],[-88.518871,39.597807],[-88.518732,39.597818],[-88.517513,39.597823],[-88.51559,39.597826],[-88.514642,39.597827],[-88.514569,39.597811],[-88.514558,39.597596],[-88.51454,39.597346],[-88.514512,39.597276],[-88.514447,39.597266],[-88.514343,39.597238],[-88.514326,39.596633],[-88.514087,39.596636],[-88.514097,39.597291],[-88.514139,39.597401],[-88.514217,39.59744],[-88.514272,39.59754],[-88.514257,39.597693],[-88.514223,39.597828],[-88.514263,39.597956],[-88.514263,39.598009],[-88.514247,39.598188],[-88.514232,39.598432],[-88.514214,39.598504],[-88.514163,39.598561],[-88.514046,39.598634],[-88.513967,39.59866],[-88.512896,39.598661],[-88.509937,39.598649],[-88.509566,39.598643]]],"spatialReference":{"wkid":4326}}}]}",
            "SoilValue": "ph",
            "Statistics": "mean",
            "SoilHorizon": "0_5",
        };
      
        $.ajax({
            url: "https://aganalyticsapimanagementservice.azure-api.net/PolarisSoilsDataLayers/get?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
            },
            type: "GET",
            // 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/PolarisSoilsDataLayers/get";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                         @"inputShape={"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-88.509566,39.598643],[-88.509484,39.593239],[-88.509476,39.589665],[-88.514219,39.589738],[-88.518608,39.589742],[-88.518855,39.589739],[-88.518868,39.593309],[-88.518864,39.594773],[-88.518898,39.596357],[-88.518899,39.596927],[-88.518909,39.59738],[-88.518911,39.59765],[-88.518913,39.597752],[-88.518871,39.597807],[-88.518732,39.597818],[-88.517513,39.597823],[-88.51559,39.597826],[-88.514642,39.597827],[-88.514569,39.597811],[-88.514558,39.597596],[-88.51454,39.597346],[-88.514512,39.597276],[-88.514447,39.597266],[-88.514343,39.597238],[-88.514326,39.596633],[-88.514087,39.596636],[-88.514097,39.597291],[-88.514139,39.597401],[-88.514217,39.59744],[-88.514272,39.59754],[-88.514257,39.597693],[-88.514223,39.597828],[-88.514263,39.597956],[-88.514263,39.598009],[-88.514247,39.598188],[-88.514232,39.598432],[-88.514214,39.598504],[-88.514163,39.598561],[-88.514046,39.598634],[-88.513967,39.59866],[-88.512896,39.598661],[-88.509937,39.598649],[-88.509566,39.598643]]],"spatialReference":{"wkid":4326}}}]}",
                         @"SoilValue=ph",
                         @"Statistics=mean",
                         @"SoilHorizon=0_5",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"GET"];
    // Request headers
    [_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/PolarisSoilsDataLayers/get');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
    'inputShape' => '{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-88.509566,39.598643],[-88.509484,39.593239],[-88.509476,39.589665],[-88.514219,39.589738],[-88.518608,39.589742],[-88.518855,39.589739],[-88.518868,39.593309],[-88.518864,39.594773],[-88.518898,39.596357],[-88.518899,39.596927],[-88.518909,39.59738],[-88.518911,39.59765],[-88.518913,39.597752],[-88.518871,39.597807],[-88.518732,39.597818],[-88.517513,39.597823],[-88.51559,39.597826],[-88.514642,39.597827],[-88.514569,39.597811],[-88.514558,39.597596],[-88.51454,39.597346],[-88.514512,39.597276],[-88.514447,39.597266],[-88.514343,39.597238],[-88.514326,39.596633],[-88.514087,39.596636],[-88.514097,39.597291],[-88.514139,39.597401],[-88.514217,39.59744],[-88.514272,39.59754],[-88.514257,39.597693],[-88.514223,39.597828],[-88.514263,39.597956],[-88.514263,39.598009],[-88.514247,39.598188],[-88.514232,39.598432],[-88.514214,39.598504],[-88.514163,39.598561],[-88.514046,39.598634],[-88.513967,39.59866],[-88.512896,39.598661],[-88.509937,39.598649],[-88.509566,39.598643]]],"spatialReference":{"wkid":4326}}}]}',
    'SoilValue' => 'ph',
    'Statistics' => 'mean',
    'SoilHorizon' => '0_5',
);

$url->setQueryVariables($parameters);

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

// 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
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.urlencode({
    # Request parameters
    'inputShape': '{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-88.509566,39.598643],[-88.509484,39.593239],[-88.509476,39.589665],[-88.514219,39.589738],[-88.518608,39.589742],[-88.518855,39.589739],[-88.518868,39.593309],[-88.518864,39.594773],[-88.518898,39.596357],[-88.518899,39.596927],[-88.518909,39.59738],[-88.518911,39.59765],[-88.518913,39.597752],[-88.518871,39.597807],[-88.518732,39.597818],[-88.517513,39.597823],[-88.51559,39.597826],[-88.514642,39.597827],[-88.514569,39.597811],[-88.514558,39.597596],[-88.51454,39.597346],[-88.514512,39.597276],[-88.514447,39.597266],[-88.514343,39.597238],[-88.514326,39.596633],[-88.514087,39.596636],[-88.514097,39.597291],[-88.514139,39.597401],[-88.514217,39.59744],[-88.514272,39.59754],[-88.514257,39.597693],[-88.514223,39.597828],[-88.514263,39.597956],[-88.514263,39.598009],[-88.514247,39.598188],[-88.514232,39.598432],[-88.514214,39.598504],[-88.514163,39.598561],[-88.514046,39.598634],[-88.513967,39.59866],[-88.512896,39.598661],[-88.509937,39.598649],[-88.509566,39.598643]]],"spatialReference":{"wkid":4326}}}]}',
    'SoilValue': 'ph',
    'Statistics': 'mean',
    'SoilHorizon': '0_5',
})

try:
    conn = httplib.HTTPSConnection('aganalyticsapimanagementservice.azure-api.net')
    conn.request("GET", "/PolarisSoilsDataLayers/get?%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
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.parse.urlencode({
    # Request parameters
    'inputShape': '{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-88.509566,39.598643],[-88.509484,39.593239],[-88.509476,39.589665],[-88.514219,39.589738],[-88.518608,39.589742],[-88.518855,39.589739],[-88.518868,39.593309],[-88.518864,39.594773],[-88.518898,39.596357],[-88.518899,39.596927],[-88.518909,39.59738],[-88.518911,39.59765],[-88.518913,39.597752],[-88.518871,39.597807],[-88.518732,39.597818],[-88.517513,39.597823],[-88.51559,39.597826],[-88.514642,39.597827],[-88.514569,39.597811],[-88.514558,39.597596],[-88.51454,39.597346],[-88.514512,39.597276],[-88.514447,39.597266],[-88.514343,39.597238],[-88.514326,39.596633],[-88.514087,39.596636],[-88.514097,39.597291],[-88.514139,39.597401],[-88.514217,39.59744],[-88.514272,39.59754],[-88.514257,39.597693],[-88.514223,39.597828],[-88.514263,39.597956],[-88.514263,39.598009],[-88.514247,39.598188],[-88.514232,39.598432],[-88.514214,39.598504],[-88.514163,39.598561],[-88.514046,39.598634],[-88.513967,39.59866],[-88.512896,39.598661],[-88.509937,39.598649],[-88.509566,39.598643]]],"spatialReference":{"wkid":4326}}}]}',
    'SoilValue': 'ph',
    'Statistics': 'mean',
    'SoilHorizon': '0_5',
})

try:
    conn = http.client.HTTPSConnection('aganalyticsapimanagementservice.azure-api.net')
    conn.request("GET", "/PolarisSoilsDataLayers/get?%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/PolarisSoilsDataLayers/get')

query = URI.encode_www_form({
    # Request parameters
    'inputShape' => '{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-88.509566,39.598643],[-88.509484,39.593239],[-88.509476,39.589665],[-88.514219,39.589738],[-88.518608,39.589742],[-88.518855,39.589739],[-88.518868,39.593309],[-88.518864,39.594773],[-88.518898,39.596357],[-88.518899,39.596927],[-88.518909,39.59738],[-88.518911,39.59765],[-88.518913,39.597752],[-88.518871,39.597807],[-88.518732,39.597818],[-88.517513,39.597823],[-88.51559,39.597826],[-88.514642,39.597827],[-88.514569,39.597811],[-88.514558,39.597596],[-88.51454,39.597346],[-88.514512,39.597276],[-88.514447,39.597266],[-88.514343,39.597238],[-88.514326,39.596633],[-88.514087,39.596636],[-88.514097,39.597291],[-88.514139,39.597401],[-88.514217,39.59744],[-88.514272,39.59754],[-88.514257,39.597693],[-88.514223,39.597828],[-88.514263,39.597956],[-88.514263,39.598009],[-88.514247,39.598188],[-88.514232,39.598432],[-88.514214,39.598504],[-88.514163,39.598561],[-88.514046,39.598634],[-88.513967,39.59866],[-88.512896,39.598661],[-88.509937,39.598649],[-88.509566,39.598643]]],"spatialReference":{"wkid":4326}}}]}',
    'SoilValue' => 'ph',
    'Statistics' => 'mean',
    'SoilHorizon' => '0_5'
})
if query.length > 0
  if uri.query && uri.query.length > 0
    uri.query += '&' + query
  else
    uri.query = query
  end
end

request = Net::HTTP::Get.new(uri.request_uri)
# 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