PostHog · Schema
DateRange
A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording
Properties
| Name | Type | Description |
|---|---|---|
| date_from | string | Start of the date range. Accepts ISO 8601 timestamps (e.g., 2024-01-15T00:00:00Z) or relative formats: -7d (7 days ago), -2w (2 weeks ago), -1m (1 month ago), -1h (1 hour ago), -1mStart (start of last |
| date_to | string | End of the date range. Same format as date_from. Omit or null for "now". |
| explicitDate | boolean | Whether the date_from and date_to should be used verbatim. Disables rounding to the start and end of period. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/DateRange",
"title": "DateRange",
"additionalProperties": false,
"properties": {
"date_from": {
"default": null,
"description": "Start of the date range. Accepts ISO 8601 timestamps (e.g., 2024-01-15T00:00:00Z) or relative formats: -7d (7 days ago), -2w (2 weeks ago), -1m (1 month ago),\n-1h (1 hour ago), -1mStart (start of last month), -1yStart (start of last year).",
"title": "Date From",
"type": "string",
"nullable": true
},
"date_to": {
"default": null,
"description": "End of the date range. Same format as date_from. Omit or null for \"now\".",
"title": "Date To",
"type": "string",
"nullable": true
},
"explicitDate": {
"default": false,
"description": "Whether the date_from and date_to should be used verbatim. Disables rounding to the start and end of period.",
"title": "Explicitdate",
"type": "boolean",
"nullable": true
}
},
"type": "object"
}