API & Webhooks— build stock alerts into your workflowExplore API

Stocklet API & Webhooks

Your stock alerts. Your infrastructure.

Create ticker-based alerts, query market-wide feeds, and receive the events that matter at your own webhook endpoint.

DEVELOPER PLAYGROUND

Choose an event. Copy the integration.

Event catalog

Choose the signal you want to follow.

View API reference
Create alertSDK example
Price Changes · JavaScript
import { Stocklet } from "stocklet";

const client = new Stocklet({
  apiKey: process.env.STOCKLET_API_KEY,
});

const alert = await client.alerts.create({
  type: "price_change",
  ticker: "AAPL",
  enabled: true,
  conditions: {
    "mode": "target_price",
    "direction": "above",
    "value": 250
  },
});

await client.webhooks.create({
  url: "https://your-app.example/webhooks/stocklet",
  types: ["price_change"],
  alert_ids: [alert.id],
});
Example webhook eventJSON
Delivered when the condition matches
{
  "id": "evt_price_change_01",
  "type": "price_change",
  "created_at": "2026-11-08T14:30:00Z",
  "ticker": "AAPL",
  "data": {
    "price": 250.12,
    "currency": "USD",
    "previous_close": 244.5,
    "change_percent": 2.3
  },
  "alert_id": "alt_price_change_01"
}
Illustrative SDK syntax and sample data. The JSON shows the event delivered to your webhook when the alert matches.
01

Configure your alerts

Choose a ticker and define the conditions. Create, retrieve, update, or disable your rules through the API.

Alert management
02

Query the bigger picture

Pull breaking news, insider trades, and more across supported stocks. Filter by ticker when you need to focus.

Market-wide feeds
03

Let the events come to you

Receive a signed HTTP POST when your alerts match. Connect the signals directly to your own workflow.

Webhook delivery
ONE CONSISTENT INTERFACE

Six signals.
Built for your stack.

From price movements to company announcements.
The same authentication, predictable responses,
and a dedicated endpoint for every alert type.

FROM CONDITION TO CALLBACK

Set the rule.
We’ll send the signal.

No need to keep polling for your alerts. Register an endpoint and receive the matching event as a structured JSON message.

  1. 1Create a breaking news alert for AAPL
  2. 2Connect your HTTPS webhook endpoint
  3. 3Receive a signed POST when news matches
Follow the quickstart
Signed payloads. Retry handling. Stable event IDs.
POST your-app.example/webhooks/stocklet
{
  "id": "evt_breaking_news_01",
  "type": "breaking_news",
  "created_at": "2026-11-08T14:30:00Z",
  "ticker": "AAPL",
  "data": {
    "headline": "Example company expands its manufacturing capacity",
    "publisher": "Example News",
    "url": "https://example.com/news/manufacturing-expansion",
    "published_at": "2026-11-08T14:30:00Z"
  },
  "alert_id": "alt_breaking_news_01"
}
Illustrative event · application/json

EXPLORE THE DATA

Market feed endpoints

Choose a feed. Explore the data. Make it part of your workflow.

The latest market-moving headlines across supported stocks.

Live feed

Loading breaking news…

GEThttps://v2.api.stocklet.app/api/v2/feed/breaking-news

Built to fit your workflow.

Understand the building blocks before you connect your first integration.

What is the difference between an alert and a feed?

An alert is a rule you create for a ticker. A feed is a list of market events you can query across supported stocks, with or without your own alerts. Your alert event history only contains events that matched your rules.

Can I retrieve all breaking news or insider trades?

Yes. Query the breaking-news or insider-trades feed without a ticker to retrieve events across supported stocks. Add a ticker to focus on one company. Both support time filters and cursor pagination.

What does a webhook deliver?

A webhook sends a JSON message when one of your enabled alerts matches an event. Subscribe to alert types or specific alert IDs. Market-wide feeds are available through the HTTP API; they are not webhook subscriptions.

How do I authenticate?

Send your API key in the Authorization header as a Bearer token. Use it from your server and keep it out of browser code and public repositories. Contact support@stocklet.app for API access.

How should I handle webhook deliveries?

Verify the signature, acknowledge with a 2xx response within ten seconds, then process the event asynchronously. Failed deliveries are retried. Deduplicate by event ID because the same event can be delivered more than once.