What will you learn?
In this use case, you’ll discover how to gather a company’s product news and updates using Tavily’s Search API. This tutorial outlines how to get started with the Tavily Python SDK, how to properly configure search parameters for optimal results, and how to effectively interact with Tavily’s Search API to retrieve the latest product updates for a specified company.How does it work?
Self-Reported News
Our system gathers official updates including blog posts, product announcements, and company news by utilizing theinclude_domain parameter. This allows us to focus specifically on content from:
- A company’s official website
Third-Party Coverage
To capture external perspectives, we employ specialized news search parameters:- Set
topic = newsto focus on reputable news sources - Utilize
time_range = monthfor current coverage
Getting Started
We have prepared a Jupyter Notebook outlining the contents of this tutorialFirst create an account and get your free API key.
Get your Tavily API key
1
Install the Tavily Python SDK
Shell
2
Import the necessary libraries
Python
3
Instantiate the Tavily Client
Python
4
Define the search parameters
Python
5
Execute the search
Python
6
Output
Shell