List Popups
Returns the popups the owner enabled in the dashboard, with their targeting (pages, delay, frequency, trigger) and the form for form popups. This public, read-only endpoint can also tell you which popups target a given page.
/v1/popupsAuthentication
?key=pk_…Public key in the key query parameter. No OAuth, no secret.
Edge cache: 5 s
Query Parameters
keystringThe site's public key (pk_…). It selects the account. Safe to ship to the browser.
triggersstringThe popup kinds your code opens. 1: every popup that opens after a delay, on scroll, on exit intent or on a click on a selector, with its trigger. 2: also popups opened by every link to a page (link) or only by the site's buttons (manual), content popups (type: "content", with their name), and each popup's key. 3: also views popups, which open once the visitor has opened count different listings (a registration wall). Without it only popups that open after a delay are returned, and trigger is left out.
12pathstringPage path, for example /listing/1. With triggers (1, 2 or 3), the response adds matched: the ids of the popups that target that path.
searchstringQuery string of the page, without the leading ?. Used together with path and triggers for popups that target search pages.
localestringLanguage of the forms inside form popups (no value means English), translated from whatever language the owner wrote them in. Unknown languages return the form as written.
enesbrptitrufrsrdecnzhplrotrarResponses
application/jsonpopupsarray[object]matchedarray[string]Errors
401Missing or invalid public key403TENANT_INACTIVE: the account has no active subscription (body also carries code)Notes
pagespatterns:/is the homepage,/*every page,/listing/*a prefix, anything else an exact path. A leading language segment such as/es/is ignored.type: "auth"popups open the sign-up or log-in step (mode);type: "form"popups carry the form definition inform(their own form, or the website's form on a page spot);type: "content"popups are the site's own copy. Form popups whose form was deleted are not returned.keyis the popup's stable name in the site's code: an element withdata-panda-popup="<key>"opens it. Popups that the visitor opens (click,link,manual) open every time;frequencyapplies to the ones that open by themselves, counted when the visitor sees them.matchedappears only when you send bothtriggersandpath.form.schemais the same dynamic form definition the forms endpoints return.- The list is
[]when no popup is enabled.
curl --request GET \--url "https://api.pandaidx.com/v1/popups?key={{public_key}}&triggers=2&path=%2F"
{"popups": [{"id": "66f1a2b3c4d5e6f708192a3d","key": "home-valuation","type": "form","mode": "signup","formId": "66f1a2b3c4d5e6f708192a3e","form": {"_id": "66f1a2b3c4d5e6f708192a3e","name": "Home valuation","description": null,"schema": {}},"pages": ["/","/listing/*"],"delay": 8,"trigger": {"kind": "scroll","percent": 50},"frequency": "once_per_session","dismissable": true}],"matched": ["66f1a2b3c4d5e6f708192a3d"]}