Product Analytics

Compute scalar analytics

Compute scalar analytics results for Product Analytics data. Returns aggregated values (counts, averages, percentiles) optionally grouped by facets.

post/api/v2/product-analytics/analytics/scalar

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/product-analytics/analytics/scalar
  • Auth
    API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY

Request body

Example request

{
  "data": {
    "attributes": {
      "from": 1771232048460,
      "query": {
        "compute": {
          "aggregation": "count"
        },
        "query": {
          "data_source": "product_analytics",
          "search": {
            "query": "@type:view"
          }
        }
      },
      "to": 1771836848262
    },
    "type": "formula_analytics_extended_request"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "columns": [
        {
          "meta": {
            "unit": [
              {
                "family": "time",
                "name": "nanosecond"
              }
            ]
          }
        }
      ]
    }
  }
}

Changes

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