<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API Blog listing based on tag in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/198214#M7001</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/785"&gt;@matteo&lt;/a&gt;&amp;nbsp;- Unfortuanately, you cannot query the API with a blog topic name. However, you can use the&lt;A href="https://developers.hubspot.com/docs/methods/blog/v3/list-blog-topics" target="_self"&gt; topics api endpoint&lt;/A&gt; to get the topics that you need to query, which will get the relative ID to that topic. Then, you can pass a parameter of&amp;nbsp;&lt;STRONG&gt;topic_id=&amp;nbsp;&lt;/STRONG&gt;to your blog post listing API call.&lt;/P&gt;&lt;P&gt;example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/content/api/v2/blog-posts?hapikey=demo&amp;amp;topic_id=53100784" target="_blank"&gt;https://api.hubapi.com/content/api/v2/blog-posts?hapikey=demo&amp;amp;topic_id=53100784&lt;/A&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;If this answer helped, please, mark as solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;tim@belch.io | &lt;A href="https://forms.belch.io" target="_blank"&gt;forms.belch.io&lt;/A&gt; | Design your own Beautiful HubSpot Forms; No coding necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop by and say Hi to me &lt;A href="http://slack.belch.io/" target="_blank"&gt;on slack&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 12:10:14 GMT</pubDate>
    <dc:creator>tjoyce</dc:creator>
    <dc:date>2018-07-19T12:10:14Z</dc:date>
    <item>
      <title>API Blog listing based on tag</title>
      <link>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/198201#M6997</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are implelenting a blog stream in a client's website therefore we are using API cURL call&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.hubapi.com/content/api/v2/blog-posts?hapikey=demo&amp;amp;updated__gt=1430452800000&amp;amp;content_group_id=351076&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are facing an issue: blog post have been tagged with several&amp;nbsp;tags, such as News, Events or other marketing tags.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what we are trying to make out is if&amp;nbsp;there's a way to list ONLY posts tagged with specific single keyword such as NEWS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 09:02:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/198201#M6997</guid>
      <dc:creator>matteo</dc:creator>
      <dc:date>2018-07-19T09:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: API Blog listing based on tag</title>
      <link>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/198214#M7001</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/785"&gt;@matteo&lt;/a&gt;&amp;nbsp;- Unfortuanately, you cannot query the API with a blog topic name. However, you can use the&lt;A href="https://developers.hubspot.com/docs/methods/blog/v3/list-blog-topics" target="_self"&gt; topics api endpoint&lt;/A&gt; to get the topics that you need to query, which will get the relative ID to that topic. Then, you can pass a parameter of&amp;nbsp;&lt;STRONG&gt;topic_id=&amp;nbsp;&lt;/STRONG&gt;to your blog post listing API call.&lt;/P&gt;&lt;P&gt;example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/content/api/v2/blog-posts?hapikey=demo&amp;amp;topic_id=53100784" target="_blank"&gt;https://api.hubapi.com/content/api/v2/blog-posts?hapikey=demo&amp;amp;topic_id=53100784&lt;/A&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;If this answer helped, please, mark as solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;tim@belch.io | &lt;A href="https://forms.belch.io" target="_blank"&gt;forms.belch.io&lt;/A&gt; | Design your own Beautiful HubSpot Forms; No coding necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop by and say Hi to me &lt;A href="http://slack.belch.io/" target="_blank"&gt;on slack&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 12:10:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/198214#M7001</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-07-19T12:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: API Blog listing based on tag</title>
      <link>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/355127#M17561</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;is it possible to pass multiple topic id values to the same topic_id query parameter?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like&amp;nbsp;&amp;amp;topic_id=xxxxxxxx&amp;amp;xxxxxxxx OR&amp;nbsp;&amp;amp;topic_id=xxxxxxxx&amp;amp;topic_id=xxxxxxxx ?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 03:26:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/355127#M17561</guid>
      <dc:creator>MFall13</dc:creator>
      <dc:date>2020-07-17T03:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: API Blog listing based on tag</title>
      <link>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/355148#M17563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/107165"&gt;@MFall13&lt;/a&gt;&amp;nbsp;- I have not tried to search multiple topics before but perhaps the double underscore query might be something you can explore... Something like&lt;/P&gt;
&lt;PRE&gt;&amp;amp;topic_ids__in=10945,28906&lt;/PRE&gt;
&lt;P&gt;However, I suspect something like this might return only posts that appear in both topics... might need some guess work done around this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Optional query string filters &amp;amp; options
Some parameters support "range" filters via double-underscored param suffixes, like '__gt'. If a parameter supports a filter type of 'gt', that means you can append a double-underscore and 'gt' to the parameter name to find all items greater than a specified value.

For example, the following query will find all items with the 'updated' time greater than 1364424600000: https://api.hubapi.com/blogs/v3/topics?hapikey=demo&amp;amp;created__gt=1364424600000&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Jul 2020 06:25:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/355148#M17563</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2020-07-17T06:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: API Blog listing based on tag</title>
      <link>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/355462#M17590</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;thanks for the suggestion. I feel like I've tried every value filter combo out there.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;amp;topic_ids__in=30111149151,32404273845" (and &amp;amp;topic_id__in too)&lt;/PRE&gt;&lt;P&gt;returns&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Invalid query Filtering by \"topic_id(s) in\" is not allowed&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... another try with the following exact params:&lt;/P&gt;&lt;PRE&gt;&amp;amp;topic_id=30111149151&amp;amp;topic_id=32404273845&lt;/PRE&gt;&lt;P&gt;responds with a valid request, but only pulls in blogs with the first topic id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...and another try with the suffix '__contains' to no avail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestions? Much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2020 14:15:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/API-Blog-listing-based-on-tag/m-p/355462#M17590</guid>
      <dc:creator>MFall13</dc:creator>
      <dc:date>2020-07-19T14:15:16Z</dc:date>
    </item>
  </channel>
</rss>

