Google Analytics
  • Google Analytics
  • Reporting
  • Reporting API v4
Sign in
Guides Reference Samples Support
Google Analytics
  • Google Analytics
  • Reporting
  • Reporting API v4
  • Guides
  • Reference
  • Samples
  • Support
  • Overview
  • Quickstarts - Calling the API from
  •   Service Applications
    • Java
    • Python
    • PHP
  •   Installed Applications
    • Java
    • Python
  •   Web Server Applications
    • PHP
  •   Client-side Applications
    • JavaScript
  • Fundamentals
  • Creating a report
  • Advanced use cases
  • Dimensions & Metrics Explorer
  • Migration
  • Fetch user data
  • Resources
  • Authorization
  • Client Libraries
  • Limits and Quotas
  • Resource Based Quota
  • FAQs
  • Home
  • Products
  • Google Analytics
  • Reporting
  • Reporting API v4

DateRange

  • JSON representation

A contiguous set of days: startDate, startDate + 1 day, ..., endDate. The start and end dates are specified in ISO8601 date format YYYY-MM-DD.

JSON representation
{
  "startDate": string,
  "endDate": string
}
Fields
startDate

string

The start date for the query in the format YYYY-MM-DD.

endDate

string

The end date for the query in the format YYYY-MM-DD.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2019-03-19 UTC.

  • GitHub GitHub
    Try Google Analytics samples
  • Stack Overflow Stack Overflow
    Ask questions using the google-analytics tag
  • Twitter Twitter
    Follow @googleanalytics on Twitter
  • Videos Videos
    View Google Analytics videos on YouTube
  • Connect

    • Community & Updates
    • Getting Help
    • Reporting an Issue
  • Product Info

    • Protocol / SDK Policy
    • Branding Policy
  • Developer consoles

    • Google API Console
    • Google Cloud Platform Console
    • Google Play Console
    • Firebase Console
    • Actions on Google Console
    • Cast SDK Developer Console
    • Chrome Web Store Dashboard
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms
  • Privacy
  • Sign up for the Google Developers newsletter Subscribe