YouScan Topics API
Create and manage topics — the monitoring entities that collect mentions matching your queries. ### Topic query structure A topic query consists of a `textQuery` and/or `viQuery` (at least one is required) plus an optional `filter`. For all topic query filters, the following field names are supported: - `country`: ISO2 country code (e.g. `country=US`, `country=UA`) - `countryGroup`: Europe, Asia, NorthAmerica, CentralAmerica, TheCaribbean, SouthAmerica, Africa, Oceania (e.g. `countryGroup=Europe`) - `language`: ISO639-2 language code (e.g. `language=ENG`, `language=UKR`) - `source`: domain format (e.g. `source=instagram.com`) - `sourceType`: social, messenger, reviews, news, blog, forum (e.g. `sourceType=social`) - `postType`: post, repost, extendedRepost, comment (e.g. `postType=post`) - `contentType`: text, link, image, video, poll, subtitles, sticker (e.g. `contentType=image`) - `authorAge`: numeric value (e.g. `authorAge=18`) - `authorSubscribers`: numeric value (e.g. `authorSubscribers=1000`) - `gender`: `male` or `female` (e.g. `gender=male`) Supported Visual Insights (VI) query values (used inside `viQuery`): - `logo`: detect specific brand logos (e.g. `logo:"nike"`) - `image.object`: find specific objects (e.g. `image.object:"car"`) - `image.activity`: find activities (e.g. `image.activity:"cooking"`) - `image.person`: find people types (e.g. `image.person:"athlete"`) - `image.scene`: find settings (e.g. `image.scene:"beach"`) - `image.type`: filter by image type (e.g. `image.type:"PHOTO"`) - `image.subtype`: filter by image subtype (e.g. `image.subtype:"selfie"`) - `text`: search mention text (e.g. `text:"sale"`) Supported operations for each filter: - `oneOf`: field value must match one of the specified values. Applicable to most fields. - `notOneOf`: field value must not match any of the specified values. Applicable to most fields. - `greaterOrEqual`: field value must be greater than or equal to the specified value. Numeric fields only (`authorAge`, `authorSubscribers`). - `lessOrEqual`: field value must be less than or equal to the specified value. Numeric fields only (`authorAge`, `authorSubscribers`). Each filter object must specify: - `fieldName`: The field to filter on (see the list above) - `op`: The operation to perform (see the list above) - `value`: JSON-encoded array of values (e.g. `["ua"]`)