You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Mixpanel Raw Export API导出事件时distinct_id过滤失效求助

Mixpanel Raw Export API 按distinct_id过滤无结果问题

我可以通过Mixpanel Raw Export API成功下载事件,以下是按city字段过滤的可行代码示例:

import requests

url = "https://data.mixpanel.com/api/2.0/export?project_id=<project id>&from_date=2023-11-16&to_date=2023-11-16&limit=10&where=properties%5B%22%24city%22%5D%20%3D%3D%20%22San%20Antonio%22"

headers = {
    "accept": "text/plain",
    "authorization": "Basic <token>"
}

response = requests.get(url, headers=headers)

print(response.text)

但尝试按distinct_id属性过滤(已知该ID存在匹配事件)时,却返回0条事件(状态码200),对应代码示例如下:

import requests

url = "https://data.mixpanel.com/api/2.0/export?project_id=<project id>&from_date=2023-11-16&to_date=2023-11-16&limit=10&where=properties%5B%22distinct_id%22%5D%20%3D%3D%20%22fa1bd247-b252-498a-bace-6b31f876f09%22"

headers = {
    "accept": "text/plain",
    "authorization": "Basic <token>"
}

response = requests.get(url, headers=headers)

print(response.text)

我能正常过滤其他UUID字符串类型属性,格式或长度并非问题。请问为何唯独distinct_id无法过滤?我是否遗漏了什么?


内容的提问来源于stack exchange,提问作者sigma1510

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.05 15:26:25