Is it possible to get the user´s ip within a Form API?


Hello, i am using the Hubspot Form API with JSON and it is working well. The IP address from the users is a static string value. Is there any option to get the real IP address ?


Hi @jp.delatorre

Are you sending the form submissions server-side? If the IP address isn’t explicitly passed (or if there’s a formatting problem with the JSON), then we automatically grab the IP of the system making the request, so if you’re sending the submissions server-side we may be grabbing the IP of your server. You’d need to make sure to grab the IP of the visitor submitting the form to your server before sending the data to HubSpot (most languages have built-in methods to get the IP of the client making the request).