Skip to content

Filtered Chart Data via API #34668

Discussion options

You must be logged in to vote

Answering my own question because I found the solution. Dosu didn't solve my issue but pointed me in the right direction. For future reference of anyone trying to do this like me and not finding any resources online (like I didn't) the request is as follows:

POST /api/v1/chart/data

Example payload:
{
"datasource": {
"id": 123,
"type": "table"
},
"queries": [
{
"columns": ["col1", "col2"],
"filters": [
{ "col": "col1", "op": "==", "val": 123 }
],
"metrics": [],
"row_limit": 1000
}
],
"result_format": "json",
"result_type": "full"
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@satanic-panic
Comment options

@dosubot
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by satanic-panic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant