API Integration
Last updated
Last updated
A Metrics API Key gives you access to the output of our preprocessing functions and detection algorithms (metrics and markers). To get an API key, you will need to first purchase the Pro license from https://petal.tech/developers/api-developer-pro. Then, if you haven't already, download the Metrics desktop application. Next, run the Metrics desktop application.
Log in to your account.
Please note: You will need to create an account on the Petal website (via Checkout) and in the downloaded application. Use the same email address you used to purchase Petal Metrics when signing up using the downloaded application.
Click the dropdown menu with your email and select 'GET API KEY'. Then click 'COPY API KEY' to copy it to the clipboard.
After logging in, select 'ENABLE API CALLS' in the user menu to allow API calls to be made with the connected Muse in real-time. This will be streamed over LSL or OSC according to user preference. Note: We are working to improve the interface to provide better feedback after the 'ENABLE API CALLS' button has been clicked. Currently, the state of the button does not change after clicking.