Gnip object
The gnip object, within Activity streams format, contains the metadata added by the active enrichments, as well as indication of the matching rules for the activity.
Data dictionary
Field | Type | Description |
matching_rules | array | Contains an array of matching rule objects which indicate the rule which the activity matches on. { "tag": null, "id": 1026514022567358500, "id_str": "1026514022567358464" } ] |
urls | array | Contains an array of the links within the activity, and the expanded url metadata for the ***URL unwinding enrichement { "url": "https://t.co/tGQqNxxyhU", "expanded_url": "https://www.youtube.com/channel/UCwUxW2CV2p5mzjMBqvqLzJA", "expanded_status": 200, "expanded_url_title": "Birdys Daughter", "expanded_url_description": "Premium, single-origin, handpicked Jamaica Blue Mountain Coffee" } ] |
profileLocations | array of location objects | Contains the derived location object from the Profile Geo enrichment { "address": { "country": "Canada", "countryCode": "CA", "locality": "Toronto", "region": "Ontario" }, "displayName": "Toronto, Ontario, Canada", "geo": { "coordinates": [ -79.4163, 43.70011 ], "type": "point" }, "objectType": "place" } ] } |
Example:
"gnip": {
"matching_rules": [
{
"tag": null
}
],
"urls": [
{
"url": "https://t.co/Nx1XZmRCXA",
"expanded_url": "https://twittercommunity.com/t/new-update-to-the-twitter-text-library-emoji-character-count/114607",
"expanded_status": 200,
"expanded_url_title": null,
"expanded_url_description": null
}
]
}