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

# Get Company News

Fetch recent news articles for a stock symbol from Finnhub within a date range (default: last 7 days). Returns headline, summary, source, URL, and publication timestamp per article, capped by limit (default 50, max 200). Ideal for: company news alerts, feeding headlines into AI summarization, event-driven trading workflows.

Catalog action Blockchain Data

Fetch recent news articles for a stock symbol from Finnhub within a date range (default: last 7 days). Returns headline, summary, source, URL, and publication timestamp per article, capped by limit (default 50, max 200). Ideal for: company news alerts, feeding headlines into AI summarization, event-driven trading workflows.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `finnhub-get-company-news` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `finnhub`, `stock`, `news`, `research`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | `string` | Yes | Stock symbol to get news for, e.g. 'AAPL', 'TSLA'. |
| `from` | `string` | No | Start date in YYYY-MM-DD format. Default: 7 days ago. |
| `to` | `string` | No | End date in YYYY-MM-DD format. Default: today. |
| `limit` | `number` | No | Maximum number of articles to return. Range: 1-200. Default: 50. |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | `string` | Yes | The symbol news is for |
| `from` | `string` | Yes | Start date of the queried range \(YYYY-MM-DD\) |
| `to` | `string` | Yes | End date of the queried range \(YYYY-MM-DD\) |
| `articles` | `array` | Yes | News articles, most recent first |
| `count` | `number` | Yes | Number of articles returned |

## Examples

**Workflow node**

```json
{
  "type": "finnhub-get-company-news",
  "payload": {
    "symbol": "ETH"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/finnhub-get-company-news/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "symbol": "ETH"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.