# Fetching submitted Form Data via API

**URL:** <https://community.hubspot.com/t/fetching-submitted-form-data-via-api/131093>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [May 5, 2025, 9:45pm UTC](https://community.hubspot.com/t/fetching-submitted-form-data-via-api/131093 "2025-05-05T21:45:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![catalancesar](https://avatars.discourse-cdn.com/v4/letter/c/73ab20/32.png) [@catalancesar](https://community.hubspot.com/u/catalancesar)\
**Post date:** [May 5, 2025, 9:45pm UTC](https://community.hubspot.com/t/fetching-submitted-form-data-via-api/131093/1 "2025-05-05T21:45:14Z")

</div>

Hello there!  
Is there a way to fetch all submission data via form ID from a custom module?  
I’ve reviewed this [documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms/v3), but I couldn’t find an endpoint for fetching submissions. I’ve also checked this [discussion](https://community.hubspot.com/t5/APIs-Integrations/Fetching-submitted-Form-Data-via-API/td-p/1040550). After creating a private app and its associated token, I attempted to execute a fetch call in the module.js file. However, the browser console returns this error:  
_Access to fetch at ‘[https://api.hubapi.com/form-integrations/v1/submissions/forms/:MY\_FORM\_ID](https://api.hubapi.com/form-integrations/v1/submissions/forms/:MY_FORM_ID)’ from origin ‘[https://MY\_DOMAIN\_URL](https://MY_DOMAIN_URL)’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource._

---

<div class="post-metadata">

**Author:** ![FrancoQ](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/francoq/32/2962_2.png) [@FrancoQ](https://community.hubspot.com/u/FrancoQ)\
**Post date:** [May 6, 2025, 1:35am UTC](https://community.hubspot.com/t/fetching-submitted-form-data-via-api/131093/2 "2025-05-06T01:35:07Z")

</div>

You’re encountering a CORS issue because you’re trying to make a request to the HubSpot API directly from the browser (frontend JavaScript in a module.js file). HubSpot’s API doesn’t include the Access-Control-Allow-Origin header in its response, which means you can’t call it directly from the client-side due to browser security restrictions. must go through a server-side proxy.
