Passer au contenu principal
GET
/
stats
/
daily
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.stats.getDaily({
        from: "from",
        to: "to",
    });
}
main();
[
  {
    "date": "2014-01-01T00:00:00.000Z",
    "logins": 100,
    "signups": 100,
    "leaked_passwords": 100,
    "updated_at": "2014-01-01T02:00:00.000Z",
    "created_at": "2014-01-01T20:00:00.000Z"
  }
]

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de requête

from
string

Optional first day of the date range (inclusive) in YYYYMMDD format.

Pattern: ^2[0-9]{3}((0[1-9])|(1[0-2]))((0[1-9])|([12][0-9])|(3[01]))$
to
string

Optional last day of the date range (inclusive) in YYYYMMDD format.

Pattern: ^2[0-9]{3}((0[1-9])|(1[0-2]))((0[1-9])|([12][0-9])|(3[01]))$

Réponse

Daily stats successfully retrieved.

date
string
défaut:2014-01-01T00:00:00.000Z

Date these events occurred in ISO 8601 format.

logins
integer
défaut:100

Number of logins on this date.

signups
integer
défaut:100

Number of signups on this date.

leaked_passwords
integer
défaut:100

Number of breached-password detections on this date (subscription required).

updated_at
string
défaut:2014-01-01T02:00:00.000Z

Date and time this stats entry was last updated in ISO 8601 format.

created_at
string
défaut:2014-01-01T20:00:00.000Z

Approximate date and time the first event occurred in ISO 8601 format.