plugAPI Integration

Plugging into the Gloria Data Platform is simple. You can fetch both our pre-curated feeds and custom feeds (set up on request) via REST, WebSocket or x402 API.


News API

Overview

The News API provides access to processed and curated content from various feeds like general crypto, macro, AI agent, and much more. Unlike the WebSocket API which provides real-time updates, this REST endpoint allows you to retrieve historical data within a specific date range.

Endpoint

GET /news

Query Parameters

Parameter
Type
Description

token

string

Authorization token. You can generate/manage your authorization tokens here: https://www.itsgloria.ai/api-keys-newarrow-up-right

feed_categories

string

Comma-separated list of feed categories to fetch (e.g. crypto,ai_agents). Must be in your allowed feed categories, specified during token creation.

from_date

string

Optional. Start date in ISO format (YYYY-MM-DD). Defaults to 2025-05-01.

to_date

string

Optional. End date in ISO format (YYYY-MM-DD). Defaults to today.

page

number

Optional. Page number for pagination. Defaults to 1.

limit

number

Optional. Number of items per page. Defaults to 20.

Authentication

All requests to the News API require authentication using an authorization token. You can provide it as a query parameter:

You can generate/manage your authorization tokens here: https://www.itsgloria.ai/api-keys-newarrow-up-right

If a token is not provided or is invalid, the request will fail with a 401 Unauthorized response.

Feed Permissions

Each authorization token is associated with permissions for specific feed categories.

If at least one feed category you are trying to fetch from is not in the list of allowed (specified during authorization token creation), the request will fail with a 403 Forbidden response.

Available Feeds

The following feeds are available for subscription:

  • ai_agents: News on on-chain AI agents, agent frameworks, incentive structures, and ecosystem launches.

  • crypto: Broad crypto market updates, token launches, infra changes, and major protocol activity.

  • aptos: Aptos core protocol news, tokenomics, validator changes, and ecosystem-level updates.

  • rwa: Tokenized real-world asset (RWA) developments, including funds, issuers, platforms, and regulation.

  • ondo: Product, token, and roadmap news for Ondo Finance and its associated RWAs.

  • macro: High-impact macroeconomic and geopolitical events with market relevance.

  • ai: General AI industry news including LLMs, infrastructure, model launches, and major partnerships.

  • bitcoin: Bitcoin network upgrades, ETF flows, miner trends, and institutional adoption.

  • ethereum: Ethereum protocol upgrades, scaling tech, validator news, and ecosystem-level changes.

  • hyperliquid: Updates on the Hyperliquid exchange, HYPE token, governance, and ecosystem projects.

  • machine_learning: ML-focused news across academia, industry, and open-source development.

  • ripple: XRP, XRPL, and Ripple Labs updates including legal, infra, and ecosystem news.

  • solana: Solana protocol news, validator updates, outages, and core network developments.

  • tech: High-signal tech news across software, semiconductors, regulation, and AI infra.

  • virtuals: Virtuals Protocol and agent commerce ecosystem, including GAME, agents, and tokenomics.

Response Format

The API returns an array of feed items in JSON format. Each item has the following structure:

Response Fields

Field
Type
Description

id

string

Unique identifier for the news item.

signal

string

The main content of the news item.

sentiment

string

High-level tone of the news: bullish, bearish, or neutral. Based on language and phrasing.

sentiment_value

string

Sentiment score value.

timestamp

number

Unix timestamp (in seconds) of when the item was pushed.

feed_categories

string[]

Feed categories the news item belongs to.

short_context

string

One-line summary of the broader context behind the news.

long_context

string

Expanded context including related news events, historical developments, and background information to help understand the significance of the news.

author

string

The primary source of the news item.

tweet_url

string

Direct link to the original tweet on X (Twitter).

tokens

string[]

Mentioned tokens.

Status Codes

Status Code
Description

200

Success

400

Bad Request (invalid parameters)

401

Unauthorized (missing or invalid authorization token)

403

Forbidden (authorization token does not have permission for the requested feed)

404

Not Found (no data found for the specified parameters)

Example Requests

cUrl

Javascript


News WebSocket API

Overview

The WebSocket API provides real-time data feeds from various cryptocurrency and AI-related feeds. It allows to subscribe to specific data feeds and receive instant updates as new content becomes available.

Connection

Endpoint

Authentication

All WebSocket connections require authentication using an authorization token. You can provide it as a query parameter:

You can generate/manage your authorization tokens here: https://www.itsgloria.ai/api-keys-newarrow-up-right

If an authorization token is not provided or is invalid, the connection will be closed immediately with a 401 Unauthorized response.

Message Format

All messages exchanged between the client and server are in JSON format. Each message has a type field that indicates the message type.

Message Types

  • subscribe: Subscribe to a specific feed

  • unsubscribe: Unsubscribe from a specific feed

  • data: Data message containing feed item information

  • error: Error message

  • ping: Ping message to keep connection alive

  • pong: Response to a ping message

Client to Server Messages

Subscribe to a Feed

To receive updates from a specific feed, send a subscribe message:

The server will respond with a confirmation message:

Feed Permissions

Each authorization token is associated with permissions for specific feed categories.

If at least one feed category you are trying to subscribe to is not in the list of allowed (specified during authorization token creation), you will receive an error message.

Unsubscribe from a Feed

To stop receiving updates from a feed:

Server to Client Messages

Welcome Message

Upon successful connection, the server sends a welcome message:

Data Message

When new content is available in a subscribed feed, the server sends a data message:

Error Message

If an error occurs, the server sends an error message:

Ping/Pong

The server sends ping messages every 30 seconds to keep the connection alive:

Clients should respond with a pong message:

Available Feeds

See Available Feeds.

Error Handling

The server may close the connection with the following status codes:

  • 1000: Normal closure (server shutting down or inactive connection)

  • 1008: Policy violation (missing or invalid authorization token)

Connection Lifecycle

  1. Connect to the WebSocket endpoint with a valid authorization token

  2. Receive the welcome message

  3. Subscribe to desired feeds

  4. Receive real-time updates

  5. Respond to ping messages to keep the connection alive

  6. Unsubscribe when no longer interested in a feed

  7. The connection will be automatically closed after 5 minutes of inactivity

Client Example (JavaScript)


Recaps API

Overview

The Recaps API provides a condensed summary of the most important news published on Gloria in the last 12 hours, making it easy to track key developments at a glance.

Endpoint

Query Parameters

Parameter
Type
Description

token

string

Authorization token. You can generate/manage your authorization tokens here: https://www.itsgloria.ai/api-keys-newarrow-up-right.

feed_category

string

Feed category to get the recap for (e.g. crypto,ai_agents). Must be in your allowed feed categories, specified during token creation.

timeframe

string

Defines the news collection window. Available options: 12h .

Authentication

All requests to the Recaps API require authentication using an authorization token. You can provide it as a query parameter:

You can generate/manage your authorization tokens here: https://www.itsgloria.ai/api-keys-newarrow-up-right

If a token is not provided or is invalid, the request will fail with a 401 Unauthorized response.

Feed Permissions

Each authorization token is associated with permissions for specific feed categories.

If the feed category you are trying to fetch recap for is not in the list of allowed (specified during authorization token creation), the request will fail with a 403 Forbidden response.

Response Format

The API returns a recap of news for the specified feed category in JSON format:

Response Fields

Field
Type
Description

feed_category

string

Indicates the category the recap was generated for (e.g. crypto, macro).

timeframe

string

The news collection window.

recap

string

Recap content.

created_at

string

Timestamp indicating when the recap was generated.

Example Requests

cUrl

Javascript

Last updated