# Blog ID expected long

**URL:** <https://community.hubspot.com/t/blog-id-expected-long/13287>\
**Category:** APIs & Integrations\
**Tags:** cms-content, developer-tools\
**Created:** [February 28, 2019, 7:16pm UTC](https://community.hubspot.com/t/blog-id-expected-long/13287 "2019-02-28T19:16:02Z")\
**Posts on this page:** 7\
**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:** [February 28, 2019, 7:16pm UTC](https://community.hubspot.com/t/blog-id-expected-long/13287/1 "2019-02-28T19:16:02Z")

</div>

Hello again, when using the blog-post content type for the [Get data for Hubspot hosted content](https://developers.hubspot.com/docs/methods/analytics/get-data-for-hubspot-content), it returns the blog post ID as the breakdown. We then pass those blog post IDs into the [List blog posts](https://developers.hubspot.com/docs/methods/blogv2/get_blog_posts) endpoint to get the names of each of those blog posts. However, we just ran into an issue where one or more of the blog post IDs returned by the analytics endpoint has a hyphen in it and then the call to get the blog post name returns an error saying it expected a long. Am I supposed to remove the hyphen from the blog post ID myself or is there something else going on?

---

<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:** [March 1, 2019, 5:53pm UTC](https://community.hubspot.com/t/blog-id-expected-long/13287/2 "2019-03-01T17:53:00Z")

</div>

Hi, @Wes4.

Happy to help. To troubleshoot effectively, though, I’ll need a bit more information. Would you share:

1. The Hub ID of the account you’re pulling these blog post IDs from.

2. One or two example blog IDs with hyphens.

3. The [List blog posts](https://developers.hubspot.com/docs/methods/blogv2/get_blog_posts) endpoint doesn’t accept individual blog IDs. Are you instead passing the hyphenated blog ID values to [this endpoint](https://developers.hubspot.com/docs/methods/blogv2/get_blog_posts_blog_post_id)?

---

<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:** [March 1, 2019, 6:38pm UTC](https://community.hubspot.com/t/blog-id-expected-long/13287/3 "2019-03-01T18:38:18Z")

</div>

Sure thing:

1. The Hub ID I’m currently using is 127518

2. A couple of the IDs are “591062-203027” and “591062-203026”. It appears they are all starting with “591062”.

3. No I am using the [List blog posts](https://developers.hubspot.com/docs/methods/blogv2/get_blog_posts) endpoint and using the (undocumented) parameter “id\_\_in”. It allows me to filter certain blog posts. It works for regular IDs but these hyphen ones cause a 400 response.

The request looks like this:

`https://api.hubapi.com/content/api/v2/blog-posts?limit=300&offset=0&id __in=7433319117&id__ in=7430136613&id __in=591062-203027&id__ in=591062-203026`

---

<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:** [March 4, 2019, 9:42pm UTC](https://community.hubspot.com/t/blog-id-expected-long/13287/4 "2019-03-04T21:42:55Z")

</div>

Hi, @Wes4.

Thank you for providing this information.

First and foremost, we do not support or guarantee the performance of undocumented query parameters.

I will ask the team for insight into your error and whether we can add support for the `id__in` parameter, but I can’t promise any particular outcome.

Apologies for the inconvenience. I appreciate your understanding.

---

<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:** [March 7, 2019, 6:59am UTC](https://community.hubspot.com/t/blog-id-expected-long/13287/5 "2019-03-07T06:59:09Z")

</div>

@IsaacTakushi

It is understandable that you would not support undocumented parameters, however, the issue still remains. Why am I seeing these blog IDs with hyphens when I query that analytics endpoint?

When I query the blog post endpoint without using the undocumented parameter and just page through every blog post, those IDs are still not present.

---

<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:** [March 28, 2019, 6:45pm UTC](https://community.hubspot.com/t/blog-id-expected-long/13287/6 "2019-03-28T18:45:50Z")

</div>

Hi, I never got a reply to my last comment. Was hoping for more info on this.

To reiterate, even if I **do not** use the undocumented parameter, and just page through all results from the [List blog posts](https://developers.hubspot.com/docs/methods/blogv2/get_blog_posts) endpoint, the IDs with hyphens in them do not show up. Even if I remove the hyphens, they are not in this list.

I know that deleted blog posts will not appear in the results but even if they were deleted, why do they have hyphens at all?

---

<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:** [April 12, 2019, 9:26pm UTC](https://community.hubspot.com/t/blog-id-expected-long/13287/7 "2019-04-12T21:26:50Z")

</div>

Hey, @Wes4.

Sincere apologies for dropping the ball on this thread… I completely missed your replies. Going forward, please be sure to tag me with @IsaacTakushi and your message will be much less likely to fall through the cracks.

I took a closer look and found the following:

- The hyphenated “ID” is actually a legacy `analytics_page_id` which predates the current analytics system. It is combines the following values…
- The`591062` string corresponds to _another_ `analytics_page_id` field as well as a`legacy_tab_id` which I had not previously encountered.
- The strings which follow the`analytics_page_id` or`legacy_tab_id` correspond to legacy blog post ID (`legacy_id`) values. If you retrieve blog ID `1936716288` from [this endpoint](https://developers.hubspot.com/docs/methods/blogv2/get_blog_posts_blog_post_id), for example, you will find the `analytics_page_id` is a hyphenated `591062-188883` . The `legacy_id` value is even visible in old blog post URLs like: `https://info.gbiosciences.com/blog/bid/188883/what-are-the-detergents-commonly-used-in-proteomics`.

I’ll pass this insight along to the team and find out whether we can rectify the legacy analytics and blog IDs with our “new” IDs.
