Entities SDG Documents
Get sdg documents for one entity
Request
Parameters
entity_id*uuidPermanent ID of the entity
Example: "753c48d6-23c8-5fb0-9230-b099898452b5"sizeintegerNumber of records per page
Default: 10Range: [1, 1000]search_afterstringsearch_afterfield value from the previous pagescoreinteger (operator)Intensity score
You can input an integer or use the following operators: lt (<), lte (≤), gt (>), gte (≥), neq (≠), in, nin (not in), between
Range: [1, 5]extract_datedate (operator)Extraction date of the document
You can input a date or use the following operators: lt (<), lte (≤), gt (>), gte (≥), neq (≠), between
Example: "between:2022-01-01;2022-01-02"category(string (enum))[]Values: "SDG:1", "SDG:2", "SDG:3", "SDG:4", "SDG:5", "SDG:6", "SDG:7", "SDG:8", "SDG:9", "SDG:10", "SDG:11", "SDG:12", "SDG:13", "SDG:14", "SDG:15", "SDG:16", "SDG:17"orderfield:direction[]Order to apply to the result.
Possible fields are:
score,extract_date.Possible directions are:
ascanddesc.You can specify multiples values.
Default: [score:desc, extract_date:desc]Array length: [1, 2]Example: "score:desc"fields(string (enum))[]Fields to include in the response
Default: ["id", "categories", "country", "cluster_size", "entity_keywords", "entity_id", "url", "extract_date", "dashboard_url", "language", "negative", "neutral", "positive", "polarity", "score", "site_type", "taxonomy_keywords", "title", "datamarts_document_id", "is_high_authority_source", "translated_title"]Values: "id", "categories", "country", "cluster_size", "entity_keywords", "entity_id", "url", "extract_date", "dashboard_url", "language", "negative", "neutral", "positive", "polarity", "score", "site_type", "taxonomy_keywords", "title", "d...translatelanguage-code (enum)In which language to translate the results.
Default translated fields are:
title.If empty,
translated_fields won't be returned.Example:
Values: "af", "afr", "afrikaans", "albanian", "am", "amh", "amharic", "ar", "ara", "arabic", "armenian", "az", "aze", "azerbaijani", "ben", "bengali", "bg", "bn", "bos", "bosnian", "bs", "bul", "bulgarian", "ca", "cat", "catalan", "chinese"...french
Response
Properties of the documents.
data*object[]Properties of the documents
size*integerNumber of records per page requested.
Example: 1has_next*booleanTrue if there are more records available.
Example: truecount*integerNumber of records returned in the current page.
Example: 1search_after*string | nullCursor for next page.
{
"data": [
{
"id": "48b8c6bd-471a-423b-87f3-9c287da32967",
"categories": [
"SDG:1"
],
"country": "fr",
"cluster_size": 1,
"entity_keywords": [
"keyword"
],
"entity_id": "00000000-0000-0000-0000-000000000000",
"url": "https://domain.com/article#anchor",
"extract_date": "2025-10-06T04:55:21.713Z",
"dashboard_url": "https://dashboards.textreveal.com/positive-impact-event/48b8c6bd-471a-423b-87f3-9c287da32967",
"language": "fre",
"negative": 0.01,
"neutral": 0.2,
"positive": 0.8,
"polarity": 0.78765434,
"score": 2,
"site_type": "news",
"taxonomy_keywords": [
"sustainability"
],
"title": "string",
"datamarts_document_id": "5e81c3cfab411d53ea4dcb045548d2a89ea9526f09b75b036f3f6c92e9edd9aa",
"is_high_authority_source": true,
"translated_title": null
}
],
"size": 1,
"has_next": true,
"count": 1,
"search_after": "string"
}Error
Bad request
message*stringError message.
Example: "Check the errors field for more details"code*numberError code.
Example: 400reason*stringError reason.
Example: "invalid"errorsobject[]Possible error causes.
{
"message": "Check the errors field for more details",
"code": 400,
"reason": "invalid",
"errors": [
{
"message": "string",
"field": "size",
"reason": "invalid_type"
}
]
}Unauthorized
message*stringError message.
Example: "Authorization header is expected"code*numberError code.
Example: 401reason*stringError reason.
Example: "unauthorized"errors*object[]Array length: [1, 1]
{
"message": "Authorization header is expected",
"code": 401,
"reason": "unauthorized",
"errors": [
{
"message": "Required",
"field": "headers.authorization",
"reason": "invalid_type"
}
]
}Payment required
message*stringError message.
Example: "Your account does not have access to this entity. Contact SESAMm sales for more information."code*numberError code.
Example: 402reason*stringError reason.
Example: "forbidden"
{
"message": "Your account does not have access to this entity. Contact SESAMm sales for more information.",
"code": 402,
"reason": "forbidden"
}Forbidden
message*stringError message.
Example: "Missing required permissions to perform this action."code*numberError code.
Example: 403reason*stringError reason.
Example: "forbidden"
{
"message": "Missing required permissions to perform this action.",
"code": 403,
"reason": "forbidden"
}Not found
message*stringError message.
Example: "The requested entity does not exist or is not visible to your company."code*numberError code.
Example: 404reason*stringError reason.
Example: "not_found"
{
"message": "The requested entity does not exist or is not visible to your company.",
"code": 404,
"reason": "not_found"
}Generic errors are not shown, see Errors for more details.