Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Api call returns 50 card actions

artem andreev September 15, 2021

H, when i call this api method:

/1/cards/{card_id}/actions

i get only 50 actions. How can i get more?

 

thanks

 

2 answers

0 votes
Tyler Smith February 24, 2023

You can include a 'limit' parameter in the params section of the request. Implemented in python, it looks like this:

 

import requests

headers = {
    'Accept': 'application/json'
}

query = {
    'key': YOUR_KEY,
    'token': YOUR_TOKEN,
    'limit': 1000
}

response = requests.request(
    'GET',
    'https://api.trello.com/1/cards/' + CARD_ID + '/actions',
    headers=headers,
    params=query
)

print(response.text)
0 votes
Ajay _view26_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 15, 2021

Hi @artem andreev 

Usually actions are limited to 1000 per request. You need to use before and since parameters for pagination  Refer to the Trello API documentation - pagination topic

 

Cheers

Ajay

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events