You will obviously need to pass the query parameters (i.e. everything after the ?) as the POST data.
?
See also Run Data Explorer queries with the Discourse API