Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

YouScan Statistics API

Aggregated statistics for mentions of a topic.### Dates`from` and `to` are dates (`yyyy-MM-dd`); `to` is inclusive. Day boundaries arecomputed in the API key owner's time zone (see *Dates and time zones* in the Mentions section).### FiltersAll statistics endpoints accept a common set of optional filters:- `country` (`string[]`): e.g. `country=uk&country=us`- `excludeCountry` (`string[]`): e.g. `excludeCountry=uk&excludeCountry=us`- `sourceTypes` (`string[]`): one of `blog`, `forum`, `news`, `social`, `reviews`, `messenger` (e.g. `sourceTypes=social&sourceTypes=blog`)- `excludeSourceTypes` (`string[]`): same values as `sourceTypes`- `sources` (`string[]`): e.g. `sources=telegram.me&sources=youscan.io`- `excludeSources` (`string[]`): e.g. `excludeSources=telegram.me&excludeSources=youscan.io`- `tags` (`int[]`): filter by tag IDs- `excludeTag` (`int[]`): exclude filter by tag IDsEvery statistics response contains a `totalCount` field — the total number of mentions matching the filters.An unknown or inaccessible `topicId` returns `404` with `message: "Theme not found"`.

YouScan Statistics API is one of 8 APIs that YouScan publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Statistics. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 13 operations across 13 paths, and defines 5 schemas. It is described by OpenAPI 3.1.0, at version 1.0.

Requests are made against a single base URL, https://api.youscan.io/api/external.

13 operations 13 paths 5 schemas 13 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0
Base URL
https://api.youscan.io/api/external
Authentication
API Key, API Key
Resource Areas
1

Authentication & Security 2

YouScan Statistics API declares 2 security schemes for authenticating requests. An API key is passed in the header as X-API-KEY (ApiKeyHeader). An API key is passed in the query as apiKey (ApiKeyQuery). By default, every request must be authenticated.

  • ApiKeyHeader — API key authentication. The recommended way to authenticate requests.
  • ApiKeyQuery — API key as a query parameter. For testing purposes only.

Paths & Operations 13

Across 13 paths, the API surfaces 13 operations — 13 GET. Each is listed below with its method, path, parameters, and response codes.

Statistics 13

Aggregated statistics for mentions of a topic. Dates from and to are dates (yyyy-MM-dd); to is inclusive. Day boundaries are computed in the API key owner's time zone (see Dates a…

GET
/topics/{topicId}/statistics/sentiments
Sentiment
getSentimentsStatistics 11 params → 200401
GET
/topics/{topicId}/statistics/tags
Tags
getTagsStatistics 12 params → 200401
GET
/topics/{topicId}/statistics/words
Word cloud
getWordsStatistics 12 params → 200401
GET
/topics/{topicId}/statistics/countries
Countries
getCountriesStatistics 13 params → 200401
GET
/topics/{topicId}/statistics/cities
Cities
getCitiesStatistics 12 params → 200401
GET
/topics/{topicId}/statistics/regions-sentiments
Sentiment by regions
getRegionsSentimentsStatistics 12 params → 200401
GET
/topics/{topicId}/statistics/sources-sentiments
Sentiment by sources
getSourcesSentimentsStatistics 12 params → 200401
GET
/topics/{topicId}/statistics/regions-sources-sentiments
Sentiment by sources by regions
getRegionsSourcesSentimentsStatistics 13 params → 200401
GET
/topics/{topicId}/statistics/histogram
Histogram
getHistogramStatistics 13 params → 200400401
GET
/topics/{topicId}/statistics/genders
Genders
getGendersStatistics 11 params → 200401
GET
/topics/{topicId}/statistics/ages
Ages
getAgesStatistics 11 params → 200401
GET
/topics/{topicId}/statistics/links
Links
getLinksStatistics 13 params → 200401
GET
/topics/{topicId}/statistics/metrics
Engagement metrics
getMetricsStatistics 11 params → 200401

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are LinkItem (5 properties), TermWithSentiments (3 properties), ValidationError (3 properties), NameCount (2 properties). Each schema is shown below with its type and property counts.

ValidationError
object
3 properties
LinkItem
object
5 properties
SourceTypeFilter
string
NameCount
object
2 properties
TermWithSentiments
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

youscan-statistics-api-openapi.yml Raw ↑

Other APIs YouScan publishes across the network.

YouScan Data Import API
YouScan History API
YouScan Mentions API
YouScan Spaces API
YouScan Tags API
YouScan Topics API
YouScan Webhook API