Klips: How do I convert my Twitter static date ranges to dynamic date ranges?

Many Klips that use Twitter data need a date range that is dynamic (for example, past 30 days).

To change the query from a fixed range to a dynamic one:

  1. Add a ? to the end of the URL.
  2. Enter start-date={date.last30Days} at the end of your Query URL (after the ?).
  3. Enter &end-date={date.today} at the end of your Query URL (after the start-date parameter).
  4. At Data Format, use the drop-down menu to select JSON.
  5. Click Get data.
  6. Ensure this is the data you’re looking for and, optionally, select the checkbox to Model your data. Learn more about modelling your data source here.
  7. Click Continue.
  8. Name, choose refresh settings, and, optionally, share your data source.
  9. Click Save.

This may override other parameters in your Query URL such as count=50. To resolve this issue, delete the parameter. The Query URL will return all the data within the period specified. If you modify the sample query provided above using a date range, this is what it will look like:

Common date range expressions:

  • {date.today}
  • {date.last30Days}
  • {date.startOfQuarter}
Have more questions? Submit a request