Forms endpoint not returning ALL forms | Community
Skip to main content
Answered

Forms endpoint not returning ALL forms


I am trying to retrieve a list of all forms via API (https://api.typeform.com/forms) and the results vary significantly at any given time, with only certain forms being returned and the results have been different day-to-day.

Is there any reason as to why a certain form would not be returned within this list. I can manually retrieve the form id and retrieve responses via responses endpoint but the forms endpoint does not return the form object itself.

Best answer by Liz

Hi @marssaas Thank you! I can’t see anything there that would prevent all the forms from appearing, so in your case, I would suggest contacting our technical team here

For yours, @propfunnel the page size is what is preventing all of them from showing. You either need to increase this or remove it entirely. 

View original

10 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14905 replies
  • June 13, 2022

Hi @marssaas thanks for stopping by the community! What is the full call you’re making? Are you using paging at all? 


Forum|alt.badge.img
  • Explorer
  • 8 replies
  • June 14, 2022
Liz wrote:

Are you using paging at all? 

I’m also facing a similar issue in trying to fetch all the forms as unlike the responses there isn’t a token to identify them. I have roughly 300 forms that I need to fetch and check. Is there a way to page them as I’m not sure how to do it either?


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14905 replies
  • June 14, 2022

@propfunnel can you please send the call you’re making? 


  • Author
  • Explorer
  • 2 replies
  • June 14, 2022

@Liz I’m using this endpoint: https://api.typeform.com/forms
 

I’m only passing token to authorize and no other parameters. There are only about 15 forms in total and only about 7 get returned. I haven’t used the pages parameter for this specific call .


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14905 replies
  • June 14, 2022

Thanks, @marssaas but I need the full call, including any parameters you’re adding. 


  • Author
  • Explorer
  • 2 replies
  • June 14, 2022

@Liz 

using python requests library:

response = requests.get(‘https://api.typeform.com/forms’, headers=headers).json()

where headers is my bearer token


Forum|alt.badge.img
  • Explorer
  • 8 replies
  • June 15, 2022
Liz wrote:

@propfunnel can you please send the call you’re making? 

Hi,

 

I’m using the typeform-js-client

 typeformClient
    .forms
    .list(pageSize=100)
    .then((data)=> {
        console.log(data.total_items)
        res.header(200).json(data)
    })

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14905 replies
  • Answer
  • June 15, 2022

Hi @marssaas Thank you! I can’t see anything there that would prevent all the forms from appearing, so in your case, I would suggest contacting our technical team here

For yours, @propfunnel the page size is what is preventing all of them from showing. You either need to increase this or remove it entirely. 


Forum|alt.badge.img
  • Explorer
  • 8 replies
  • June 16, 2022
Liz wrote:

Hi @marssaas Thank you! I can’t see anything there that would prevent all the forms from appearing, so in your case, I would suggest contacting our technical team here

For yours, @propfunnel the page size is what is preventing all of them from showing. You either need to increase this or remove it entirely. 

Hi thank you,

This is part of the result that I’m getting

{"total_items":300,"page_count":30}

Meaning that it retrieves everything but for some reason I don’t know how to toggle through the pages.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14905 replies
  • June 21, 2022

Thanks, @propfunnel ! You will need to add the page in the query parameters to toggle through the pages. Our documentation here should help!


Reply