GET /v1/indices/{index public key}/documents/{doc id}
Retrieve the status of a document from the index.
Notes: Doc id is the MD5 hash of a full URL with protocol and possible query parameters. For example the doc id of https://www.addsearch.com/ is 3b1d053e2fdf65f178dc5d1b5bd00f75
{ "indexPublicKey": "index public key", "docId": "md5 of url", "status": "INDEXED|EXCLUDED|PENDING|ERROR|UNKNOWN", "statusInfo": "Duplicate of another-doc-id", "lastFetched": "2015-01-13T13:43:01.000Z", "duplicateOf": { "href": "https://api.addsearch.com/v1/indices/{index public key}/documents/{doc id}" }, "content": { "href": "https://api.addsearch.com/v1/indices/{index public key}/documents/{doc id}/content" } }
Field | Description | Type | Notes |
---|---|---|---|
indexPublicKey | The public site key | string | |
docId | Document's id | string | URL encoded as md5 hash. |
status | Document's status | string | Possible values are “INDEXED”, “EXCLUDED”, “PENDING”, “ERROR”, “UNKNOWN”. |
statusInfo | Document's status info explained in detail | string | |
lastFetched | The time when the document was last updated | string | The format is YYYY-MM-DDT00:00 00.000Z (example: 2015-01-13T13:43:01.000Z). Null if missing. |
duplicateOf | The URL of indexed document with the same content | string | Null if missing. |
content | Document's content | string | Null if missing. |
Please note that the Document Status API endpoint requires authentication. See authentication for more information.
We’re always happy to help with code or other questions you might have. Search our documentation, contact support, or connect with our sales team.