Overview
This guide demonstrates how to use the Bigdata Search Volume API endpoint (/v1/search/volume) to retrieve and visualize theme volume data over time. The script displays the evolution of documents, chunks, and sentiment for any given theme, helping you track narrative trends and coverage patterns.
GitHub Repository
Access the complete source code, requirements, and setup instructions.
Features
✅ Retrieves theme volume data from the Bigdata Search Volume API✅ Visualizes three key metrics: number of documents, number of chunks, and sentiment
✅ Displays daily values as bars (documents and chunks) or lines (sentiment)
✅ Overlays weekly average trends for better pattern recognition
✅ Generates high-resolution PNG charts with theme-specific filenames
✅ Supports custom date ranges and themes via command-line arguments
Use Cases
The Search Volume endpoint is valuable for several scenarios:- Evaluate Coverage: See how many unique documents Bigdata has available for your particular query
- Narrative/Thematic Screeners: Create a query and see how the defined narrative evolves over time
- Query Strategy: Check coverage and plan how to structure your queries accordingly
Prerequisites
- Python 3.9 or higher
- A Bigdata.com API key
System Dependencies
Matplotlib requires some system libraries for chart generation.- Ubuntu/Debian
- macOS
- Windows
Setup
1
Clone the repository
2
Create a virtual environment (recommended)
- Linux/macOS
- Windows
3
Install Python dependencies
4
Configure API Key
Copy the Open the You can obtain your API key from the Bigdata Platform.
.env_template file to .env:.env file and replace the placeholder value with your actual API key:Usage
Run the script
Run the script with required date range parameters:Command-Line Arguments
| Argument | Short | Description | Required |
|---|---|---|---|
--start-date | -s | Start date in format YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ | Yes |
--end-date | -e | End date in format YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ | Yes |
--theme | -t | Theme to search for (default: “Tariffs impact”) | No |
Examples
Basic usage with default theme:Output
The script generates a high-resolution (300 DPI) PNG chart with a timestamped filename:- Unique Documents per Day: Daily document counts as bars with weekly average line
- Chunks per Day: Daily chunk counts as bars with weekly average line
- Sentiment per Day: Daily sentiment values as a line with weekly average line
Example Charts
Here are example charts generated for different themes:- Tariffs Impact
- Quantum Computing
- Solid State Batteries
- Greenland
- Venezuela
Theme: 
"Tariffs impact"





