Find API end points

Hello,

I am trying to get the data from several surveys in a list. However I don’t know the endpoints of those surveys. In general how do you find the endpoints of anything within Hubspot. I have went through several sections in the API guide but really have no further explanation on how to find these ends points other than the examples given.

Hey, @RDeveloper1 :waving_hand: Welcome to our community! Have you looked at the Feedback Submissions API endpoints? They are currently in public beta and accessible. For example, the Read endpoint — GET /crm/v3/objects/feedback_submissions/{feedbackSubmissionId} will let you query specific surveys by ID.

To find available endpoints, I typically use the HubSpot API reference documentation page and the left-hand sidebar, the HubSpot API Overview for Legacy endpoints, or if I just need something fast, I find success by searching Google using the following query “HubSpot API + {Object}". For example, “HubSpot API + Surveys” brought up the Feedback Submissions API endpoints as the top results. I know that is basic, but it works for me most of the time.

Best,

Jaycee

Thank you for responding and your advice.
I am looking for not a specifc ID but to get all surveys after a certain date(today) and than update records based on results gotten back each day. I’d actually like to pull particular surveys but first I just want to get anything at all. Below I have been able to ping you guys but the json repsonse is sort of confusing me. How do I just grab all survey results?

using (var httpClient = new HttpClient())
{
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri(“https://api.hubspot.com/crm/v3/objects/feedback_submissions?”)
};

request.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue(“Bearer”, apiKey);
var response = await httpClient.SendAsync(request);

if (response.IsSuccessStatusCode)
{
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
else
{
Console.WriteLine($“Failed to fetch data. Status code: {response.StatusCode}”);
}

}

Response:
Status Code: 200
It looks like I just get properties back with id’s and only 9 of them with updated and created at times. I’m just really confused on why I’m not getting back surveys?

Name Value Type

responseBody “{\“results\”:[{\“id\”:\“231546471861\”,\“properties\”:{\“hs_createdate\”:\“2023-05-25T16:34:27.873Z\”,\“hs_lastmodifieddate\”:\“2023-05-25T16:34:28.390Z\”,\“hs_object_id\”:\“231546471861\”},\“createdAt\”:\“2023-05-25T16:34:27.873Z\”,\“updatedAt\”:\“2023-05-25T16:34:28.390Z\”,\“archived\”:false},{\“id\”:\“232017515022\”,\“properties\”:{\“hs_createdate\”:\“2023-05-27T17:25:13.823Z\”,\“hs_lastmodifieddate\”:\“2023-05-27T17:25:14.964Z\”,\“hs_object_id\”:\“232017515022\”},\“createdAt\”:\“2023-05-27T17:25:13.823Z\”,\“updatedAt\”:\“2023-05-27T17:25:14.964Z\”,\“archived\”:false},{\“id\”:\“232128103807\”,\“properties\”:{\“hs_createdate\”:\“2023-05-28T15:07:16.338Z\”,\“hs_lastmodifieddate\”:\“2023-05-28T15:07:39.098Z\”,\“hs_object_id\”:\“232128103807\”},\“createdAt\”:\“2023-05-28T15:07:16.338Z\”,\“updatedAt\”:\“2023-05-28T15:07:39.098Z\”,\“archived\”:false},{\“id\”:\“232287544593\”,\“properties\”:{\“hs_createdate\”:\“2023-05-29T14:29:47.084Z\”,\“hs_lastmodifieddate\”:\“2023-05-29T14:29:47.782Z\”,\“hs_object_id\”:\“232287544593\”},\“createdAt\”:\“2023-05-29T14:29:47.084Z\”,\“updatedAt\”:\“2023-05-29T14:29:47.782Z\”,\“archived\”:false},{\“id\”:\“232293652031\”,\“properties\”:{\“hs_createdate\”:\“2023-05-29T15:14:56.719Z\”,\“hs_lastmodifieddate\”:\“2023-05-29T15:14:57.281Z\”,\“hs_object_id\”:\“232293652031\”},\“createdAt\”:\“2023-05-29T15:14:56.719Z\”,\“updatedAt\”:\“2023-05-29T15:14:57.281Z\”,\“archived\”:false},{\“id\”:\“232299244345\”,\“properties\”:{\“hs_createdate\”:\“2023-05-29T16:06:15.395Z\”,\“hs_lastmodifieddate\”:\“2023-05-29T16:07:57.747Z\”,\“hs_object_id\”:\“232299244345\”},\“createdAt\”:\“2023-05-29T16:06:15.395Z\”,\“updatedAt\”:\“2023-05-29T16:07:57.747Z\”,\“archived\”:false},{\“id\”:\“232308306708\”,\“properties\”:{\“hs_createdate\”:\“2023-05-29T16:12:08.298Z\”,\“hs_lastmodifieddate\”:\“2023-05-29T16:12:08.854Z\”,\“hs_object_id\”:\“232308306708\”},\“createdAt\”:\“2023-05-29T16:12:08.298Z\”,\“updatedAt\”:\“2023-05-29T16:12:08.854Z\”,\“archived\”:false},{\“id\”:\“232318795681\”,\“properties\”:{\“hs_createdate\”:\“2023-05-29T18:47:14.386Z\”,\“hs_lastmodifieddate\”:\“2023-05-29T18:47:14.926Z\”,\“hs_object_id\”:\“232318795681\”},\“createdAt\”:\“2023-05-29T18:47:14.386Z\”,\“updatedAt\”:\“2023-05-29T18:47:14.926Z\”,\“archived\”:false},{\“id\”:\“232513896712\”,\“properties\”:{\“hs_createdate\”:\“2023-05-30T14:36:21.747Z\”,\“hs_lastmodifieddate\”:\“2023-05-30T14:36:25.161Z\”,\“hs_object_id\”:\“232513896712\”},\“createdAt\”:\“2023-05-30T14:36:21.747Z\”,\“updatedAt\”:\“2023-05-30T14:36:25.161Z\”,\“archived\”:false},{\“id\”:\“232515045239\”,\“properties\”:{\“hs_createdate\”:\“2023-05-30T14:40:30.717Z\”,\“hs_lastmodifieddate\”:\“2023-05-30T14:40:32.226Z\”,\“hs_object_id\”:\“232515045239\”},\“createdAt\”:\“2023-05-30T14:40:30.717Z\”,\“updatedAt\”:\“2023-05-30T14:40:32.226Z\”,\“archived\”:false}],\“paging\”:{\“next\”:{\“after\”:\“232515045240\”,\“link\”:\”[https://api.hubspot.com/crm/v3/objects/feedback\_submissions?after=232515045240\\](https://api.hubspot.com/crm/v3/objects/feedback_submissions?after=232515045240\)“}}}” string