Get related content items

Get a list of related content items for a specific article.

This endpoint does not require an access token and returns only 20 items.

Endpoint

GET https://q.crowdynews.com/v1/related/{contract}

Request Parameters

URL PARAMETER VALUE DESCRIPTION
contract The slugified name of the contract. This is the slug property of your contract.
QUERY PARAMETER VALUE DESCRIPTION
q The url of the article to get content for. The articles enfpoint returns the complete endpoint including the article url.

Response Format

On success, the HTTP status code in the response header is 200 OK and the response body will contain one or more content item objects in JSON format. If there are no content items, an empty array will be returned in JSON format. On error, the header status code is an error code and the response body contains an error object.

Example Request

Request:

GET https://q.crowdynews.com/v1/related/my-contract?q=http://url-to-an-article

Response:

HTTP/1.1 200

[
    {
        "id": "143418480117",
        "service": "tumblr",
        "type": "image",
        "text": "Got this for my husband so I can marathon all my favourite TV shows on the weekend without interruption.",
        "url": "http://ragecomics4you.tumblr.com/post/143418480117/got-this-for-my-husband-so-i-can-marathon-all-my",
        "tags": [
            "humor",
            "lol",
            "funny",
            "omg"
        ],
        "date": "2016-04-26T06:39:09.000Z",
        "author": {
            "name": "ragecomics4you",
            "userid": "ragecomics4you",
            "username": "ragecomics4you",
            "url": "https://api.tumblr.com/v2/blog/ragecomics4you.tumblr.com/avatar"
        },
        "media": [{
            "type": "image",
            "url": "http://40.media.tumblr.com/166d60c3ec3e90d605cfdb986dc33b18/tumblr_o68ah9GbF11rq1pj8o1_500.jpg",
            "width": 460,
            "height": 345
        }],
        "kudos": {
            "score": 0,
            "tumblr_score": 0,
            "tumblr_note_count": 0
        }
    }
]

Additional Resources