Redash API

Business / API Key Intermediate HTTPS CORS
Varies by plan (check documentation)

Overview

Redash is an open-source data visualization and dashboarding tool that exposes a REST API for managing queries, data sources, and dashboards programmatically. You can use it to trigger query refreshes, fetch cached results, or embed dashboard data into your own applications. It is particularly useful for teams running self-hosted Redash instances who want to automate reporting workflows.

💡

Beginner Tip

You will need to generate an API key from your Redash profile settings (Settings > API Key). All requests must include this key as a query parameter or Authorization header — start by calling GET /api/queries to list your existing queries.

Available Data

Redash data via REST API
JSON-formatted response data
Requires API key authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Redash",
    "description": "Access your queries and dashboards on Redash",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

id Unique identifier for the query object
name Human-readable name of the query as shown in the Redash UI
query The raw SQL or query text stored in Redash
data_source_id ID of the connected data source this query runs against
updated_at Timestamp of when the query was last modified
is_archived Whether the query has been archived and hidden from the default list

Implementation Example

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://redash.io/help/user-guide/integrations-and-api/api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized Missing or invalid API key in the request
Add ?api_key=YOUR_KEY to the URL or set the Authorization header to: Key YOUR_KEY
404 Not Found Requesting a query or dashboard ID that does not exist in your Redash instance
First call GET /api/queries to list all query IDs, then reference a valid ID
Connection refused / ECONNREFUSED Pointing at the public redash.io docs URL instead of your own Redash instance URL
Replace the base URL with your self-hosted instance, e.g. https://your-redash.example.com

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 17/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS YES
Category Business
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →