Hi Team,
I am trying to fetch more than 100 rows from Actions.getPageUrls. But, it returns only 100 rows.
Please is my code.
Could you please help in this regard.
import requests
import pandas as pd
api_url=“https://apirurr”
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’: “bfadfasfad”}
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