Skip to main content

Custom Objects

The following structures are used in the images, videos and customer_entities fields of the Talkwalker Documents.

image object

field_namedatatypeaccepted dataformatrequiredwritableExample
urlstringnormalized urlyesyes"url": "http://www.example.com/image.jpg"
legendstring<1000 charsnoyes"legend": "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
widthintegernoyes
heightintegernoyes

Example
{
"images": [
{
"url": "http://www.example.com/image1.jpg",
"legend": "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
}
]
}

video object

field_namedatatypeaccepted dataformatrequiredwritableExample
urlstringnormalized urlyesyes"url": "http://www.example.com/video.mpg"
legendstring<1000 charsnoyes"legend": "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
widthintegernoyes
heightintegernoyes
Example
{
"videos": [
{
"url": "http://www.example.com/video1.mpg",
"legend": "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
}
]
}

customer_entity object

field_namedatatypeaccepted dataformatrequiredwritableExample
typestringperson, place, organization, keyword, iptc, source_distribution_typeyesyes"type": "person"
idlist of string (ordered)<100 charsyesyes"id" : ["Obama", "Barack"]

The Talkwalker user interface will only show the first 2 levels of Ids. The list of Ids defines a hierarchy where each Id defines a superset of the following Ids. See list of id options for source_distribution_type in chapter "formats".

Examples

Entity hierarchy: Austin TX in USA
{
"customer_entities": [
{
"type": "Place",
"id": ["USA", "Austin TX"]
}
]
}
Multiple independent entities
{
"customer_entities": [
{
"type": "organization",
"id": ["UNO"]
},
{
"type": "organization",
"id": ["WHO"]
}
]
}