Get all articles¶
Get a list of available articles for a specific contract.
This endpoint does not require an access token.
Endpoint¶
GET https://q.crowdynews.com/v1/articles/{contract}
Request Parameters¶
URL PARAMETER | VALUE DESCRIPTION |
---|---|
contract | The slugified name of the contract. This is the slug property of your contract. |
Response Format¶
On success, the HTTP status code in the response header is
200 OK
and the response body will contain one or more
simple collection
objects in JSON format. If there are no collections, 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/articles/my-contract
Response:
HTTP/1.1 200
[
{
"title": "Owen Smith attacks 'delusional' Corbyn over Labour polls",
"url": "/v1/related/v16?q=http://www.bbc.co.uk/news/uk-politics-37353801"
},
{
"title": "Brazil launches rescue plan to fix economy",
"url": "/v1/related/v16?q=http://www.bbc.co.uk/news/business-37357657"
},
{
"title": "Paralympics 2016: Libby Clegg seals sprint double as GB win six more golds",
"url": "/v1/related/v16?q=http://www.bbc.co.uk/sport/disability-sport/37350442"
},
{
"title": "Wukan: Police move on China protest village to end protests",
"url": "/v1/related/v16?q=http://www.bbc.co.uk/news/world-asia-china-37346540"
}
]