Socrata Open Data API (SODA) Summary Stats

Summary Statistics for a given dataset's column

Algorithmia Platform License · Internet Access · Calls Other Algorithms

Run an Example

{
  "count": 469,
  "std": 41589.43338128099,
  "nunique": 120,
  "min": 0,
  "max": 179700,
  "50%": 66300,
  "25%": 45900,
  "75%": 113000,
  "histogram": {
    "0.0": 3,
    "161730.0": 29,
    "35940.0": 154,
    "71880.0": 43,
    "107820.0": 25,
    "143760.0": 30,
    "17970.0": 1,
    "53910.0": 95,
    "89850.0": 48,
    "125790.0": 41
  },
  "mean": 82721.33688699361
}

Install & Use

Use

curl -X POST -d '{
  "domain" : "open.whitehouse.gov",
  "fourByFour" : "bhpp-tc5n",
  "apiFieldName" : "salary"
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/marksskram/SodaSummaryStats/0.4.0