GET
/
cms
/
v3
/
blogs
/
posts
Obter todos os posts
curl --request GET \
  --url https://api.hubapi.com/cms/v3/blogs/posts \
  --header 'Authorization: Bearer <token>'
{
  "total": 123,
  "paging": {
    "next": {
      "link": "",
      "after": ""
    }
  },
  "results": [
    {
      "publishDate": "2023-11-07T05:31:56Z",
      "language": "af",
      "enableLayoutStylesheets": true,
      "metaDescription": "<string>",
      "attachedStylesheets": [
        {}
      ],
      "password": "<string>",
      "htmlTitle": "<string>",
      "publishImmediately": true,
      "translations": {},
      "id": "<string>",
      "state": "<string>",
      "slug": "<string>",
      "createdById": "<string>",
      "rssBody": "<string>",
      "currentlyPublished": true,
      "archivedInDashboard": true,
      "created": "2023-11-07T05:31:56Z",
      "contentTypeCategory": "0",
      "mabExperimentId": "<string>",
      "updatedById": "<string>",
      "translatedFromId": "<string>",
      "folderId": "<string>",
      "widgetContainers": {},
      "pageExpiryRedirectId": 123,
      "dynamicPageDataSourceType": 123,
      "featuredImage": "<string>",
      "authorName": "<string>",
      "domain": "<string>",
      "name": "<string>",
      "dynamicPageHubDbTableId": "<string>",
      "campaign": "<string>",
      "dynamicPageDataSourceId": "<string>",
      "enableDomainStylesheets": true,
      "includeDefaultCustomCss": true,
      "layoutSections": {},
      "updated": "2023-11-07T05:31:56Z",
      "footerHtml": "<string>",
      "tagIds": [
        123
      ],
      "widgets": {},
      "postSummary": "<string>",
      "headHtml": "<string>",
      "pageExpiryRedirectUrl": "<string>",
      "abStatus": "master",
      "useFeaturedImage": true,
      "abTestId": "<string>",
      "featuredImageAltText": "<string>",
      "blogAuthorId": "<string>",
      "contentGroupId": "<string>",
      "rssSummary": "<string>",
      "pageExpiryEnabled": true,
      "url": "<string>",
      "enableGoogleAmpOutputOverride": true,
      "publicAccessRules": [
        {}
      ],
      "archivedAt": 123,
      "postBody": "<string>",
      "themeSettingsValues": {},
      "pageExpiryDate": 123,
      "publicAccessRulesEnabled": true,
      "currentState": "AUTOMATED",
      "categoryId": 123,
      "linkRelCanonicalUrl": "<string>"
    }
  ]
}
Produtos suportados
Requer um dos seguintes produtos ou superior.
Marketing HubMarketing HubProfessional
Sales HubSales HubGrátis
Service HubService HubGrátis
Content HubContent HubStarter

Escopos Necessários

Esta API requer um dos seguintes escopos:
  • content

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

createdAt
string<date-time>

Retorna somente posts de blog criados exatamente no horário especificado.

createdAfter
string<date-time>

Retorna apenas posts de blog criados após o horário especificado.

createdBefore
string<date-time>

Retorna apenas posts de blog criados antes do horário especificado.

updatedAt
string<date-time>

Retorna somente os posts de blog atualizados pela última vez exatamente no horário especificado.

updatedAfter
string<date-time>

Retorna somente os post de blog atualizados pela última vez após o horário especificado.

updatedBefore
string<date-time>

Retorna somente os post de blog atualizados pela última vez antes do horário especificado.

sort
string[]

Especifica quais campos usar para classificar os resultados. Os campos válidos são "createdAt" (padrão), "name", "updatedAt", "createdBy", "updatedBy".

after
string

O valor do token do cursor para obter o próximo conjunto de resultados. Você pode obter esse valor da propriedade JSON "paging.next.after" em uma resposta paginada que contém mais resultados.

limit
integer

O número máximo de resultados a serem retornados. O padrão é 20.

archived
boolean

Especifica se deve retornar posts do blog excluídos. O padrão é "false".

property
string

Response

successful operation

Response object for collections of blog posts with pagination information.

total
integer
required

Número total de posts de blog.

results
object[]
required

Coleção de posts de blog.

paging
object

Model definition for forward paging.