The search_after_date_filter
and search_before_date_filter
parameters allow you to restrict search results to a specific publication date range. Only results with publication dates falling between these dates will be returned.
The last_updated_after_filter
and last_updated_before_filter
parameters allow you to filter by when content was last modified or updated, rather than when it was originally published.
Dates must be provided in the “%m/%d/%Y” format (e.g., “3/1/2025”). These filters are optional—you may supply either one or both as needed.
Date range filters allow you to control which search results are returned by limiting them to specific time periods. There are two types of date filters available:
The search_after_date_filter
and search_before_date_filter
parameters filter results based on when content was originally created or published. This is useful when you need to:
• Find content published within a specific timeframe
• Exclude outdated or overly recent publications
• Focus on content from a particular publication period
The last_updated_after_filter
and last_updated_before_filter
parameters filter results based on when content was last modified or updated. This is useful when you need to:
• Find recently updated or maintained content
• Exclude stale content that hasn’t been updated recently
• Focus on content that has been refreshed within a specific period
Important: These filter types target different dates—publication filters use the original creation/publication date, while last updated filters use the modification date.
To constrain search results by publication date:
To constrain search results by last updated date:
These filters will be applied in addition to any other search parameters (for example, domain filters).
1. Limiting Results by Publication Date Range
This example limits search results to content published between March 1, 2025, and March 5, 2025.
Request Example
2. Filtering with a Single Publication Date Parameter
If you only wish to restrict the results to those published on or after a specific date, include just the search_after_date_filter
:
3. Filtering by Last Updated Date Range
This example limits search results to content that was last updated between March 1, 2025, and March 5, 2025. This is useful for finding recently maintained or refreshed content.
Request Example
4. Combining Publication and Last Updated Filters
You can combine both filter types to find content that was published in one timeframe and updated in another:
Date Format • Strict Format: Dates must match the “%m/%d/%Y” format exactly. For example, the date “3/1/2025” or “03/01/2025” is acceptable. • Consistency: Use one or both filters consistently based on your search needs. Combining both provides a clear range.
Filter Selection
• Choose the Right Filter Type: Use publication date filters (search_after_date_filter
/search_before_date_filter
) when you care about when content was originally created. Use last updated filters (last_updated_after_filter
/last_updated_before_filter
) when you need recently maintained content.
• Combining Filters: You can use both publication and last updated filters together to find content that meets both criteria (e.g., published in 2024 but updated recently).
Client-Side Validation • Regex Check: Validate date strings on the client side (or via the API) using a regex such as:
This ensures that dates conform to the required format before sending the request.
Performance Considerations • Narrowing the Search: Applying date range filters typically reduces the number of results, which may improve response times and result relevance. • Avoid Over-Restriction: Ensure that the date range is neither too narrow (limiting useful results) nor too broad (defeating the purpose of the filter).
⸻
The last_updated_after_filter
and last_updated_before_filter
parameters provide powerful filtering capabilities based on when content was last modified or updated, rather than when it was originally published. This is particularly useful for finding recently maintained, refreshed, or updated content.
last_updated_after_filter
last_updated_before_filter
Content Freshness: Find articles, documentation, or resources that have been recently updated to ensure you’re getting the most current information.
Maintenance Tracking: Identify which content has been actively maintained within a specific timeframe.
Quality Assurance: Focus on content that has been refreshed recently, which often indicates higher quality and relevance.
1. Find Recently Updated Content (After a Specific Date)
2. Find Content Updated Within a Specific Window
3. Exclude Recently Updated Content (Before a Date)
Combining with Domain Filters
Finding Maintained vs. Stale Content
Content Freshness Strategy: Use last_updated_after_filter
when you need the most current information on rapidly evolving topics.
Quality Indicator: Recently updated content often indicates active maintenance and higher reliability.
Research Applications: Combine with publication date filters to find content published years ago but updated recently, indicating ongoing relevance.
Performance: These filters can significantly improve response relevance by focusing on maintained content.
Date Selection: Choose update date ranges based on your content type - technical documentation might need monthly updates, while academic papers might be updated annually.