LogoLogo
  • What Is Junkipedia?
    • Introduction
    • What You Can Do
    • What You Can't Do
    • Tip-Issue-Narrative Pipeline
  • Getting Started
    • Managing Your Team
      • Inviting New Users
      • Managing Your Organization
    • Setting Up Tiplines
      • Creating A New Tipline
      • Configuring Tipline Properties
        • Hosting A Web Tipline
        • Hosting An Email Tipline
        • Hosting An SMS Tipline
        • Hosting A Whatsapp Tipline
        • Hosting A Slack Tipline
        • Hosting An API Tipline
      • Embedding A Tipline Form
      • Sharing A Tipline Via QR Code
      • Enabling Inbound Tip Review
      • Disabling A Tipline
      • Adding Default Topics & Tags (wip)
      • Reviewing Tips
    • Reporting And Documenting Misinformation
      • Submitting Tips Within Junkipedia
      • Using Tiplines Outside Of Junkipedia
        • Submit A Tip via SMS
        • Submit A Tip via Email
        • Submit A Tip Via WhatsApp
        • Submit A Tip via Slack
        • Submit A Tip via Web Form
        • Submit Tips Via API
      • Editing An Issue
        • The "Edit Issue" Form
        • What To Include
        • Adding More Tips To An Issue
        • Editing Within The Issues List
          • Issue Title & Description
          • Adding Tags To An Issue
          • Linking Issues To Narratives
    • Reviewing Tracked Content
      • Searching For Issues
      • Filtering Issues
      • Creating Saved Search Alerts
    • Managing Narratives
      • Adding Issues To A Narrative
      • Describing A Narrative
      • Preparing A Response
      • Making A Narrative Public
    • Social Media Monitoring
      • Introducing The Junkipedia Monitoring System
      • Searching The Database
      • Following Public Lists
      • Building Your Own Lists
      • Edit an Existing List
      • Sharing your lists
      • Using Actor Sets
  • Reference Material
    • Glossary
    • API
      • Using Your API Key
      • Query String Parameters
        • Text Search Parameters
        • Engagement Filters
        • Pagination
        • Post Type And Platform
        • Time Filters
        • Language Code
        • Channel Properties
        • Exclude
        • Lists
    • Best Practices
      • Fact Checking
        • Verification Resources
        • How to Verify Online Information
      • How to Find Misinformation Online
      • social media post
      • Instagram via CrowdTangle
      • Protect Your Mental Well Being
    • User Account Admin
      • Update Your User Profile Details
      • Update Your Security Settings
Powered by GitBook
On this page
  • Expressing A Time Value
  • Unix Epoch Timestamp
  • Time Range Options
  • Explicit Range
  • Explicit Start Of Range With Implied End
  • Explicit End Of Range With Implied Start
  1. Reference Material
  2. API
  3. Query String Parameters

Time Filters

PreviousPost Type And PlatformNextLanguage Code

Last updated 1 year ago

The following API entry points provide the ability to search for records based on when they were created:

  • GET /posts

  • GET /posts/stats

With each of these endpoints, two parameters work together to specify a time range for records to be included in the results:

  • published_at_from – beginning of the time range

  • published_at_to – end of the time range

Expressing A Time Value

The time values used with these parameters must be expressed with a Unix Epoch Timestamp.

Unix Epoch Timestamp

The timestamp must be expressed as an integer count of that have elapsed since 00:00:00 on the first of January 1970. A tool such as may be useful for translating to and from other representations.

For example, noon UTC on the first of January, 2022, would be represented as 1641038400.

Time Range Options

A time range may be specified in the following ways:

  • Specify an explicit start and end time using both parameters.

  • Specify an explicit start and leave the present time as an implied end of the range.

  • Omit both of these parameters to accept a system default time range of recent posts. As of November 2022, the system default time range covers the last seven days of recent posts.

Note that the use of the published_at_to parameter without the published_at_from parameter is not supported and may yield unexpected results.

Explicit Range

The following request will retrieve posts from the first of January, 2022, at noon UTC to noon UTC the following day:

GET /posts?published_at_from=1641038400&published_at_to=1641124800

Explicit Start Of Range With Implied End

Omitting the published_at_to parameter will cause the present time to be the implied end of the time range. The following request will retrieve posts from the first of January, 2022, at noon UTC to the present time:

GET /posts?published_at_from=1641038400

Explicit End Of Range With Implied Start

Omitting both the published_at_to and the published_at_from parameters will imply a default time range of recent posts:

GET /posts

Unix Epoch
seconds
UTC
epochconverter.com