Alteryx Community,
I am trying to access mixpanel data via the provided API.
I have been using the "Text Input" and "Download" tool. But haven't had success.
Even testing the provided shell scenario (https://developer.mixpanel.com/docs/data-export-api) isn't providing any output. I received the "Error transferring data: Couldn't resolve host name" error message.
Here is the statement i am converting-
curl https://mixpanel.com/api/2.0/segmentation/ \
#Replace API_SECRET with your project's API secret
-u API_SECRET: \
-d from_date="2016-02-11" \
-d to_date="2016-02-11" \
-d event="Viewed Page"
https://api_secret@mixpanel.com/api/2.0/segmentation?from_date=2016-02-11&to_date=2016-02-11&event=Viewed Page
I am replacing the "api_secret" with the actual code that was provided. In addition, I am changing the dates to 2019-10-01 to 2019-10-11.
When I paste the URL into my browser i get the expected output. As an FYI- i am not making any adjustments to the "download" tool. My HTTP Action is GET (or FTP)
Any tips or inside you might have would be greatly appreciated. Thank you!
Solved! Go to Solution.
Thank you for the responds and provided workbook! After entering the API secret (and adjusting the date range) I am now getting a "HHTP/1.1 401 Unauthorized" error message.
The odd thing is that i get the expected output when using the same API secret and running it in a browser. Any type of inside you might be able to provide would be greatly appreciated.
Thank you for the assistance!
Felix
Brandon,
I think i am still missing something. I replaced the "API secret" w my "username"
I am not totally following on where to enter the "API_Secret" now that i replaced it from the download.headers tool. Could you please indicate what i might be missing? Thank you for all the assistance!
Felix
Thank you, that did the trick! Thank you for the provided inside.
@BrandonB great inside! Thank you for sharing!
User | Count |
---|---|
19 | |
14 | |
13 | |
9 | |
8 |