Power BI and API paginated data - api

I am trying to pull in all data from an API. Unfortunately, the API only allows 500 records per page. I followed the steps from the post here - How to get paginated data from API in Power BI. Instead of selecting the "total_pages" I selected "total_rows." I had this working, where my result was all 4675 rows. Something happened and now I get over 1 millions rows and the query is still pulling in rows. I have looked at this for so long and cannot see what is wrong. Can anyone help?
The parameters in the API are businessObjectTypeId, pageSize, and pageNum
API Function in PBI
API Query in PBI

Related

Pagination rules' Value in Azure Data Factory V2 (for Rest API)

I am trying to fill in Value box inside Pagination rules explained on this article which was published recently (in May 25th 2021).
My Request URL is this one:
So, based on my URL's data, I would like to know how to insert all rows (total 15,315 rows) instead of 500 rows.
I am new to Rest API, and I guess I was looking for an indicator that points to the next set of records.
Currently, when I run Azure Data Factory V2 without Pagination rules, it only inserts 500 rows of data into Azure database.
This is the solution I got from my issue:
https://learn.microsoft.com/en-us/answers/questions/468561/azure-data-factory-pagination-issue.html#answer-470345

Power BI API Power Query

this is the response from the api callHi I'm stuck with this problem, I am querying an API that only allows you to bring back 10 records at a time. Then you have to do another call and provide the next page key to get the next batch of 10 records and so forth. Is there a way for Power BI to use a variable to pull in the next page key from the response, and then use it in the API call to cycle through the data till the end of the data.

PagerDuty Pagination

My company uses Power BI and we are trying to get incidents data from PagerDuty API.
I have been struggling to find a way to get all the data but I am unknowledgeable about PowerBI, PowerQuery or dealing with API. I am in database role.
I used Get Data option in Power BI and selected Web as data source. Entered My API link, and passed the headers. The result I get is limited to 25 by default, I can change it to up to 100 but my main issue is with not being able to get next set of results.
I need to have some kind of loop to increase the offset parameter and refeth the query.
My current query in PowerBI looks like this.
= Json.Document(Web.Contents("https://api.pagerduty.com/incidents", [Headers=[Accept="application/vnd.pagerduty+json;version=2",
#"Content-Type"="application/json", Authorization="Token token=MY API KEY"]]))
And it returns me this:
I can expand the list and get the data I need. but I only see 25 right now.
You'll need a way to keep updating an offset parameter in the URL -- for example if you've set limit 25, you'd set offset to 25 to get the next page, 50 to get the next page after that, and so on, like so:
https://api.pagerduty.com/incidents?offset=25
I'm not sure how you'd accomplish that in your tool, though! Here's a link to the PagerDuty documentation on pagination in case you need extra details.

In Quickbooks Api retrieving a aggreate view of the transactionqueryrq

I am using the QuickBooks Api to request transaction data from a QB database. However due to the number of transactions, it takes a long time for the request to come back. Is there a way of requesting a summarise view in the XML, i.e instead of getting data on TxnID level, I can get it to just aggregated the 'amount' by accounts.
Thanks in advance
Is there a way of requesting a summarise view in the XML, i.e instead of getting data on TxnID level, I can get it to just aggregated the 'amount' by accounts.
Using a TransactionQueryRq? No.
If you're trying to get summary data, you should look into the reporting features of the SDK/qbXML instead -- they are likely closer to what you need.

Query or Limit parameter for vimeo Rest API

I have integrated vimeo Rest API for my web application, whenever I call rest api, it return large response data, but to optimize large data, I would like to limit data to return me after particular date, and I want query data like "since=date" or "since=id", so should return me data available after this date or id, by applying query parameter to rest api, I want filter result on the basis of id or date, so please let me know, is there any way available for that.
example url is here:
https://api.vimeo.com/groups/330134/users?sort=date&direction=desc
but want like this
https://api.vimeo.com/groups/330134/users?since=2015-06-15;
All data filters are described in the endpoint. You can reduce the fields you receive with the field filter: https://developer.vimeo.com/api/spec#json-filter