Skip to main content
The Scrapest REST API provides programmatic access to X, Discord, Telegram, Web, and RSS data, webhooks, tracking management, web scraping, and real-time streaming capabilities.

API Overview

Base URL

Authentication

All API requests (except public endpoints) require authentication using an API key passed in the header:

Response Format

All responses follow a consistent JSON format: Success
Validation Error (422)
General Error

Available API Categories

  • Webhooks — Configure endpoints for real-time event delivery View docs
  • Tracking — Monitor X, Discord, Telegram, Web, and RSS sources View docs
  • X Queries — Query X user and tweet data View docs
  • Telegram Queries — Search Telegram messages, users, and channels View docs
  • Web Queries — Scrape, crawl, map, and search the web View docs
  • API Keys — Usage stats and key rotation View docs
  • Health & Metrics — System health and latency percentiles View docs
  • Backfill — Trigger and retrieve historical data View docs
  • Streams — WebSocket and SSE for real-time data View docs

Source Guides

For per-source setup guides with examples, see:
  • X — Track users, search tweets, token mentions
  • Telegram — Monitor groups & channels, token mentions
  • Discord — Track servers, token mentions
  • Web — Track websites, scrape web pages
  • RSS — Monitor RSS feeds for new content

Getting Started

1. Get Your API Key

  1. Sign up at Scrapest Dashboard
  2. Navigate to API Keys section
  3. Generate a new API key
  4. Copy and securely store your API key

2. Make Your First Request

3. Explore Endpoints

Common Patterns

Pagination

List endpoints support pagination with page and limit query parameters:
Response includes metadata:

Filtering

Many endpoints support filtering:

Error Handling

Errors return appropriate HTTP status codes:
For streaming capabilities, see the Streams documentation.