Agent Times — Live Context Layer for AI Agents
TL;DR
CODEBLOCK0
Response is JSON. /ask auto-detects intent: news queries return articles with title, url, summary, sentiment, entities; $TICKER queries search by entity; weather queries return forecasts; crypto queries return prices. Check the source field. No API key needed.
Common Tasks — Copy-Paste Commands
Ticker search (use $ prefix):
CODEBLOCK1
Weather (any city):
CODEBLOCK2
Crypto prices:
CODEBLOCK3
News search:
CODEBLOCK4
Job search (remote devops/SRE):
CODEBLOCK5
Country-specific news:
CODEBLOCK6
Filter by any tag: Add &tag=TAG to /news. Example tags: jobs, gaming, space, bitcoin, asia, europe, startups, devtools.
What This Does
Agent Times is a one-stop information API for AI agents. 3,576 RSS feeds across 14 categories, weather forecasts, and crypto prices — all from one /ask endpoint.
- - Semantic search + neural re-ranking — AI understands meaning, then a cross-encoder re-ranks results by true relevance. "Why did NVDA drop" finds "NVIDIA Falls 3% as Investors Weigh GTC Optimism Against Risks"
- FinBERT sentiment — finance articles scored by a financial-domain neural network. Correctly identifies "Rally fades as investors take profits" as bearish. Only runs on business, crypto, energy, ai, tech categories for accuracy.
- Source credibility — tier 1 (Reuters, BBC) get 1.3x ranking boost, tier 3 (unknown) get 0.8x penalty
- GLiNER entity extraction — zero-shot NER detects people, companies, locations, organizations, products, events. Plus ticker/crypto dictionary matching (300+ stocks, 100+ crypto).
- ModernBERT classification — each article classified by a fine-tuned ModernBERT model (93.9% accuracy, 149M params) reading actual text, not just RSS feed label. Tags auto-assigned by topic + country.
- Weather forecasts — global weather via Open-Meteo. Just ask "weather tokyo" or "weather london"
- Crypto prices — real-time prices from Pyth Network oracle (BTC, ETH, SOL, and 10+ more). Just ask "bitcoin price"
- Country tags — filter by 60+ countries and regions
- Webhook subscriptions — get notified when articles matching your topic arrive
- 4-tier fallback — semantic search → keyword search → web search (70+ engines) → query suggestions
228,000+ articles with 30-day retention. 6 AI models (embedder on GPU, classifier on GPU, cross-encoder, FinBERT, GLiNER NER, tag centroids).
When to Use Which Endpoint
| You want to... | Use this | Free? |
|---|
| Search for a topic | INLINECODE19 | Yes |
| Check weather |
GET /ask?q=weather+tokyo or
GET /weather?location=tokyo | Yes |
| Get crypto prices |
GET /ask?q=bitcoin+price or
GET /prices?symbol=BTC | Yes |
| Get trending stories |
GET /trending | Yes |
| Browse a category |
GET /news?category=CAT | Yes |
| Filter by country/tag |
GET /news?category=world&tag=singapore | Yes |
| Search the web |
GET /search?q=QUERY | $0.001 (x402) |
| Monitor a topic |
POST /subscribe | Yes |
| List categories |
GET /news/categories | Yes |
Rule of thumb: Start with /ask. It's free, smart, and auto-detects if you're asking about news, weather, or crypto prices. Use /news only when you need bulk category browsing with filters.
/ask — Smart Search (FREE)
Searches all 228K+ articles using AI semantic matching + keyword matching + web search fallback. Returns results ranked by relevance and recency.
CODEBLOCK7
| Param | Default | Description |
|---|
| q | required | Search query. Replace spaces with INLINECODE32 |
| limit |
10 | Max results (1-50) |
Response:
CODEBLOCK8
When /ask finds fewer than 3 results, it automatically falls back to web search. When 0 results, it returns suggestions with related categories and terms.
/trending — Trending Stories (FREE)
Detects stories being covered by multiple independent sources.
CODEBLOCK9
| Param | Default | Description |
|---|
| hours | 6 | Lookback window (1-48) |
| min_sources |
3 | Minimum sources covering the same story |
| limit | 20 | Max trending clusters |
/subscribe — Topic Alerts (FREE)
Get webhook notifications when new articles matching your query arrive.
CODEBLOCK10
Response: INLINECODE35
Unsubscribe (requires the secret from subscribe response):
CODEBLOCK11
Your webhook receives a POST with matching articles every time new ones arrive (checked every 5 minutes).
Security: Webhook must be a public HTTPS URL. Localhost, private IPs, and cloud metadata endpoints are blocked.
/news — Category Browsing (FREE)
Browse and filter articles by category with optional tag, date range, and keyword filters.
CODEBLOCK12
| Param | Default | Description |
|---|
| category | required | One of 14 categories, or INLINECODE36 |
| tag |
— | Subcategory/country filter (see table below) |
| limit | 20 | Max results (1-1000) |
| q | — | Keyword filter within category |
| since | — | ISO date — articles after this time |
| before | — | ISO date — articles before this time |
| dedup | true | Deduplicate similar headlines |
/search — Web Search ($0.001)
Search the open web via 70+ engines when you need non-news results.
CODEBLOCK13
| Param | Default | Description |
|---|
| q | required | Search query |
| limit |
5 | Max results (1-50) |
| category | general | general, news, images, videos, science, files |
Categories + Tags
14 categories. Use &tag= on /news to filter by subcategory, country, or region.
| Category | What's in it | Available tags |
|---|
| world | International news, geopolitics, diplomacy | INLINECODE39 , europe, middleeast, africa, india, latam, oceania, defense, government + 50 country tags (see below) |
| politics |
Elections, policy, legislation, regulation | — |
|
business | Finance, commerce, employment, markets |
finance,
startups,
jobs,
marketing,
ecommerce,
fintech,
realestate,
legal,
supplychain |
|
tech | Software, hardware, engineering, data |
devtools,
engineering,
mobile,
datascience,
telecom |
|
ai | Artificial intelligence, machine learning |
robotics,
research |
|
crypto | Cryptocurrency, blockchain, DeFi |
web3,
defi,
bitcoin,
markets |
|
science | Research, discoveries, academia |
biotech,
space,
research |
|
health | Medicine, wellness, public health |
fitness |
|
energy | Energy, climate change, environment |
climate,
environment,
agriculture |
|
security | Cybersecurity, infosec, threats | — |
|
sports | All sports coverage | — |
|
entertainment | Film, music, gaming, TV, culture |
gaming,
film,
music |
|
lifestyle | Food, travel, fashion, daily life |
food,
travel,
fashion,
design,
education |
|
automotive | Vehicles, EVs, transportation, logistics |
shipping |
Country Tags (use with category=world&tag=COUNTRY)
Asia: singapore, malaysia, philippines, indonesia, thailand, vietnam, japan, korea, china, taiwan, hongkong, india, pakistan, INLINECODE98
Europe: uk, germany, france, italy, spain, netherlands, sweden, norway, denmark, finland, ireland, poland, austria, switzerland, iceland, romania, hungary, greece, serbia, ukraine, INLINECODE119
Middle East: israel, turkey, iran, saudiarabia, uae, INLINECODE125
Africa: nigeria, southafrica, kenya, ghana, INLINECODE130
Latin America: brazil, mexico, argentina, colombia, chile, INLINECODE136
Oceania: australia, INLINECODE138
North America: usa, INLINECODE140
Response Format
News results (/ask, /news, /trending) return:
CODEBLOCK14
Weather (/ask?q=weather+tokyo) returns: INLINECODE145
Crypto prices (/ask?q=bitcoin+price) returns: INLINECODE147
Check the source field to determine response shape: news_db, combined, open-meteo, nea, or pyth.
Each article result contains:
- -
title — headline - INLINECODE155 — link to original article
- INLINECODE156 — first 200 chars of content
- INLINECODE157 — one of 14 categories
- INLINECODE158 — RSS feed URL
- INLINECODE159 — publication date
- INLINECODE160 — Unix timestamp (ms)
- INLINECODE161 — "bullish", "bearish", or "neutral"
- INLINECODE162 — -1.0 (very bearish) to 1.0 (very bullish)
- INLINECODE163 — "high" (tier 1 outlets), "medium" (established), or "unknown"
- INLINECODE164 —
{people, companies, tickers, crypto, locations} extracted by GLiNER + dictionary matching - INLINECODE166 — subcategory and country tags for this article
Errors: INLINECODE167
Payment (x402)
The /search endpoint uses the x402 protocol. Your agent pays $0.001 USDC per request on Base network — no accounts, no subscriptions, just micropayments. All other endpoints are free.
Wallet: 0x536Eafe011786599d9a656D62e2aeAFcE06a96D1 (Base)
Other Free Endpoints
| Endpoint | Description |
|---|
| INLINECODE170 | List all 14 categories with counts |
| INLINECODE171 |
Database statistics |
|
GET /feeds/health?category=CAT | Per-feed health and status |
|
GET /health | Health check |
|
GET /info | Full API docs (JSON for agents, HTML for browsers) |
Tips for Best Results
- 1. Always start with
/ask — it's free, semantic, and handles fallback automatically - Country news: Use
/ask?q=japan+earthquake not /news?category=japan (no country categories) - Filter by country: Use
/news?category=world&tag=singapore for source-based filtering - Sentiment analysis: Check
sentiment_score to gauge market/public mood on a topic - Entity detection: Use
entities.tickers and entities.crypto to find articles mentioning specific assets - Monitor breaking news: POST to
/subscribe with a webhook URL to get real-time alerts - Parse JSON directly — don't pipe to
jq (may not be installed) - Replace spaces with
+ in all query strings - Check
suggestions when 0 results — it recommends related categories and search terms - Credibility matters: Sort by
credibility to prioritize tier 1 sources (Reuters, BBC, AP) over unknown blogs
Agent Times — AI代理的实时上下文层
快速入门
bash
新闻搜索:
curl -s https://agenttimes.live/ask?q=why+is+NVDA+down+today
天气查询:
curl -s https://agenttimes.live/ask?q=weather+tokyo
加密货币价格:
curl -s https://agenttimes.live/ask?q=bitcoin+price
热门故事:
curl -s https://agenttimes.live/trending
返回JSON格式。/ask自动检测意图:新闻查询返回包含title、url、summary、sentiment、entities的文章;$TICKER查询按实体搜索;天气查询返回预报;加密货币查询返回价格。请检查source字段。无需API密钥。
常见任务 — 复制粘贴命令
股票代码搜索(使用$前缀):
bash
curl -s https://agenttimes.live/ask?q=%24NVDA
curl -s https://agenttimes.live/ask?q=%24SPY
curl -s https://agenttimes.live/ask?q=%24AAPL
天气查询(任意城市):
bash
curl -s https://agenttimes.live/ask?q=weather+tokyo
curl -s https://agenttimes.live/ask?q=weather+london
加密货币价格:
bash
curl -s https://agenttimes.live/ask?q=bitcoin+price
curl -s https://agenttimes.live/prices?symbol=ETH,SOL,BTC
新闻搜索:
bash
curl -s https://agenttimes.live/ask?q=why+did+NVDA+drop+today
职位搜索(远程DevOps/SRE):
bash
curl -s https://agenttimes.live/news?category=business&tag=jobs&limit=20
特定国家新闻:
bash
curl -s https://agenttimes.live/ask?q=singapore+news
按标签筛选: 在/news后添加&tag=TAG。示例标签:jobs、gaming、space、bitcoin、asia、europe、startups、devtools。
功能介绍
Agent Times是AI代理的一站式信息API。3,576个RSS源覆盖14个类别、天气预报和加密货币价格——全部通过一个/ask端点实现。
- - 语义搜索+神经重排序 — AI理解含义,然后交叉编码器按真实相关性重排序结果。为什么NVDA下跌能找到NVIDIA下跌3%,投资者权衡GTC乐观情绪与风险
- FinBERT情感分析 — 金融领域神经网络对财经文章评分。正确识别涨势消退,投资者获利了结为看跌信号。仅在商业、加密货币、能源、AI、科技类别运行以确保准确性。
- 来源可信度 — 一级来源(路透社、BBC)获得1.3倍排名提升,三级来源(未知)受到0.8倍惩罚
- GLiNER实体提取 — 零样本NER检测人物、公司、地点、组织、产品、事件。外加股票代码/加密货币词典匹配(300+股票,100+加密货币)。
- ModernBERT分类 — 每篇文章由微调的ModernBERT模型(93.9%准确率,1.49亿参数)分类,读取实际文本而非仅RSS源标签。标签按主题+国家自动分配。
- 天气预报 — 通过Open-Meteo获取全球天气。只需询问weather tokyo或weather london
- 加密货币价格 — 来自Pyth Network预言机的实时价格(BTC、ETH、SOL等10+种)。只需询问bitcoin price
- 国家标签 — 按60+国家和地区筛选
- Webhook订阅 — 当匹配主题的文章到达时获得通知
- 四级回退 — 语义搜索→关键词搜索→网络搜索(70+引擎)→查询建议
228,000+篇文章,保留30天。6个AI模型(GPU上的嵌入器、GPU上的分类器、交叉编码器、FinBERT、GLiNER NER、标签质心)。
何时使用哪个端点
| 您想要... | 使用这个 | 免费? |
|---|
| 搜索主题 | GET /ask?q=TOPIC | 是 |
| 查询天气 |
GET /ask?q=weather+tokyo 或 GET /weather?location=tokyo | 是 |
| 获取加密货币价格 | GET /ask?q=bitcoin+price 或 GET /prices?symbol=BTC | 是 |
| 获取热门故事 | GET /trending | 是 |
| 浏览类别 | GET /news?category=CAT | 是 |
| 按国家/标签筛选 | GET /news?category=world&tag=singapore | 是 |
| 搜索网络 | GET /search?q=QUERY | $0.001(x402) |
| 监控主题 | POST /subscribe | 是 |
| 列出类别 | GET /news/categories | 是 |
经验法则: 从/ask开始。它免费、智能,并能自动检测您是在查询新闻、天气还是加密货币价格。仅在需要批量浏览带筛选条件的类别时使用/news。
/ask — 智能搜索(免费)
使用AI语义匹配+关键词匹配+网络搜索回退搜索所有228K+篇文章。返回按相关性和时效性排序的结果。
bash
curl -s https://agenttimes.live/ask?q=bitcoin+etf
curl -s https://agenttimes.live/ask?q=singapore+startup+funding
curl -s https://agenttimes.live/ask?q=climate+policy+europe&limit=20
curl -s https://agenttimes.live/ask?q=remote+devops+jobs
| 参数 | 默认值 | 描述 |
|---|
| q | 必填 | 搜索查询。空格用+替换 |
| limit |
10 | 最大结果数(1-50) |
响应:
json
{
success: true,
query: bitcoin etf,
source: news_db,
count: 10,
results: [
{
title: SEC批准现货比特币ETF申请,
url: https://example.com/article,
summary: 美国证券交易委员会已批准...,
category: crypto,
published: Mon, 24 Mar 2026 14:30:00 +0000,
sentiment: bullish,
sentiment_score: 0.75,
credibility: high,
entities: {
companies: [SEC],
tickers: [],
crypto: [BTC],
people: []
},
tags: [markets]
}
]
}
当/ask找到少于3个结果时,自动回退到网络搜索。当结果为0时,返回包含相关类别和术语的suggestions。
/trending — 热门故事(免费)
检测被多个独立来源报道的故事。
bash
curl -s https://agenttimes.live/trending?hours=12
| 参数 | 默认值 | 描述 |
|---|
| hours | 6 | 回溯窗口(1-48) |
| min_sources |
3 | 报道同一故事的最小来源数 |
| limit | 20 | 最大热门聚类数 |
/subscribe — 主题提醒(免费)
当匹配您查询的新文章到达时获取webhook通知。
bash
curl -s -X POST https://agenttimes.live/subscribe \
-H Content-Type: application/json \
-d {query:bitcoin regulation,category:crypto,webhook:https://your-agent.com/notify}
响应:{success:true,subscription_id:1,secret:abc123...,note:保存此密钥 — 取消订阅时需要。}
取消订阅(需要订阅响应中的密钥):
bash
curl -s -X DELETE https://agenttimes.live/subscribe/1?secret=abc123...
您的webhook将在新文章到达时(每5分钟检查一次)收到包含匹配文章的POST请求。
安全: Webhook必须是公开的HTTPS URL。本地主机、私有IP和云元数据端点被阻止。
/news — 类别浏览(免费)
按类别浏览和筛选文章,可选标签、日期范围和关键词筛选。
bash
所有加密货币新闻
curl -s https://agenttimes.live