首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >MatomoäPI "Actions.getPageUrls“在rest api调用中仅返回100行

MatomoäPI "Actions.getPageUrls“在rest api调用中仅返回100行
EN

Stack Overflow用户
提问于 2020-01-17 03:28:41
回答 1查看 104关注 0票数 0

我正在尝试使用以下代码从matomo api "Actions.getPageUrls“获取数据:

代码语言:javascript
运行
复制
import requests
import pandas as pd

api_url="baseapi"

PARAMS = {'module': 'API', 
          'method':'Actions.getPageUrls', 
          'period' : 'range',
          'date': '2019-01-01,2020-01-01',
          'filter_limit' : '-1',
          'idSite': '1', 
          'format': 'JSON',
          'expanded' : '1',
          'token_auth': "tocken"}

r = requests.post(url = api_url, params = PARAMS, verify=False)
print(r.url)
matomo_df = pd.DataFrame(r.json())
matomo_df.head()
matomo_df['label']
matomo_df = pd.DataFrame(r.json()[0]['subtable'])
matomo_df

但是,它只返回100行。

我想获得超过100行的数据。你能帮帮我吗?

EN

回答 1

Stack Overflow用户

发布于 2020-01-17 05:09:22

默认情况下,它被设置为仅返回100行,但是当您将'filter-limit‘设置为-1时,它将返回您将'filter-limit’参数设置为10000的所有rows.Can并尝试它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59776537

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档