# Crypto News API - 5 Outlets, Coin Tags, Sentiment, No Key (`martin10291/crypto-news-api`) Actor

One call, fresh crypto headlines from Cointelegraph, Decrypt, Bitcoin Magazine, The Block and BeInCrypto as clean JSON. Every article is tagged with the coins it mentions (BTC, ETH, SOL and 70 more), gets a quick bullish/bearish sentiment score, and points to the earlier article when several outlets

- **URL**: https://apify.com/martin10291/crypto-news-api.md
- **Developed by:** [Martin Petrov](https://apify.com/martin10291) (community)
- **Categories:** Developer tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Crypto News API - 5 Outlets, Coin Tags, Sentiment, MCP

**Crypto bots, dashboards and AI agents need fresh headlines tagged by coin, with a quick bullish/bearish signal, in one call.** No API key, no login: official publisher RSS feeds from Cointelegraph, Decrypt, Bitcoin Magazine, The Block and BeInCrypto, returned as JSON.

The default input returns the last 24 hours across all 5 outlets in a few seconds.

### Use it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/martin10291~crypto-news-api/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"coins": ["BTC", "ETH"], "hoursBack": 24, "maxItems": 50}'
```

### Use it from an AI agent (MCP)

AI agents (Claude, ChatGPT, Cursor, n8n) call it as a tool through the Apify MCP server: `https://mcp.apify.com/?actors=martin10291/crypto-news-api`. Ask the agent: "What is the latest news about SOL and is it bullish or bearish?"

### Input

| Field | Meaning |
|---|---|
| `coins` | Only articles mentioning these coins (BTC, ETH, SOL or a name like Bitcoin). Empty = all |
| `keyword` | Case-insensitive text that must appear in title or summary |
| `outlets` | `cointelegraph`, `decrypt`, `bitcoinmagazine`, `theblock`, `beincrypto`. Empty = all 5 |
| `hoursBack` | Time window, 1-168 hours (default 24) |
| `maxItems` | 1-500 articles, newest first (default 100) |
| `onlyNew`, `monitorId` | Return only articles not returned before for this Monitor ID |

### Output fields (one row per article)

| Field | Meaning |
|---|---|
| `title`, `link`, `outlet` | The article and who published it |
| `published_at` | UTC ISO time |
| `summary` | Plain text, HTML removed, up to 500 characters |
| `author`, `image`, `categories` | From the feed when present (categories = the outlet's own tags) |
| `coins` | Tickers detected in title and summary, for example `["BTC", "ETH"]` |
| `sentiment_score` | -1 to 1 from a finance/crypto word list; title words count double |
| `sentiment` | `bullish` (score 0.2 or more), `bearish` (-0.2 or less), else `neutral` |
| `duplicate_of` | Link of an earlier article with a near-identical title from another outlet, else `null` |
| `fetched_at` | UTC time of the run |

### New-article alerts (only new)

Schedule the Actor every 5-30 minutes with `onlyNew`. The first run returns everything in the window; later runs return only articles whose link was not returned before for this `monitorId` (the last 2000 links are remembered).

```json
{"coins": ["BTC", "ETH", "SOL"], "onlyNew": true, "monitorId": "my-news-alert", "hoursBack": 24}
```

### Example row

```json
{
  "title": "Bitcoin ETFs post record inflows as price rallies",
  "link": "https://cointelegraph.com/news/example",
  "outlet": "Cointelegraph",
  "published_at": "2026-11-11T08:04:50Z",
  "summary": "Spot Bitcoin ETFs saw their largest daily inflows this month...",
  "author": "Jane Doe", "image": "https://images.example.com/btc.jpg", "categories": ["Bitcoin", "ETF"],
  "coins": ["BTC"], "sentiment_score": 0.58, "sentiment": "bullish",
  "duplicate_of": null, "fetched_at": "2026-11-11T08:10:00Z"
}
```

### Limits

- Publisher feeds list their latest 10-50 articles, so very long windows return only what the feeds still hold.
- Coin tags are exact matches of an uppercase ticker (BTC) or a full name (Bitcoin) in title and summary. Short or common-word tickers such as ONE, S or OP count only as `$OP`.
- Sentiment is a word-list score, not a model: it does not understand sarcasm or negation. Treat it as a quick signal, not financial advice.
- Pricing: $1.00 per 1,000 articles. No article is charged when the run fails.

### FAQ

**How fresh is the data?** Every run reads the outlets' feeds live; nothing is cached between runs. `published_at` is the publisher's time, `fetched_at` is when you called.

**Which outlets are covered?** Cointelegraph, Decrypt, Bitcoin Magazine, The Block and BeInCrypto, through their official public RSS feeds. If one outlet is down, the run continues with the others and the RUN_SUMMARY record lists it under `sourcesFailed`.

**How are coins detected?** A built-in list of about 70 top coins with their names. A coin counts when its uppercase ticker or full name appears as a whole word in the title or summary. Tags can miss coins mentioned only in the full article text.

**How is sentiment computed?** A built-in list of bullish words (surge, rally, record high, approval, adoption, partnership...) and bearish words (crash, plunge, hack, exploit, lawsuit, ban, liquidation, outflows...) scored over title (double weight) and summary. It is a lexicon, not financial advice.

**What does duplicate_of mean?** Several outlets often run the same story. When the titles are near-identical, the later article points to the earlier one so you can drop repeats.

# Actor input Schema

## `coins` (type: `array`):

Only return articles that mention at least one of these coins. Ticker symbols (BTC, ETH, SOL) or names (Bitcoin). Empty = all articles.

## `keyword` (type: `string`):

Optional. Only return articles whose title or summary contains this text (case-insensitive), for example ETF, hack or Binance.

## `outlets` (type: `array`):

Which outlets to read. Empty = all 5.

## `hoursBack` (type: `integer`):

Only articles published within the last N hours (1-168). Publisher feeds hold their latest 10-50 items, so a long window returns what the feeds still list.

## `maxItems` (type: `integer`):

Maximum number of articles to return, newest first (1-500).

## `onlyNew` (type: `boolean`):

Return only articles not returned before for the same Monitor ID (the last 2000 links are remembered). The first run returns everything in the window. Schedule it every 5-30 minutes for a news alert feed.

## `monitorId` (type: `string`):

Name of the saved state for Only new articles mode. Use a different ID for each separate watchlist or alert.

## Actor input object example

```json
{
  "coins": [],
  "outlets": [
    "cointelegraph",
    "decrypt",
    "bitcoinmagazine",
    "theblock",
    "beincrypto"
  ],
  "hoursBack": 24,
  "maxItems": 100,
  "onlyNew": false,
  "monitorId": "default"
}
```

# Actor output Schema

## `results` (type: `string`):

One row per article: title, link, outlet, published time, summary, coins mentioned, sentiment score and label, and the link of an earlier duplicate story.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "coins": [],
    "outlets": [
        "cointelegraph",
        "decrypt",
        "bitcoinmagazine",
        "theblock",
        "beincrypto"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("martin10291/crypto-news-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "coins": [],
    "outlets": [
        "cointelegraph",
        "decrypt",
        "bitcoinmagazine",
        "theblock",
        "beincrypto",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("martin10291/crypto-news-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "coins": [],
  "outlets": [
    "cointelegraph",
    "decrypt",
    "bitcoinmagazine",
    "theblock",
    "beincrypto"
  ]
}' |
apify call martin10291/crypto-news-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,martin10291/crypto-news-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IsknfSExG1RoAI1zy/builds/Mz2pkpjMO3bJp5ons/openapi.json
