> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superlink.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Subdomain created per-day

Obtain aggregated counts of subdomains created per day for specified parent domain

<CodeGroup>
  ```javascript javascript theme={null}
  // See documentation to set up the client first

  let apiInstance = new superlink.SubdomainApi();
  let parentDomain = "supertest.me";
  let opts = {
    'paginationToken': null,
    'pageSize': 100
  }

  apiInstance.subdomainPerDay(parentDomain, opts, (error, data, response) => {
    if (error) {
      console.error(error);
    } else {
      console.log(`${data.nextPaginationToken}`)
      console.log(`${data.total}`)
      data.aggregates.forEach(perDay => {
        console.log(perDay.date);
        console.log(perDay.count);
      })
    }
  });
  ```

  ```go go theme={null}
  // See documentation to set up the client first

  parentDomain := "supertest.me"
  resp, r, err := superlinkClient.SubdomainAPI.SubdomainPerDay(context.Background(), parentDomain).PageSize(10).Execute()
  if err != nil {
    fmt.Fprintf(os.Stderr, "Error when calling `SubdomainAPI.SubdomainPerDay``: %v\n", err)
    fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
  }

  fmt.Fprintf(os.Stdout, "%s\n", *resp.NextPaginationToken)
  fmt.Fprintf(os.Stdout, "%s\n", *resp.Total)

  for _, p := range resp.Aggregates {
    fmt.Fprintf(os.Stdout, "%s %s\n", *p.Date, *p.Count)
  }
  ```

  ```python python theme={null}
  # See documentation to set up the client first

  api_instance = superlink.SubdomainApi(api_client)
  parent_domain = 'supertest.me'

  try:
      api_response = api_instance.subdomain_per_day(parent_domain, pagination_token=None, page_size=10)
      print(api_response.next_pagination_token)
      print(api_response.total)
      for per_day in api_response.aggregates:
          print(per_day.date)
          print(per_day.count)
  except Exception as e:
      print("Exception when calling SubdomainApi->subdomain_per_day: %s\n" % e)
  ```
</CodeGroup>
