# Analytics API - Listing Pages and Knowledge Articles

**URL:** <https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818>\
**Category:** APIs & Integrations\
**Created:** [November 5, 2018, 8:05pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818 "2018-11-05T20:05:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wes4](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wes4/32/48852_2.png) [@Wes4](https://community.hubspot.com/u/Wes4)\
**Post date:** [November 5, 2018, 8:05pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818/1 "2018-11-05T20:05:12Z")

</div>

I am building a tool for users to view their HubSpot Analytics data and allowing them to split the data based on each endpoint’s main object.

For example, in regards to the Hosted Content endpoint (`analytics/v2/reports/:content_type/:time_period`), I am allowing the users to split the data by the content type object. So if the user chooses landing-pages or standard-pages, I take the Page ID returned by the `breakdown` field and get the name of that page using the List Pages endpoint (`content/api/v2/pages`).

This way the user can see the data split by a readable name and not by an ID. However, when using the `listing-pages` or `knowledge-articles` content types, I am not able to find an endpoint where I can swap those IDs for more human readable names or titles. Is there an endpoint that returns some metadata or something for each of these?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 6, 2018, 2:06pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818/2 "2018-11-06T14:06:52Z")

</div>

Hi again, [@Wes\_Thompson](https://community.hubspot.com/u/wes_thompson),

That’s a good question. What do you get when you query the [Get a page by ID](https://developers.hubspot.com/docs/methods/pages/get_pages_page_id) endpoint? Could you share the IDs of a few `listing-pages` and `knowledge-articles` you’re testing with?

I don’t know of any other endpoints that may return metadata on those page types, but I can certainly check with the team with some specific examples.

---

<div class="post-metadata">

**Author:** ![Wes4](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wes4/32/48852_2.png) [@Wes4](https://community.hubspot.com/u/Wes4)\
**Post date:** [November 6, 2018, 6:44pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818/3 "2018-11-06T18:44:03Z")

</div>

Hi [@Isaac\_Takushi](https://community.hubspot.com/u/isaac_takushi),

I am using `hapikey=demo` to test all of these endpoints. The full request looks like this: `https://api.hubspot.com/analytics/v2/reports/listing-pages/total?hapikey=demo`. The first two ID’s I get back are `6206877519` and `304641`. When I send those IDs into the [List Pages](https://developers.hubspot.com/docs/methods/pages/get_pages) endpiont I get no results. When I use either of them for the [Get a Page by ID](https://developers.hubspot.com/docs/methods/pages/get_pages_page_id) endpoint I get a response message that says “resource not found”.

When I make a similar request using `knowledge-articles` instead of `listing-pages` I actually get no results back. Do you guys not have any demo data for knowledge articles? This is actually the same with `social-assists` on the [Get Analytics Data for Specific Objects](https://developers.hubspot.com/docs/methods/analytics/get-analytics-data-by-object) endpoint. It’s returning no data for `hapikey=demo`.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 7, 2018, 10:06pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818/4 "2018-11-07T22:06:49Z")

</div>

Hey, [@Wes\_Thompson](https://community.hubspot.com/u/wes_thompson).

Ah, that makes sense. The demo account (Hub ID `62515`) actually doesn’t even have the knowledge base tool in it.

The team has been moving toward encouraging developers to use [test accounts through developer accounts](https://developers.hubspot.com/docs/faq/how-do-i-create-a-test-account) rather than the demo portal (accessed through `hapikey=demo`.

If you set up a test account (or already have one) and share the Hub ID with me, I can add a trial Service Hub subscription for testing.

---

<div class="post-metadata">

**Author:** ![Wes4](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wes4/32/48852_2.png) [@Wes4](https://community.hubspot.com/u/Wes4)\
**Post date:** [November 7, 2018, 10:42pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818/5 "2018-11-07T22:42:52Z")

</div>

Okay, [@Isaac\_Takushi](https://community.hubspot.com/u/isaac_takushi).

I’ve created a test account (Hub ID `5113330`). If I use this to test, will it return test data similar to the demo account or do I have to create my own test data?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 8, 2018, 1:14pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818/6 "2018-11-08T13:14:22Z")

</div>

Hey, [@Wes\_Thompson](https://community.hubspot.com/u/wes_thompson).

Alright, I’ve added a Service Hub Enterprise trial to test account **5113330**. You should now be able to [create knowledge base articles](https://knowledge.hubspot.com/articles/kcs_article/knowledge-base/how-do-i-create-a-knowledge-base-article).

You will have to create or import your own test data. Sorry for the inconvenience there.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 8, 2018, 1:47pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818/7 "2018-11-08T13:47:38Z")

</div>

Hey, again, [@Wes\_Thompson](https://community.hubspot.com/u/wes_thompson).

I’ve run some tests in my own portal have confirmed that there currently is no way to retrieve readable names for blog listing pages or knowledge base articles.

While I don’t expect this to change for blog listing pages since they’re not distinct pages with different titles, I will admit that current API support for the knowledge base tool is lacking.

I’ll ask the knowledge base team to see if there are plans to release public endpoints for the tool. In the meantime, I recommend upvoting and commenting on [this existing feature request](https://community.hubspot.com/t5/HubSpot-Ideas/Hubspot-Knowledge-Base-API/idi-p/210116). I’ve just upvoted it as well.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 8, 2018, 5:30pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818/8 "2018-11-08T17:30:42Z")

</div>

Currently, there are no plans to release public endpoints for knowledge base articles, but if the team sees engagement on [this feature request](https://community.hubspot.com/t5/HubSpot-Ideas/Hubspot-Knowledge-Base-API/idi-p/210116), they may consider implementing solutions in the future.

---

<div class="post-metadata">

**Author:** ![Wes4](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wes4/32/48852_2.png) [@Wes4](https://community.hubspot.com/u/Wes4)\
**Post date:** [November 8, 2018, 6:02pm UTC](https://community.hubspot.com/t/analytics-api-listing-pages-and-knowledge-articles/11818/9 "2018-11-08T18:02:50Z")

</div>

Hi [@Isaac\_Takushi](https://community.hubspot.com/u/isaac_takushi),

Thank you for the information. I have upvoted the feature request you mentioned and look forward to any improvements on this.
