Skip to main content

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 the include_domain parameter. This allows us to focus specifically on content from:
  • A company’s official website
This domain-filtered approach ensures efficient credit usage while maintaining search accuracy.

Third-Party Coverage

To capture external perspectives, we employ specialized news search parameters:
  • Set topic = news to focus on reputable news sources
  • Utilize time_range = month for current coverage
For the functionality discussed in this tutorial, search_depth = basic will be sufficient to achieve the intended results.

Getting Started

We have prepared a Jupyter Notebook outlining the contents of this tutorial
First create an account and get your free API key.

Get your Tavily API key

Next, use the Tavily Python SDK to create the workflow.
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