Get a post
GET/posts/:url
Returns a post based on its URL.
By default, the response only contains fields marked as required
.
The other fields must be requested with the parameter additionalFields
.
Cost: 1 credit per call.
Request
Path Parameters
Possible values: <= 4096 characters
The url encoded post's url.
Query Parameters
- There are two meta fields,
all
to request all fields andanalysis
to request all analysis fields. - If an optional field is in request's filters, it will be automatically added in the response.
Possible values: [all
, analysis
, author
, summary
, domainName
, externalParentId
, externalId
, language
, image
, analysis.emotions
, analysis.sentiment
, analysis.keywords
, analysis.sourceType
], >= 1
, <= 13
Optional fields to add in the response object.
Notes:
Header Parameters
Possible values: [v1
]
The API version.
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- 503
OK
- application/json
- Schema
- Example (from schema)
Schema
post objectrequired
A Post
ressource.
The post URL.
The post title.
The post creation date. It respect RFC3339 format, UTC date-time without timezone.
Links to the topics extracted from the content.
Links to the categories extracted from the content.
The post summary.
The SHA1 of author's username.
The domain name.
The external id of the parent (in the source platform).
The external id (in the source platform).
The url of the post image.
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 language of the post, with its ISO 639-1 language tag.
analysis object
The post analysis.
emotions object
The emotions detected with their confidence index. The higher the confidence index, the more likely the emotion is to be in the post. A threshold of 0.5 can be applied to the probabilities for the prediction for each emotion.
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: <= 1
Possible values: >= -1
and <= 1
The sentiment of the post. -1
is highly negative, 0
is neutral and +1
is highly positive.
The keywords extracted from the content.
Possible values: [news
, social
]
The source type of the post.
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.
{
"post": {
"url": "string",
"title": "string",
"createdAt": "1977-04-22T07:00:00.000Z",
"topics": [
"string"
],
"categories": [
"string"
],
"summary": "string",
"author": "11F453355B28E1158D4E516A2D3EDF96B3450406",
"domainName": "string",
"externalParentId": "string",
"externalId": "string",
"image": "http://example.com/img3615.png",
"language": "aa",
"analysis": {
"emotions": {
"admiration": 0,
"anger": 0,
"annoyance": 0,
"approval": 0,
"caring": 0,
"confusion": 0,
"curiosity": 0,
"desire": 0,
"disappointment": 0,
"disapproval": 0,
"disgust": 0,
"embarrassment": 0,
"excitement": 0,
"fear": 0,
"gratitude": 0,
"grief": 0,
"joy": 0,
"love": 0,
"nervousness": 0,
"neutral": 0,
"optimism": 0,
"pride": 0,
"realization": 0,
"relief": 0,
"remorse": 0,
"sadness": 0,
"surprise": 0
},
"sentiment": 0,
"keywords": [
"string"
],
"sourceType": "news"
}
},
"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"
}
}
}
Not Found
- 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