Get Document Content
Use this endpoint to retrieve the detailed content and metadata of a specific document indexed in AddSearch.
GET /v1/indices/{index_public_key}/documents/{doc_id}/content
Constructing the Endpoint URL
You can obtain the document's content link from the content property in the document status response. Append /content to that link to form the full endpoint URL.
Authentication
This API requires authentication. See the authentication guide for details on how to include your credentials.
Example Response
{
"title": "An example page",
"h1": "The heading on an example page",
"h2": "",
"mainContent": "The indexed content on an example page",
"documentDate": "2015-02-10T14:11:13.000Z",
"language": "en",
"hiddenKeywords": null
}
Response Fields
| Field | Description | Type | Notes |
|---|---|---|---|
title | Document's title | string | |
h1 | Document's primary headings | string | Contains main headings extracted from the document. |
h2 | Document's subheadings | string | Contains subheadings if available. |
mainContent | Document's content | string | The main body content indexed for the document. |
documentDate | Document's date | string | ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). Reflects the creation date from the source or index date if unavailable. |
language | Document's language | string | Two-letter language code, e.g., "en", "de", "es". |
hiddenKeywords | Document's hidden keywords | string | Space- or comma-separated keywords manually added to improve search matching. See hidden keywords documentation. |
Additional Notes
- The
documentDatefield shows when the document was created or first indexed. hiddenKeywordsare keywords not present in the document's visible content but used to improve search relevance.
For more information, visit related API sections: