Forms Page Url and Title

Hello,

I’m building a custom app in AppScripts. Right now I’m getting all forms with the name and id and all form submissions with the date.

So I’m using these two endpoints:

/form-integrations/v1/submissions/forms/

/marketing/v3/forms/
I’ve been asked to add the Page URL and Page Title to my data to be able to segment it better but I can’t find what API I should be using for that.
Any ideas?

Hi, @nv-ju :waving_hand: Welcome to our community! Thanks for your question.

I’d like to include a few of our amazing community members to the conversation – hey @zach_threadint @dsmarion @SteveHTM have you tackled anything similar recently?

Thanks for looking! — Jaycee

Hi @nv-ju :waving_hand:

You should be able to get Page URL from the GET /form-integrations/v1/submissions/forms/ endpoint. See “pageUrl” in this example response:

{
 "results": [
 {
 "submittedAt": 1699320800562,
 "values": [
 {
 "name": "email",
 "value": "example@example.com",
 "objectTypeId": "0-1"
 },
 {
 "name": "firstname",
 "value": "Example",
 "objectTypeId": "0-1"
 }
 ],
 "pageUrl": "https://example.domain/example"
 },
 {
 "submittedAt": 1699248680606,
 "values": [
 {
 "name": "email",
 "value": "example-2@example.com",
 "objectTypeId": "0-1"
 },
 {
 "name": "firstname",
 "value": "Example 2",
 "objectTypeId": "0-1"
 }
 ],
 "pageUrl": "https://example.domain/example"
 }
 ]
}

Not sure you’ll be able to retrieve Page Title from any HubSpot APIs (could be wrong) -- but, depending on the number of URLs you’re working with, you might like to consider handling this as a lookup value within your app logic.

I hope that proves helpful. Please let me know if you have any follow-up questions.