# using Ids from API to find records in Browser

**URL:** <https://community.hubspot.com/t/using-ids-from-api-to-find-records-in-browser/14205>\
**Category:** APIs & Integrations\
**Tags:** events\
**Created:** [May 2, 2019, 7:41pm UTC](https://community.hubspot.com/t/using-ids-from-api-to-find-records-in-browser/14205 "2019-05-02T19:41:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mclayton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mclayton/32/34870_2.png) [@mclayton](https://community.hubspot.com/u/mclayton)\
**Post date:** [May 2, 2019, 7:41pm UTC](https://community.hubspot.com/t/using-ids-from-api-to-find-records-in-browser/14205/1 "2019-05-02T19:41:56Z")

</div>

I’m using the API to get campaign/event information:

`/email/public/v1/campaigns?hapikey=xxxxx`

The IDs returned, can I use them to view the campaign in the browser, by just popping in the ID, into the URL?

I tried this without success.

This would help me crossreference.

---

<div class="post-metadata">

**Author:** ![lscanlan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lscanlan/32/66262_2.png) [@lscanlan](https://community.hubspot.com/u/lscanlan)\
**Post date:** [May 3, 2019, 4:50pm UTC](https://community.hubspot.com/t/using-ids-from-api-to-find-records-in-browser/14205/2 "2019-05-03T16:50:39Z")

</div>

Hi @mclayton,

If I’m understanding correctly, I think what you’re actually looking for are the "contentId"s. When you make a request to /email/public/v1/campaigns (documented here: [https://developers.hubspot.com/docs/methods/email/get\_campaigns](https://developers.hubspot.com/docs/methods/email/get_campaigns)), you’ll get the campaign IDs. You can then make a request with the campaign ID to /email/public/v1/campaigns/:campaign\_id (documented here: [https://developers.hubspot.com/docs/methods/email/get\_campaign\_data](https://developers.hubspot.com/docs/methods/email/get_campaign_data)). Take a look at the note in that documentation:

If you’re viewing the details for an email in HubSpot, the Internal HubSpot ID(s) would be the campaign\_id(s) for the email. Since each campaign represents a specific send of an email, it’s possible for a single email to have multiple Internal IDs/campaign\_ids.

So when you get the campaign data for a given campaign, you’ll be returned the contentId. That’s the ID you’ll see in the URL. So for example: [https://app.hubspot.com/email/:hub\_id/details/:content\_id/performance](https://app.hubspot.com/email/:hub_id/details/:content_id/performance).

Let me know if that helps?

- Leland

---

<div class="post-metadata">

**Author:** ![mclayton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mclayton/32/34870_2.png) [@mclayton](https://community.hubspot.com/u/mclayton)\
**Post date:** [May 3, 2019, 7:03pm UTC](https://community.hubspot.com/t/using-ids-from-api-to-find-records-in-browser/14205/3 "2019-05-03T19:03:19Z")

</div>

I believe this is what I want. thank you!
