Skip to main content

I am currently using two calls to get all the leads from Unbouce API:


First I get all the pages with callings https://api.unbounce.com/pages and then download all the leads for a specific landing page with https://api.unbounce.com/pages/{page_id}/leads.


This however does not return leads acquired through popups and I can’t seem to find any answers in your documentation how to do this as it does not mention popups at all.

Hey @Tomaz_Bratanic,


That API endpoint should work the same for landing pages, pop-ups, and AMP, though it is true that the API documentation doesn’t mention pop-ups explicitly.


The ID you should be using ({page_id}) is the same ID as the one you see in your browser when you’re in the app. So for example, if you’re trying to fetch leads for:


https://app.unbounce.com/12345/convertables/b6dae5e5-fabd-4498-8174-21ec776c1c28


…then the URI for your API call should be:


https://api.unbounce.com/pages/b6dae5e5-fabd-4498-8174-21ec776c1c28/leads


Note that this is not the the same as the UUID you see in the embed code.


Hi There


We managed to get leads via the api, but we are having trouble to get leads from our amp pages via the api. Is there another way we can access leads from amp pages?


Thanks


Reply