Can I obtain the number of lines of my API query?
The getRowCount function is used to obtain the number of lines in an API V3 call:
CODE
https://api.atinternet.io/v3/data/getData?param={"columns":["page","m_visits"],"sort":["-m_visits"],"space":{"s":[XXXXX]},"period":{"p1":[{"type":"D","start":"2022-12-25","end":"2022-12-25"}]},"max-results":50,"page-num":1,"options":{"ignore_null_properties":true}}
Replacing the getData function with getRowCount will allow you to get the number of rows of your previous query.
CODE
https://api.atinternet.io/v3/data/getRowCount?param={"columns":["page","m_visits"],"space":{"s":[XXXXX]},"period":{"p1":[{"type":"D","start":"2022-12-25","end":"2022-12-25"}]},"options":{"ignore_null_properties":true}}
The getRowCount function can't be used with the following API parameters:
sort
max-result
page-num
With these parameters, the API call will return an error.