Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jonas1
Helper I
Helper I

Custom connector to API with pagination

Hi, 

 

I am currentely trying to build a custom connector to an API using pagination. I have understood that I need to use Table.GenerateByPage(), however there are not any examples on how to do this for APIs that are not OData-ready. 

 

I receive the folowing metadata when the current page is not the current page:
IsLastPage is False.PNG

 

And this if I am on the last page: 

image.png

 

So how do refer to the url marked <Link rel="next"?

 

The code when dealing with OData.Nextlink would typically begin like this: 

Page = (url as text) as nullable table =>
    let
        response = Web.Contents(url, [ Headers = BuildHeader()]),
        body = Json.Document(response),
        nextLink = GetNextLink(body),
        data = Table.FromRecords(body[next])
    in
        data meta [next = nextLink];

But what can I write instead of GetNextLink()? 

1 REPLY 1
DHCookTech
Frequent Visitor

@Jonas1, were you able to accomplish this?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.