---
title: "Test Fetch News For Ticker"
method: POST
path: "/api/admin/test/fetch-news"
tags: ["admin"]
---

# Test Fetch News For Ticker

`POST /api/admin/test/fetch-news`

## Request

- Base URL: `https://marketcrew.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://marketcrew.ai/api/admin/test/fetch-news`
- Auth: HTTP bearer

Тестовая выгрузка новостей для указанного тикера из выбранного источника

Поддерживаемые источники:
- **yahoo**: Новости из Yahoo Finance
- **anthropic**: Новости через Anthropic AI  
- **newsapi-ai**: Новости через NewsAPI.ai (сохраняется как 'newsapi-ai')

Endpoint автоматически найдет инструмент по тикеру и попытается выгрузить новости
из указанного источника, затем сохранит их в базу данных.

## Request body

- TestNewsFetchRequest: Request model for test news fetch
  - `ticker` string, required: Stock ticker symbol (e.g., AAPL, MSFT)
  - `source` 'yahoo' | 'anthropic' | 'newsapi-ai', required: News source types for test fetch

## Response `200`

Successful Response

- TestNewsFetchResponse: Response model for test news fetch
  - `success` boolean, required
  - `message` string, required
  - `ticker` string, required
  - `source` 'yahoo' | 'anthropic' | 'newsapi-ai', required: News source types for test fetch
  - `news_found` integer, required
  - `news_saved` integer, required
  - `news_items` object[], nullable
  - `instrument_id` string, nullable
  - `errors` string[], nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/marketcrew/apis/cappilot.md) · [All operations](https://skmtc.dev/marketcrew/apis/cappilot/llms.txt) · [OpenAPI document](https://skmtc.dev/marketcrew/apis/cappilot/revisions/7036e9c74d40?raw)
