APIs & Integrations

smo
Membro

API Blog Post List not matching Traffic Analytics Blog Post Pages

Hello,

 

I'm trying to get all the blog posts via the API that one can see when they navigate to Traffic Analytics >> Pages and select Page Type "Blog posts".

 

The API is only returning 2 blog posts, when the Traffic Analytics shows many more.

 

Here's the url my python script is hitting:

https://api.hubspot.com/content/api/v2/blog-posts?&limit=300&state=PUBLISHED&content_group_id=XXXXXXXXXX

I have removed the state and content group id, but I'm still only seeing 9.

 

I also tried getting a list of all pages, only got 60 results returned, but that still didn't include the Blog post pages I'm seeing in the API:

https://api.hubapi.com/content/api/v2/pages?&limit=300

Why is the Traffic Analytics showing so many more pages, and how can I get the API to return thos pages to me.

 

All help is greatly appreciated!

0 Avaliação positiva
1 Resposta 1
joceyng
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

API Blog Post List not matching Traffic Analytics Blog Post Pages

Hi @smo, thank you for posting in the Community forum! Could you kindly share a list of the 9 blog posts you got via API, and your Hubspot Hub ID (how to identify your Hub ID) please? Happy to help you take a look here 🙂

 

Cheers, 

Jocelyn

0 Avaliação positiva