Run in Postman


API Docs

Get the guidance details, the rating and comments, for a piece of content by id, use your generated token in the a header as the authorization bearer token.


Content ratings and comments

Use the content id for a single item from your content search.

Endpoint

{info} The url for searching for content is: https://app.safestream.info/api/v1/content/{id}.

Method URI Headers
GET /content{id} Authorization: Bearer {token}

URL Params

{
    "id"         : "required|number"
}

Data Params

None

{info} Basic search example using a content id

/api/v1/content/2422

{success} Success Response

Code 200

Content

{
    "data": {
        "id": 2422,
        "name": "Bones",
        "year": 2001,
        "content_comments": [
            {
                "type": "language",
                "content": "55 F-words ..."
            },
            {
                "type": "nudity",
                "content": "We see a young woman ..."
            },
            {
                "type": "violence",
                "content": "A woman invites ...."
            }
        ],
        "content_rating": {
            "nudity": 6,
            "violence": 10,
            "language": 10
        }
    }
}

{danger} Error unauthorised Response, bad authorisation bearer token used.

Code 401

Reason This action is unauthorized

Content

{
    "message": "Unauthenticated."
}

{danger} Error not found bad content id used.

Code 404

Reason Not Found

Content

...