EO-SAT
Home › Technical Guides › API & SDKs
API & SDKs

Integrating Satellite Analytics via REST API and Webhooks

Engineering patterns for querying scenes, submitting GeoJSON AOIs, managing rate limits, and streaming automated satellite deliveries via REST API and webhooks.

Event-Driven Ingestion vs. Polling Loops

Satellite imagery arrives asynchronously based on orbital pass schedules, ground-station downlinks, and atmospheric processing queues. Writing naive cron scripts that poll a REST endpoint every minute burns monthly API quotas—especially on metered plans like 5,000 calls per month—and introduces unnecessary delay between scene publication and downstream analytics processing.

An event-driven webhook architecture flips that workflow: your backend registers an Area of Interest polygon once via the REST API, and the platform pushes an authenticated JSON webhook payload to your HTTPS endpoint as soon as a matching multispectral, SAR, or thermal layer completes processing.

  • Eliminates wasted polling requests against monthly API call budgets.
  • Triggers Python or Node.js workers within seconds of scene delivery.
  • Filters notifications by cloud-cover limit, sensor type, and AOI ID.
  • Reduces end-to-end latency from tasking to dashboard updates.

Structuring GeoJSON AOI Payloads and Query Filters

Reliable API integration starts with valid RFC 7946 GeoJSON polygons formatted in WGS84 (EPSG:4326) longitude-latitude order with clean non-intersecting rings. Overly dense polygons containing thousands of redundant GPS vertices slow spatial intersection checks, so simplifying geometries to an appropriate vertex tolerance keeps catalog responses fast and predictable.

Every catalog search payload should specify explicit ISO-8601 UTC date bounds, maximum acceptable optical cloud percentage, and target product tiers (such as 4.0 m multispectral, C-band SAR, or thermal layers) so JSON responses return strictly actionable assets rather than unsuited scenes.

Using Python and JavaScript SDKs Safely in Production

Official Python and JavaScript SDKs wrap bearer authentication, pagination cursors, and exponential-backoff retry logic for transient HTTP 429 or 5xx responses. Backend Python services typically pair SDK discovery with Rasterio, GeoPandas, and Shapely for automated index extraction, while JavaScript frontends render interactive AOI footprints and layer previews.

Always store API secrets in server-side environment variables or a dedicated secrets vault rather than public browser code. When web users inspect imagery dashboards, proxy requests through authenticated backend endpoints (such as PHP or Node middleware) that enforce session rules and cache static JSON metadata.

Scaling from Professional Quotas to Real-Time Enterprise Streams

Engineering teams starting on a Professional allocation of 5,000 API calls per month can monitor dozens of active polygons comfortably by combining incoming webhooks with cached scene metadata and windowed COG reads. Reserve outbound REST calls for AOI setup, tasking updates, and targeted scene retrieval.

As demand expands toward continent-scale monitoring, continuous maritime tracking, or automated sub-minute alerting, Enterprise agreements unlock unlimited API calls, dedicated server infrastructure, and real-time streaming endpoints tailored to high-throughput geospatial applications.

API Integration Patterns by Operational Tier

Workflow PatternProfessional Tier (5,000 calls/mo)Enterprise Tier (Unlimited)Recommended Transport
Scene DiscoveryWebhook + daily delta queryContinuous streaming feedHTTPS JSON + Webhook
Imagery RetrievalWindowed COG range readsDirect cloud bucket syncSigned URLs / Object Store
Backend ProcessingPython SDK batch workersDistributed GPU/container clusterAsync task queue
Frontend VisualizationServer-proxied tile endpointDedicated tile & stream serverJavaScript SDK + Map tiles
Alerting LatencyNear-real-time on webhookReal-time streaming SLAJSON webhook / WebSocket

API call limits reflect metered Professional tier budgets versus unlimited Enterprise streaming.

Worked Illustration: Budgeting 5,000 Monthly API Calls Across 40 Sites

Worked illustration: A team monitors 40 agricultural and infrastructure AOIs under a 5,000 calls/month Professional API budget.

  1. Register 40 AOI webhooks at onboarding: 40 one-time POST requests.
  2. Receive ~10 daily revisit events per site via incoming webhooks (0 outbound polling calls consumed).
  3. Filter inside webhook handlers by cloud score (<15%) or SAR priority, leaving ~3 accepted scenes per site per day.
  4. Fetch 1 signed COG/status JSON call per accepted scene: 40 × 3 × 30 days = 3,600 API calls/month.

Worked Outcome: Webhook-first filtering holds consumption around 3,600 calls/month—comfortably inside a 5,000-call budget with 1,400 calls in reserve.

Production Satellite API & Webhook Checklist

  • Validate AOI polygons against RFC 7946 GeoJSON before API submission.
  • Keep API credentials in server environment variables, never in frontend JS.
  • Verify cryptographic signatures on incoming HTTPS webhook payloads.
  • Implement exponential backoff with jitter on HTTP 429 rate-limit replies.
  • Deduplicate webhook deliveries idempotently using unique scene IDs.
  • Track monthly API call volume by endpoint to prevent unexpected throttling.

Frequently Asked Questions

Should I poll the REST API or subscribe to webhooks?

Use webhooks whenever possible so new scene deliveries push straight to your server without burning monthly polling calls.

What coordinate format do REST API GeoJSON payloads expect?

Standard GeoJSON requires WGS84 (EPSG:4326) coordinates ordered as [longitude, latitude] in decimal degrees.

How many API calls are included in the Professional tier?

Professional includes 5,000 monthly API calls alongside daily 4.0 m multispectral revisits, thermal and SAR layers, and 20 video clips.

Can I mix Python backend scripts with a JavaScript frontend?

Yes. Teams commonly run Python SDK raster jobs server-side and use the JavaScript SDK for interactive web map rendering.

Primary References & Standards

  • OGC API — Features & Processes Core Standards
  • IETF RFC 7946: The GeoJSON Format Specification
  • SpatioTemporal Asset Catalog (STAC) API Specification

Related Earth Observation Guides