Get all collections

Get a list of available collections for a specific contract.

This endpoint does not require an access token.

Endpoint

GET https://q.crowdynews.com/v1/collections/{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/collections/my-contract

Response:

HTTP/1.1 200

[
    {
        "name": "Nation",
        "type": "realtime",
        "url": "https://q.crowdynews.com/v1/content/my-contract?q=nation"
    },
    {
        "name": "World News",
        "type": "realtime",
        "url": "https://q.crowdynews.com/v1/content/my-contract?q=world-news"
    },
    {
        "name": "Trending @ The Internet",
        "type": "ranked",
        "url": "https://q.crowdynews.com/v1/content/my-contract?q=trending-the-internet451992323"
    }
]

Additional Resources