APIs & Integrations

nv-ju
Member

Forms Page Url and Title

SOLVE

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?

0 Upvotes
1 Accepted solution
zach_threadint
Solution
Top Contributor

Forms Page Url and Title

SOLVE

Hi @nv-ju 👋

 

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.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


View solution in original post

0 Upvotes
2 Replies 2
zach_threadint
Solution
Top Contributor

Forms Page Url and Title

SOLVE

Hi @nv-ju 👋

 

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.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Forms Page Url and Title

SOLVE

Hi, @nv-ju 👋 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

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes