Query Parameters
The/news endpoint supports multiple filtering options to help you get exactly the news you need.
Basic Filters
limit (integer, optional)Number of articles to return per request
- Range: 1-100
- Default: 10
- Example:
?limit=50
minImportance (integer, optional)Minimum importance score for articles
- Range: 1-10
- Default: 1 (all articles)
- Example:
?minImportance=7(high-impact news only)
Search and Symbols
q (string, optional)Search query to filter articles by content
- Format: Free text search
- Example:
?q=tesla earnings - Behavior: Searches title and content
symbol (string, optional)Filter articles related to specific stock symbol
Date Range
Filter articles within a specific time window using ISO 8601 timestamps:startDate (string, optional)Start of the date range (inclusive)
- Format: ISO 8601 (UTC)
- Example:
?startDate=2024-01-01T00:00:00.000Z
endDate (string, optional)End of the date range (inclusive)
- Format: ISO 8601 (UTC)
- Example:
?endDate=2024-01-31T23:59:59.999Z
- Format: Stock symbol (e.g., โAAPLโ, โTSLAโ)
- Example:
?symbol=AAPL - Behavior: Returns articles where the symbol appears in the
symbolsarray
Pagination
cursor (string, optional)Pagination cursor for retrieving next page
- Source: Use
nextCursorfrom previous response - Example:
?cursor=67850d7b0123456789abcde0
sinceId (string, optional)Retrieve articles created after the specified article ID
- Format: Article ID (_id field)
- Example:
?sinceId=67850d7b0123456789abcdef - Use case: Real-time polling for new articles
Filtering Examples
High-Impact News Only
Get only breaking news and major market events:- curl
- JavaScript
- Python
Symbol-Specific News
Track news for specific stocks:Search Query Filtering
Date Range Filtering
Retrieve January articles only:- curl
- JavaScript
- Python
Combining Multiple Filters
Get high-impact Apple news with search query:Advanced Filtering Patterns
Portfolio Tracking
Monitor news for multiple symbols:Real-Time Polling
Poll for new articles since last check:Importance-Based Filtering
Create different news feeds based on importance:Filter Validation
Always validate filter parameters to avoid API errors:Best Practices
Efficient Filtering
- Use appropriate limits: Donโt request more data than you need
- Filter server-side: Use API filters instead of client-side filtering
- Combine filters: Use multiple parameters to narrow results
- Cache results: Store filtered results to reduce API calls