Form submissions API - how to get latest submissions based on date

I have been able to pull all form submission data for a given form using the API listed here:

I would like to be able to pull form submissions in the last X amount of time, or between two dates. Is there a way to do that so that I do not have to pull all form data each time?

Hey, @AEsther1 :waving_hand: You are not missing a documented option. You may need to filter the results on your end, or consider amending your script to try to parse the JSON response between two dates that you set.

If you are assigning a specific Lifecycle stage to Contacts who submit your form, i.e. Lead, you could leverage the Search API.

Create filter groups for:

  • GTE a date using hs_lifecyclestage_lead_date
  • LTE another date using hs_lifecyclestage_lead_date
  • Add the specific properties you want returned, e.g. the values for the fields collected in your form

This last suggestion is definitely a workaround and doesn’t deal with the form submission itself.

Best,

Jaycee

Hi @Jaycee_Lewis , where can I find the definition of the search API for form submissions? can you share some example usage? Thanks!