# Get req API google script

**URL:** <https://community.hubspot.com/t/get-req-api-google-script/44374>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [September 26, 2021, 1:04pm UTC](https://community.hubspot.com/t/get-req-api-google-script/44374 "2021-09-26T13:04:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![EShumely](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eshumely/32/78108_2.png) [@EShumely](https://community.hubspot.com/u/EShumely)\
**Post date:** [September 26, 2021, 1:04pm UTC](https://community.hubspot.com/t/get-req-api-google-script/44374/1 "2021-09-26T13:04:25Z")

</div>

Hi there,

Please don’t refer me to zapiar. (or any other tool like it for that matter)

I have 2 questions -

1. I want to get a costume property through my call. this is the property \>\>linkedin\_profile

what should I add to the link so I’ll get this data? (this is the link -

“[https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=](https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=)” + API\_KEY

2. Did anybody already wrote something to parse this data to specific columns (using google app script) and don’t mind sharing?

)

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 27, 2021, 3:24pm UTC](https://community.hubspot.com/t/get-req-api-google-script/44374/2 "2021-09-27T15:24:53Z")

</div>

@EShumely ,

adding **&property=hs\_linkedinid** to the end of your call will return the LinkedIn ID.

I have not attempted to write something to send to a google sheet, though

---

<div class="post-metadata">

**Author:** ![EShumely](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eshumely/32/78108_2.png) [@EShumely](https://community.hubspot.com/u/EShumely)\
**Post date:** [September 28, 2021, 8:24am UTC](https://community.hubspot.com/t/get-req-api-google-script/44374/3 "2021-09-28T08:24:01Z")

</div>

Hi Dennis,

Thank you for your answer. my costume property is called “linkedin\_profile”. it stored the linkedin profile URL of my contact. when I add this to my **&property=linkedin\_profile** it doesn’t return the property. am I missing something?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 28, 2021, 1:33pm UTC](https://community.hubspot.com/t/get-req-api-google-script/44374/4 "2021-09-28T13:33:56Z")

</div>

@EShumely ,

The property will only be returned on records where there is a value for that property. Can you confirm with a contact record that has a value populated in that property?

---

<div class="post-metadata">

**Author:** ![EShumely](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eshumely/32/78108_2.png) [@EShumely](https://community.hubspot.com/u/EShumely)\
**Post date:** [September 28, 2021, 1:56pm UTC](https://community.hubspot.com/t/get-req-api-google-script/44374/5 "2021-09-28T13:56:15Z")

</div>

I’ll check tomorrow to confirm when we get back to work but all of the contacts should have this value. just to double-check. this is what I added - \> **&property=linkedin\_profile** maybe I should have added something else? like this - \> **&property=hs\_linkedin\_profile** the only reason I’m asking this is that I looked at your example, I’m not familiar with the property you mentioned so I don’t know if this → hs\_ is what you add to the parameter to get the data

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 28, 2021, 2:58pm UTC](https://community.hubspot.com/t/get-req-api-google-script/44374/6 "2021-09-28T14:58:40Z")

</div>

If you created the custom property, then you should use what you have (assuming the internal name of the property is consistent with that)

You can dm me the portal if you want and I can take a closer look.

---

<div class="post-metadata">

**Author:** ![EShumely](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eshumely/32/78108_2.png) [@EShumely](https://community.hubspot.com/u/EShumely)\
**Post date:** [September 29, 2021, 9:14am UTC](https://community.hubspot.com/t/get-req-api-google-script/44374/7 "2021-09-29T09:14:34Z")

</div>

Thanks, I can see it now. I didn’t find a way to parse this data so I can get the values that I want. the app script uses js any chance you have an example code to push the property values to an array? for v1/ response (I found an example online for v3 for a different get req but it doesn’t work for v1)

---

<div class="post-metadata">

**Author:** ![EShumely](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eshumely/32/78108_2.png) [@EShumely](https://community.hubspot.com/u/EShumely)\
**Post date:** [September 29, 2021, 10:27am UTC](https://community.hubspot.com/t/get-req-api-google-script/44374/8 "2021-09-29T10:27:58Z")

</div>

nm found this - [https://medium.com/@alexisbedoret/how-to-retrieve-your-contacts-from-hubspot-in-google-spreadsheet-using-app-script-f8cb4a827826](https://medium.com/@alexisbedoret/how-to-retrieve-your-contacts-from-hubspot-in-google-spreadsheet-using-app-script-f8cb4a827826)

hope it will help other ppl as well
