Hi team, Im trying to export events from mixpanel using API with python and I want to get condition from user. can you please guide me how to connect events and users
This post is now synced! Check it out here: _How to Connect Events and Users When Exporting Mixpanel Data Using Python API_ ⤵️ Any future comments will be automatically posted to the thread
Thanks for your question! Hopefully, your peers in the community can help answer your questions.
However, if you need some review from our Support team, leave 🎫 on your question and we should reach out shortly! If you do this, please make sure to not send duplicate tickets through the Support webform. Appreciate it!
In the meantime, let us know if this feedback is similar to any previous discussions below:
Im using this code to get the users but im having error "User is not a member of this workspace" what could be the reason ?
payload = {
"project_id": PROJECT_ID,
"page": "0",
"include_all_users": "true"
}
headers = {
"accept": "application/json",
"content-type": "application/x-www-form-urlencoded"
}
response = requests.post(
url,
data=payload,
headers=headers,
auth=HTTPBasicAuth(SERVICE_ACCOUNT_USERNAME, SERVICE_ACCOUNT_SECRET)
)I'm guessing you're hitting the wrong endpoint, you probably want the engage endpoint https://developer.mixpanel.com/reference/engage-query
