Keyword-based news headlines with sentiment analysis, paid per call via x402 on Base.
What it does
The `/news-by-keyword` endpoint on api.itsgloria.ai is an x402-enabled API that returns the 20 most recent news headlines matching a given keyword. Each result includes sentiment analysis (label and numeric value), a signal classification, short and long context summaries, source URLs, author attribution, related token tickers, feed categories, and a tweet URL where applicable. The endpoint is designed for agents and applications that need structured, sentiment-enriched news data on demand.
Payment is handled via the x402 protocol on the Base network. Each call costs up to 50,000 base units of USDC (contract 0x8335…2913), which equals $0.05 USD per request. The endpoint accepts HTTP GET requests with a required `keyword` query parameter and returns a JSON array of news item objects. The output schema is well-defined, covering fields like `id`, `signal`, `sentiment`, `sentiment_value`, `timestamp`, `feed_categories`, `short_context`, `long_context`, `sources`, `author`, `tokens`, and `tweet_url`.
The API is live and responds with a proper 402 challenge when called without payment. No OpenAPI spec, dedicated documentation pages, or additional endpoints were found during crawling — the provider's site is minimal, returning only a health-check JSON at the root. As a result, details about rate limits, SLAs, data freshness, and source coverage are unknown.
Capabilities
Use cases
- —Agents monitoring breaking news on a specific topic and routing based on sentiment
- —Trading bots fetching sentiment-scored headlines for a given crypto token or keyword
- —Research tools aggregating recent news coverage with source attribution
- —Dashboards displaying real-time headline feeds with sentiment indicators
- —Content curation pipelines that need structured news items on demand
Fit
Best for
- —AI agents needing pay-per-call news retrieval without API key management
- —Applications requiring sentiment-enriched news headlines
- —Crypto and finance workflows that benefit from token-tagged news items
Not for
- —Historical news archive searches (only returns the 20 most recent headlines)
- —Use cases requiring free or subscription-based access (every call costs $0.05 USDC)
- —Applications needing full article text (returns short/long context summaries, not full articles)
Quick start
curl -H "X-PAYMENT: <x402_payment_header>" \
"https://api.itsgloria.ai/news-by-keyword?keyword=bitcoin"Example
Response
[
{
"id": "abc123",
"author": "Jane Doe",
"signal": "bullish",
"tokens": [
"BTC"
],
"sources": [
"https://example.com/article1"
],
"sentiment": "positive",
"timestamp": 1719500000,
"tweet_url": "https://x.com/user/status/123456",
"long_context": "Bitcoin has surged past $70,000 driven by record inflows into spot Bitcoin ETFs...",
"short_context": "Bitcoin surges past $70k on ETF inflows.",
"feed_categories": [
"crypto",
"finance"
],
"sentiment_value": 0.82
}
]Endpoint
Quality
The x402 challenge is live and provides a well-defined output schema with clear field descriptions. However, there is no OpenAPI spec, no documentation pages, no usage examples from the provider, and no information about rate limits, data sources, or SLAs. The listing is functional but relies heavily on the probe data alone.
Warnings
- —No documentation or OpenAPI spec found at the provider's site
- —Rate limits, data freshness guarantees, and source coverage are unknown
- —Response example is inferred from the output schema, not from an actual API call
Citations
- —Endpoint returns 402 with x402 challenge on Base network using USDChttps://api.itsgloria.ai/news-by-keyword
- —Max amount required is 50000 base units of USDC ($0.05)https://api.itsgloria.ai/news-by-keyword
- —USDC asset contract on Base is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913https://api.itsgloria.ai/news-by-keyword
- —Output schema includes sentiment, signal, sources, tokens, and other structured fieldshttps://api.itsgloria.ai/news-by-keyword
- —Root endpoint returns a health-check JSON messagehttps://api.itsgloria.ai