The use of the API is controlled, to prevent malicious users from overloading the application (see here) and guarantee a good performance for every user.
The limit on the API is per API key, and has the value of 60 requests / mn.
Imagine that you want to update the content of some assets, you have a list of ids
assets and a list of links
new_links. You can use the following code as inspiration :
for i in tqdm(len(assets)): try: playground.update_properties_in_asset(asset_id=assets[i], content=new_links[i]) except Exception as e: if '[tooManyRequests]' in getattr(e, 'message', str(e)): print('Sleeping because of too many calls') time.sleep(60) else: raise e