Consumer Pricing

Get Price Statistics

Return summary statistics (min, max, average, median, quartiles) over prices matching the same filters as /query, excluding sorting and pagination. Use this endpoint to compare prices across relevant criteria.

post/v3/prices/statistics

Request

  • Base URL: https://api.turquoise.health
  • URL: https://api.turquoise.health/v3/prices/statistics
  • Auth: HTTP bearer

Request body

package_idstring required
provider_idstring nullable

Example request

{
  "package_id": "R017Z",
  "provider_id": "5754",
  "pricing": {
    "network_id": "-3776001016975145508"
  },
  "location": {
    "near": {
      "lat": 39.746549,
      "lng": -104.966925,
      "radius_m": 25000
    },
    "within": {
      "state": "CO",
      "cbsa": "Denver-Aurora-Centennial, CO",
      "zip_codes": [
        "80218",
        "80210"
      ]
    },
    "zip": "80218"
  }
}

Response

Successful Response

object'price_statistics'
countinteger required

Number of prices the statistics were computed over.

disclosuresstring[]

Changes

No recorded changes to this operation across all 1 revision of this API.