Get the history of posts count
GET/volume/history
Returns the history of post counts, the response is a time series.
History data points are sorted by creation date, from the oldest to the newest.
Cost: 5 credits per call.
Request
Query Parameters
- Default: the API returns the results for the last hour by default.
- Maximum: the API can go back in time up to 15 days. If an older date is provided, the API will limit its results to 15 days.
- The
endDate
must be greater than thestartDate
, otherwise the API returns an error.
Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,6})?(Z|\+00:00)$
The start date, used to filter results. It must respect RFC3339 format, UTC date-time without timezone. Examples : "1977-04-22T07:00:00.000Z", "1977-04-22T07:00:00.000+00:00".
Note : the start date is inclusive, the bucket containing it is always included in the response. The actual start date is aligned with the beginning of the time bucket containing it. The response may include data from before the requested start date.
Limitations:
Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,6})?(Z|\+00:00)$
The end date, used to filter results. It must respect RFC3339 format, UTC date-time without timezone. Examples : "1977-04-22T07:00:00.000Z", "1977-04-22T07:00:00.000+00:00".
Note : the endDate
is exclusive, the bucket containing it is never included in the response. The actual endDate
is aligned with the end of the previous time bucket.
Limitations:
The interval between data points in minutes. Data are aggregated by interval and the average value of this interval is calculated and returned.
You can specify the interval in minutes or in a human-readable format. The human-readable format is a number followed by a time unit. The supported time units are: m (minutes), h (hours), d (days), w (weeks), M (months), y (years).
Minimum value is 1 minute. Default value is 1h. Maximum value is 10 years.
Possible values: >= 1
and <= 2147483647
The category's id, used to filter the results.
It should not be used with topicId
, if the category in the request does not match the topics's category, there will be no result.
Possible values: >= 1
and <= 2147483647
The topic's id, used to filter the results.
It should not be used with categoryId
, if the category in the request does not match the topics's category, there will be no result.
Possible values: [news
, social
]
The source type, used to filter the results.
Possible values: Value must match regular expression ^[a-z][0-9a-z.-]{0,100}\.[a-z]{2,4}$
The domain name, used to filter the results.
Possible values: [aa
, ab
, ae
, af
, ak
, am
, an
, ar
, as
, av
, ay
, az
, ba
, be
, bg
, bh
, bi
, bm
, bn
, bo
, br
, bs
, ca
, ce
, ch
, co
, cr
, cs
, cu
, cv
, cy
, da
, de
, dv
, dz
, ee
, el
, en
, eo
, es
, et
, eu
, fa
, ff
, fi
, fj
, fo
, fr
, fy
, ga
, gd
, gl
, gn
, gu
, gv
, ha
, he
, hi
, ho
, hr
, ht
, hu
, hy
, hz
, ia
, id
, ie
, ig
, ii
, ik
, io
, is
, it
, iu
, ja
, jv
, ka
, kg
, ki
, kj
, kk
, kl
, km
, kn
, ko
, kr
, ks
, ku
, kv
, kw
, ky
, la
, lb
, lg
, li
, ln
, lo
, lt
, lu
, lv
, mg
, mh
, mi
, mk
, ml
, mn
, mr
, ms
, mt
, my
, na
, nb
, nd
, ne
, ng
, nl
, nn
, no
, nr
, nv
, ny
, oc
, oj
, om
, or
, os
, pa
, pi
, pl
, ps
, pt
, qu
, rm
, rn
, ro
, ru
, rw
, sa
, sc
, sd
, se
, sg
, si
, sk
, sl
, sm
, sn
, so
, sq
, sr
, ss
, st
, su
, sv
, sw
, ta
, te
, tg
, th
, ti
, tk
, tl
, tn
, to
, tr
, ts
, tt
, tw
, ty
, ug
, uk
, ur
, uz
, ve
, vi
, vo
, wa
, wo
, xh
, yi
, yo
, za
, zh
, zu
]
The ISO 639-1 language tag, used to filter the results.
Possible values: >= 1
, <= 5
A list of keywords used to filter the posts. Depends on keywords condition (or/and) to filter the posts.
This parameter is case-insensitive.
Possible values: [and
, or
]
Default value: and
The condition to return the posts that match one or all of the keywords passed in input.
An opaque string representing the pagination cursor.
Possible values: >= 1
and <= 1000
Default value: 10
The maximum number of objects returned per page.
Header Parameters
Possible values: [v1
]
The API version.
Responses
- 200
- 400
- 401
- 403
- 429
- 500
- 503
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
items object[]required
Possible values: <= 1000
An array of Volume
ressources.
The number of posts found for the query.
The lower bound date of data used to calculate the volume. It respect RFC3339 format, UTC date-time without timezone.
The upper bound date of data used to calculate the volume. It respect RFC3339 format, UTC date-time without timezone.
Possible values: >= 5
and <= 5256000
The requested interval between data points.
pagination object
Pagination link|cursor pointing to the current page.
Pagination link|cursor pointing to the previous page.
This link is not present if there is no previous page.
Pagination link|cursor pointing to the next page.
This link is not present if there is no next page.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"items": [
{
"postsCount": 0,
"startDate": "1977-04-22T07:00:00.000Z",
"endDate": "1977-04-22T07:00:00.000Z"
}
],
"requestedInterval": 0,
"pagination": {
"self": "string",
"prev": "string",
"next": "string"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The description of the error. It gives meaningful information about what happened.
Possible values: >= 100
and <= 600
The error code. Please use our documentation to get more information about it.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the user that made the request.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"error": {
"message": "An error occurred.",
"code": 0,
"userId": "123e4567-e89b-12d3-a456-426655440000",
"requestId": "123e4567-e89b-12d3-a456-426655440000"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The description of the error. It gives meaningful information about what happened.
Possible values: >= 100
and <= 600
The error code. Please use our documentation to get more information about it.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the user that made the request.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"error": {
"message": "An error occurred.",
"code": 0,
"userId": "123e4567-e89b-12d3-a456-426655440000",
"requestId": "123e4567-e89b-12d3-a456-426655440000"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The description of the error. It gives meaningful information about what happened.
Possible values: >= 100
and <= 600
The error code. Please use our documentation to get more information about it.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the user that made the request.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"error": {
"message": "An error occurred.",
"code": 0,
"userId": "123e4567-e89b-12d3-a456-426655440000",
"requestId": "123e4567-e89b-12d3-a456-426655440000"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The description of the error. It gives meaningful information about what happened.
Possible values: >= 100
and <= 600
The error code. Please use our documentation to get more information about it.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the user that made the request.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"error": {
"message": "An error occurred.",
"code": 0,
"userId": "123e4567-e89b-12d3-a456-426655440000",
"requestId": "123e4567-e89b-12d3-a456-426655440000"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
{
"requestId": "123e4567-e89b-12d3-a456-426655440000"
}
Service Unavailable