GET boards limit

  • 17 August 2022
  • 9 replies
  • 115 views

Badge +1

API request https://api.miro.com/v2/boards gets 10000 boards but I have more (( How can i get ALL the boards? 

 


9 replies

Userlevel 5
Badge +1

Hi,

 

Could you share with us the exact API call you make and what parameters you use? Do you use specific filtering? 

Badge +1

No, it’s just

import requests

url = "https://api.miro.com/v2/boards"

headers = {
    "Accept": "application/json",
    "Authorization": "Bearer {token}"
}

response = requests.get(url, headers=headers)

print(response.text)

Userlevel 5
Badge +1

I have raised this to the engineering and will come back to you when I have more information.

Userlevel 5
Badge +1

It seems there is a workaround that might be able to unlock you until we fix this.

If you run the same query but filter by team_id you won’t face this limitation. You could use the get teams API, get the list of team ids and get the boards for each team, with this you should be able to get all of them and bypass the limitation of 10000 boards.

Badge +1

Ok thank you very much

Badge

Hello! What if the team has more than 10,000 boards?

Userlevel 6
Badge +4

Hi @Jordan866,

To clarify, if you call GET Boards and pass a value for the `team_id` query param, you should be able to retrieve over 10k boards.

Because of the way our API indexes, including this param will ensure you don’t face the limitation of 10k boards:
GET https://api.miro.com/v2/boards?team_id=team_id

Cheers,
Will

Badge

Great, thanks a lot for the quick response! Any reason why the API doesn’t include the ‘last opened’ details when using the team_id parameter, but does when not using the parameter (but facing the 10k limit)?

Userlevel 3
Badge

Hi @Jordan866,

Thank you for raising this. It’s a great point! I’m investigating this internally and will let you know once I have a better answer.

Do you need these details for an integration / app you are building? If you can share your use case it would help us to prioritise adding this to the API.

Reply