Skip to main content
Solved

API query limit

  • December 20, 2023
  • 6 replies
  • 183 views

Jay2241

Hello,

I've begun some PHP integrations to extract statistics from Pipefy, using this query:

 $query = <<<GRAPHQL
    {
        pipe(id: xxxxxxxxx) { 
            phases {
                name
                cards(first: 100) { 
                    edges {
                        node {
                            id
                            fields {
                                name
                                value
                            }
                            assignees {
                                name
                            }
                        }
                    }
                }
            }
        }
    }
    GRAPHQL;

 

The data is being displayed in a vertical menu format, and it's working wonderfully. However, there's one issue: a specific phase only shows a maximum of 30 records. I understand this is due to an API pagination limitation, but I need a workaround. For instance, if we have 100 cards in one phase, how can I retrieve all of them?  How do I modify my code?

 

Thanks

J

Best answer by antonio-nykael

Hello,

The maximum is: 50 cards/records per pipe or 30 cards per phase.

You can check more details about pagination at this link: 

 

View original
Did this topic help you find an answer to your question?

6 replies

antonio-nykael
Forum|alt.badge.img+1

Hello,

The maximum is: 50 cards/records per pipe or 30 cards per phase.

You can check more details about pagination at this link: 

 


Jay2241
  • Author
  • 3 replies
  • December 20, 2023

I've attempted to adjust my code numerous times, but to no avail. Could you assist me in understanding how to alter my current GraphQL query to include 60 cards per phase?


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • December 20, 2023

Hi @Jay2241 ; you will have to make more than one query to get 60 cards. There is simply no query allowed that returns more than 30 cards per phase, so you have to use pagination and therewith more than one query. Think of it like pages in a book, each page only allows 30 cards, but you can just open the next page to get more.


Jay2241
  • Author
  • 3 replies
  • December 20, 2023
genietim wrote:

Hi @Jay2241 ; you will have to make more than one query to get 60 cards. There is simply no query allowed that returns more than 30 cards per phase, so you have to use pagination and therewith more than one query. Think of it like pages in a book, each page only allows 30 cards, but you can just open the next page to get more.

 

this means just to get a stats of 60 cards (i.e the status of the cards) we will have to use up 2 API calls from our quota? 


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • December 20, 2023

Unfortunately, yes.


Jay2241
  • Author
  • 3 replies
  • December 20, 2023

Ok, it’s too expensive. Thank you for your input though. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings