I am trying to use one of the US Social Security Administration's APIs, which is an ArcGIS REST service API. It looks extremely powerful, but overwhelming with how complex it is. I am hoping for an example for a simple query.

I am using Python but might just construct the API using the Requests module rather than learning a new library, so I don't need Python specific info.

Here is the endpoint: http://services6.arcgis.com/zFiipv75rloRP5N4/ArcGIS/rest/services/Office_Points/FeatureServer/1

My goal is to be able to tell an SSA recipient where the nearest 2-3 offices are, based on their address, which can be geocoded to latitude/longitude if necessary (it would be great to use the ArcGIS API for that too. Otherwise, I'm within the free tier of Google's geocoding API). I successfully queried to obtain the office matching a zip code, but it looks like I can provide a Geometry of type Point (lat/lng?) and find offices within a set distance. I'm just not understanding how to provide the information to the API nor where to find this in the documentation.

1 Answer 1


The Query


Will give you all the nearest locations from a location in Dallas within 100 miles (https://www.google.com/maps/@32.6946791,-98.0367294,8z)

Here is a result (in GeoJSON)

"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
"features": [
"type": "Feature",
"id": 87,
"geometry": {
"type": "Point",
"coordinates": [
"properties": {
"OCD": "853",
"EFF_STDT": 1441238400000,
"EFF_ENDT": 253402214400000,
"ADDRLN_2": "2475 CLIFF CREEK      ",
"ADDRLN_3": "CROSSING              ",
"ADDRLN_4": "                      ",
"CITY_NM": "DALLAS                      ",
"ST_CD": "TX",
"ZIP5": "75237",
"ZIP4": "3867",
"LATITUDE_NUM": 32.663913,
"LONGITUDE_NUM": -96.874297,
"INSRT_TS": 1441277702000,
"LU_TS": 1441277702000,
"OfficeType": "FO/1",
"OfficeCode": "853",
"OfficeName": "DALLAS OAK CLIFF TX",
"AddressLine1": "SOCIAL SECURITY",
"AddressLine2": "2475 CLIFF CREEK",
"AddressLine3": "CROSSING",
"City": "DALLAS",
"State": "TX",
"Zip5_1": "75237",
"PhoneType": "BUS",
"BusinessPhone": "8007721213",
"MON_OPEN_TM": "9:00 AM",
"MON_CLOS_TM": "4:00 PM",
"TUE_OPEN_TM": "9:00 AM",
"TUE_CLOS_TM": "4:00 PM",
"WED_OPEN_TM": "9:00 AM",
"WED_CLOS_TM": "12:00 PM",
"THU_OPEN_TM": "9:00 AM",
"THU_CLOS_TM": "4:00 PM",
"FRI_OPEN_TM": "9:00 AM",
"FRI_CLOS_TM": "4:00 PM",
"GlobalID": "11f6a13b-be96-4635-8a5c-3097c168d72d",
"CreationDate": 1501688531575,
"Creator": "abdalla.abdalla_SocialSecurity",
"EditDate": 1501688531575,
"Editor": "abdalla.abdalla_SocialSecurity",
"selected": null
"type": "Feature",
"id": 82,
"geometry": {
"type": "Point",
"coordinates": [

replace your lat and long values here &geometry=-96.915919%2C32.693022&geometryType=esriGeometryPoint&inSR=4326

*Note:Truncated the result for clarity here (full length of result is 997 lines)

  • Thanks, this is exactly what I was hoping for!
    – Quinten
    Commented Feb 13, 2019 at 3:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.