@matteo - Unfortuanately, you cannot query the API with a blog topic name. However, you can use the topics api endpoint 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 topic_id= to your blog post listing API call.
@matteo - Unfortuanately, you cannot query the API with a blog topic name. However, you can use the topics api endpoint 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 topic_id= to your blog post listing API call.
Hi @MFall13 - I have not tried to search multiple topics before but perhaps the double underscore query might be something you can explore... Something like
&topic_ids__in=10945,28906
However, I suspect something like this might return only posts that appear in both topics... might need some guess work done around this
Optional query string filters & 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&created__gt=1364424600000