Question GET by id
GET /questions/:id
Returns one question by ID, including a list of tags and optional translations.
Available query parameters
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
translations |
string (comma-separated language ids) |
- | x | If defined, the response will include question translations in requested languages. Else, the response will include translations in the content language of the user. This is only available for networks with automatic translations enabled. Only Starmind supported languages and automatic translation enabled languages for given network are considered. Languages matching the original language of a question as well as unsupported languages are ignored. |
Deprecation notice
As mentioned in the changelog on the home page for version 2.402.0
,
tag_relations
will soon no longer be returned on this endpoint. In order to get the tags associated with
the question, one has to fetch it from the complete question endpoint.
Response
{
"id": 21,
"is_published": true,
"published": "2015-02-02T11:36:05.000Z",
"title": "Is there a Study in Scarlet?",
"slug": "is-there-a-study-in-scarlet",
"description": null,
"solution_count": 1,
"language": "en",
"image": "https://cdn.example.com/avatar/default/2d/1b84215e2f035a22f6fec213d3b1d9.jpg",
"created": "2013-11-10T12:16:45.000Z",
"updated": "2013-11-10T12:18:45.000Z",
"content_updated": "2013-11-10T12:17:45.000Z",
"last_activity": "2013-11-10T12:26:55.000Z",
"tag_relations": [
{
"tag": "Study",
"is_auto": true
}
],
"attachments": "/questions/21/attachments",
"is_deleted": false,
"view_count": 28,
"category": {
"id": 123,
"name": "A Category",
"description": "Very interesting stuff.",
"color": "#aa00ff",
"translations": [
{
"language": "es",
"name": "Una categoría",
"description": "Cosas muy interesantes."
}
]
},
"translations": [
{
"language": "fr",
"title": "Y a-t-il une étude à Scarlet?",
"description": null
}
]
}