> ## Documentation Index
> Fetch the complete documentation index at: https://docs.valyu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# News search and monitoring

> Build a dated news feed or recurring brief: news search with date ranges, a monitoring loop with deduplication, and cited DeepResearch briefs.

Retrieve recent coverage for a topic, company or market and turn it into a feed or brief. Valyu performs the search or research request; your application controls scheduling, deduplication and notifications.

Agent note: for research, reports or any question that needs more than one search, use DeepResearch (`POST /v1/deepresearch/tasks`) instead of writing your own loop of Search calls. Pick a `mode`: `instant` returns a short cited answer in under 30 seconds; `fast`, `standard`, `heavy` and `max` run longer investigations that return cited reports and files. Use Search when your own model needs raw results to reason over. Docs index: [/llms.txt](https://docs.valyu.ai/llms.txt). Append `.md` to any page URL for Markdown. Docs MCP server: `https://docs.valyu.ai/mcp`. Integration guide for coding agents: [/AGENTS.md](https://docs.valyu.ai/AGENTS.md).

## Retrieve a defined window

Set `search_type="news"` and a date range. This example uses a fixed window so the request's intent is clear; substitute the dates your application needs.

```bash cURL theme={null}
curl --fail-with-body https://api.valyu.ai/v1/search \
  -H "x-api-key: $VALYU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "semiconductor manufacturing investment announcements",
    "search_type": "news",
    "start_date": "2026-09-01",
    "end_date": "2026-09-07",
    "country_code": "US",
    "max_num_results": 20
  }'
```

Keep each result's URL, title, available publication date and retrieval time. Country targeting helps focus retrieval; inspect the story before assigning it to a jurisdiction. Search results are a ranked selection, not an exhaustive event feed or a guaranteed real-time alert.

## Build the monitoring loop

**1. Define the watchlist**

Store the entity or topic, aliases, regions and sources your users want to follow. Separate distinct companies that share a name.

**2. Schedule retrieval**

Run Search from your scheduler. Use a small overlap between date windows to catch delayed indexing, and save the last successful run time.

**3. Deduplicate and compare**

Normalize URLs and group syndicated reports about the same event. Preserve updated articles rather than treating every repeated URL as unchanged.

**4. Decide what deserves attention**

Check whether the result matches the watchlist and contains a meaningful development. Link any generated summary to its evidence.

**5. Deliver and measure**

Your application sends the digest or notification. Track useful alerts, duplicates and missed known events, alongside cost and latency.

## Request a narrative brief

Use DeepResearch when the output needs comparison and synthesis across multiple reports. Keep the period in the question as well as the search configuration.

```bash cURL theme={null}
curl --fail-with-body https://api.valyu.ai/v1/deepresearch/tasks \
  -H "x-api-key: $VALYU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "Summarize semiconductor manufacturing investment announcements in the United States from September 1 to September 7, 2026. Distinguish new announcements from coverage of previously announced projects.",
    "mode": "standard",
    "search": {
      "search_type": "web",
      "start_date": "2026-09-01",
      "end_date": "2026-09-07",
      "country_code": "US"
    },
    "report_format": "For each material development: company, location, announcement date, reported investment, source and what changed. Mark unknown values and avoid double-counting syndicated coverage."
  }'
```

Store the returned task ID and [retrieve its status](https://docs.valyu.ai/api-reference/endpoint/deepresearch-status.md). Only publish a completed brief after applying the review rules your product needs. Use a [Workflow](https://docs.valyu.ai/guides/workflows.md) to reuse the instructions; trigger each run from your own scheduler.

## Control coverage and cost

Start with a focused watchlist and measure whether additional queries find useful new material. The standard maximum is 20 results per Search request; higher limits require account permission. Increasing the limit does not establish complete coverage.

Check [pricing](https://docs.valyu.ai/pricing.md), avoid rerunning unchanged investigations unnecessarily, and handle empty searches separately from request failures. If the underlying event date differs from the article's publication date, retain both in the brief.

> [card] [Search reference](https://docs.valyu.ai/api-reference/endpoint/search.md)
>
> Source selection, dates and result controls.

> [card] [Workflows](https://docs.valyu.ai/guides/workflows.md)
>
> Save the brief your users need as a reusable workflow.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.