# 加密新闻 信息流 API (crypto_news.feed)

- Canonical page: https://everyinfra.com/crypto-news-api/feed
- Endpoint: POST /api/v1/social with {"platform": "crypto_news", "action": "feed", "params": {...}}
- Price: $0.004806 per call ($4.81 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 20, max 50 per call
- Mode: sync; add "mode": "async" for slow tasks

加密新闻信息流没有必填参数，按发布时间从新到旧列出加密新闻，默认 20 条，单次最多 50 条。每行有标题 `title`、一两句话的摘要 `summary`、发布媒体 `source`、原文链接 `url`、发布时间 `published_at` 和关联的项目 `project_name`。它回答「加密圈最近有什么新闻」，适合做每日简报、盯某家媒体的报道，或者给币种监控补新闻线索。

`summary` 只是摘要，不是全文，全文要打开 `url`；`project_name` 是文章关联的项目或主题名，例如 Bitcoin、Ethereum，没关联时没有这个字段。`published_at` 是 ISO 8601 的 UTC 时间。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=crypto_news&action=feed

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| project | not declared | no | not declared | 只看和这些项目有关的新闻，逗号分隔的项目名，例如 bitcoin,ethereum。 |
| source | enum: ambcrypto / bitcoincom / blockbeats / chaincatcher / coindesk / coinpedia / cointelegraph / cryptodaily / cryptopotato / decrypt / dlnews / odaily / panews / phemex / techflow / theblock / tradingview | no | not declared | 只看一家媒体：coindesk、cointelegraph、theblock、decrypt、dlnews、blockbeats、bitcoincom、coinpedia、ambcrypto、cryptodaily、cryptopotato、phemex、panews、odaily、tradingview、chaincatcher、techflow。 |
| limit | integer (1–50) | no | 20 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| summary | 文章摘要（一两句话），不是全文；全文看 url。 |
| source | 发布媒体名（大写，如 COINDESK、AMBCRYPTO）。 |
| url | 原文链接。 |
| published_at | 发布时间，ISO 8601 UTC。 |
| project_name | 文章关联的项目或主题名（如 Bitcoin、Ethereum）；没关联时没有。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "crypto_news",
  "action": "feed",
  "params": {}
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "crypto_news",
        "action": "feed",
        "params": {},
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "crypto_news",
  "action": "feed",
  "results": [
    {
      "title": …,
      "summary": …,
      "source": …,
      "url": …,
      "published_at": …,
      "project_name": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 信息流和关键词搜索怎么选？

想看最近发生了什么，用信息流：按发布时间从新到旧，单次最多 50 条，还能按媒体和项目收窄。想找某个主题，用关键词搜索：按相关度排，不按时间，单次最多 100 条。

### `project` 怎么填？

填项目名，多个用逗号分隔，例如 bitcoin,ethereum，只返回和这些项目有关的新闻。它和 `source` 都是可选的，可以单独用，也可以一起用。

### `source` 有哪些取值，返回的 `source` 怎么写？

`source` 只接受固定的媒体代号，如 `coindesk`、`cointelegraph`、`panews`、`odaily`，每次只看一家。返回行里的 `source` 是大写的媒体名，如 COINDESK、AMBCRYPTO，和请求里的小写代号不同。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=crypto_news
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
