cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ChristyQV Visitor
Visitor

API request where each record is counted as a request

I have been using an API to pull data into Power Query and then PowerBI from a task management tool.  The API documentation states that they limit requests to 100 request per minute per token.  I have the following M that requests a list of the tasks; it only returns 100 records. Is there something in the way I wrote this that is making multiple requests?  It only looks like one request to me, not one request per record.  Is there a better way for me to do this?

 

let
    token = "XX_YV5JX1DMD5D3CDEVTGO58UT44YXXXXXX",
    endpoint = "2232929/task?include_closed=True",
    baseUrl = "https://api.clickup.com/api/v2/team/",
    url = Text.Combine({baseUrl,endpoint}),
    
    request = Web.Contents(
        url,
        [
            Headers = [
                Authorization = token
            ],
            Query = [
                    ]
        ]
    ),
    requestData = Json.Document(request),
    
    #"Converted to Table" = Record.ToTable(requestData),
    #"Expanded Value" = Table.ExpandListColumn(#"Converted to Table", "Value")
    
in
    #"Expanded Value"

Judging from discussions on the vendors site, it does not seem that the API limit is really 100 records so I assume it's something I'm doing wrong. Thanks for any insight.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: API request where each record is counted as a request

Hi @ChristyQV 

It loads 100 rows by default.

Please read this thread to find some workarounds.

https://community.airtable.com/t/json-string-only-contains-100-rows-when-connected-to-power-bi-deskt...

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: API request where each record is counted as a request

Hi @ChristyQV 

It loads 100 rows by default.

Please read this thread to find some workarounds.

https://community.airtable.com/t/json-string-only-contains-100-rows-when-connected-to-power-bi-deskt...

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 360 members 3,357 guests
Please welcome our newest community members: