---
title: "Returns daily usage statistics of a specific primary domain."
method: GET
path: "/usage/stats/primary/{domainId}/daily"
tags: ["usage"]
---

# Returns daily usage statistics of a specific primary domain.

`GET /usage/stats/primary/{domainId}/daily`

## Request

- Base URL: `https://manager.digicertdns.com/v1`
- URL: `https://manager.digicertdns.com/v1/usage/stats/primary/{domainId}/daily`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/digicert/apis/digicert-dns/docs/usage/stats/primary/:domainId/daily/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint returns daily usage statistics of a specific primary domain, helping users monitor and manage short-term resource usage.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `200` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive error handling:** Returns `401` and `404` error codes with clear descriptions when requests fail.</br>- **Periodic filtering:** Uses the `day` and `month` parameters to filter results, enabling in-depth trend analysis, performance monitoring, and tailored reporting.</br>- **Targeted data retrieval:** Employs the `domainId` parameter to return the specified domain's statistics, ensuring accuracy and relevance in the response.

## Path parameters

- `domainId` integer, required

## Query parameters

- `month` string
- `day` string

## Response `200`

Usage statistics returned successfully.

- DomainUsageDaily[]
  - `id` integer
  - `name` string
  - `type` string
  - `month` string
  - `day` string
  - `queries` DomainStats
    - `total` integer
    - `refused` integer
    - `servfail` integer
    - `notimpl` integer
    - `responsecount` integer
    - `noerror` integer
    - `nxdomain` integer
    - `formerr` integer

## Other responses

- `401`: Token is missing or expired.
- `404`: Resource not found.

---

[API](https://skmtc.dev/digicert/apis/digicert-dns.md) - [All operations](https://skmtc.dev/digicert/apis/digicert-dns/llms.txt) - [OpenAPI document](https://skmtc.dev/digicert/apis/digicert-dns/revisions/c74fc728cff8?raw)
