Forum Discussion

benryon1's avatar
benryon1
Microsoft Employee
6 years ago
Solved

Delay an API call from a custom column

I have an API that has a rate limit of one call per second. I'm using a custom column and add the following code below. The actual quaery is in Column 1.  How do I add a delay to avoid the rate limit wtihin the code for the custom column, further below?

 

I've seen other answers for using Function.InvokeAfter within the Advanced Editor, but have zero clue how to translate it into what I'm doing with a custom column. Very new to API's, somewhat moderate under the hood of Power BI. 

 

= Json.Document(Web.Contents("https://api.xxxxxx.com/search/articles.json?q=" & [Column1] & "&api_key=XXXXXX"))

 

3 Replies