To experiment with it, you can navigate to the JQL app for your project:
Which takes you to the JQL editor:
Alternatively, you query Mixpanel’s JQL endpoint directly from a local script:
First, you need to create a file with the JQL. I called mine
Next, grab your project’s API Secret from its settings.
Finally, execute the JQL:
$ curl --silent https://mixpanel.com/api/2.0/jql -u YOUR_API_KEY: --data-urlencode firstname.lastname@example.org | python -m json.tool
The last part that pipes to python simply formats the JSON response when it’s displayed in the terminal for easy viewing:
This is a trivial example obviously, but there’s a lot more you can do with JQL. You can use JQL to perform any type of analysis that you can in Mixpanel itself, and more.