Saltar al contenido principal
GET
/
contentsearch
/
v2
/
search
/
{documentId}
Get indexed properties
curl --request GET \
  --url https://api.hubapi.com/contentsearch/v2/search/{documentId}
[
  {
    "score": 1,
    "id": "3761238962",
    "type": "blogpost",
    "nestedIdentity": null,
    "version": -1,
    "source": null,
    "fields": {
      "_routing": {
        "name": "_routing",
        "values": [
          "62515"
        ],
        "metadataField": true,
        "value": "62515"
      },
      "description": {
        "name": "description",
        "values": [
          " "
        ],
        "metadataField": false,
        "value": " "
      },
      "author_full_name": {
        "name": "author_full_name",
        "values": [
          "test qa"
        ],
        "metadataField": false,
        "value": "test qa"
      },
      "language": {
        "name": "language",
        "values": [
          "id"
        ],
        "metadataField": false,
        "value": "id"
      },
      "title": {
        "name": "title",
        "values": [
          "{hubspot topic rule} アイカツ!"
        ],
        "metadataField": false,
        "value": "{hubspot topic rule} アイカツ!"
      },
      "url": {
        "name": "url",
        "values": [
          "http://demo-hubapi.hs-sites.com/blog/hubspot-topic-rule-aikatsu-125201"
        ],
        "metadataField": false,
        "value": "http://demo-hubapi.hs-sites.com/blog/hubspot-topic-rule-aikatsu-125201"
      },
      "portalId": {
        "name": "portalId",
        "values": [
          62515
        ],
        "metadataField": false,
        "value": 62515
      },
      "id": {
        "name": "id",
        "values": [
          3761238962
        ],
        "metadataField": false,
        "value": 3761238962
      }
    },
    "highlightFields": {},
    "sortValues": [],
    "matchedQueries": [],
    "explanation": null,
    "shard": {
      "nodeId": "jmP04PTuRKmwkNk_JuYDrw",
      "index": "content-blogposts-3",
      "shardId": 15
    },
    "innerHits": null,
    "sourceRef": null,
    "index": "content-blogposts-3",
    "sourceEmpty": true,
    "sourceAsString": null
  }
]

Documentation Index

Fetch the complete documentation index at: https://developers.hubspot.es/docs/llms.txt

Use this file to discover all available pages before exploring further.

Parámetros de ruta

documentId
string
requerido

The ID of the document to retrieve indexed properties for.

Parámetros de consulta

portalId
string
requerido

The ID of the portal the contact search should be performed against.

type
enum<string>
requerido

The type of document. Can be one of SITE_PAGE, BLOG_POST, or KNOWLEDGE_ARTICLE.

Opciones disponibles:
SITE_PAGE,
BLOG_POST,
KNOWLEDGE_ARTICLE

Respuesta

200 - application/json

successful operation

score
number

Search score

id
string

Document ID

type
string

Document type

nestedIdentity
string | null

Nested identity

version
integer

Document version

source
string | null

Document source

fields
object

All indexed fields for the document

highlightFields
object

Highlighted fields

sortValues
any[]

Sort values

matchedQueries
any[]

Matched queries

explanation
string | null

Query explanation

shard
object
innerHits
string | null

Inner hits

sourceRef
string | null

Source reference

index
string

Index name

sourceEmpty
boolean

Whether source is empty

sourceAsString
string | null

Source as string

Last modified on April 13, 2026