Developer tools

Use the API from any stack.

ECONSTREAM is a standards-based JSON API. Use a native HTTP client today, or generate a typed client from our OpenAPI specification.

JavaScript / TypeScript

Fetch an event stream

const response = await fetch("https://econstream.cloud/api/v1/events", {
  headers: { Authorization: `Bearer ${process.env.ECONSTREAM_API_KEY}` },
});

const { data } = await response.json();

cURL

Make a direct request

curl "https://econstream.cloud/api/v1/events?limit=25" \
  -H "Authorization: Bearer $ECONSTREAM_API_KEY"

Typed clients

Generate from OpenAPI

Download the OpenAPI specification and use your preferred generator for TypeScript, Python, Go, Java, or another supported language. See the API documentation for authentication and endpoint examples.