Enterprise API

List an article partner's sportsbooks

​

Available for: Enterprise API.

Get the sportsbook IDs, names, logos, priorities, and allowed flags associated with an article-widget partner. Use these IDs in requestedBookIds and bookOrder when generating article betting offers.

Return the sportsbook IDs, names, logos, priorities, and allowed flags available to an article-widget partner. Use these IDs in requestedBookIds to limit article-widget results and in bookOrder to choose the display order. Use X-Api-Key to authenticate the request.

Path Parameters

  • Partner slug supplied during Gambly onboarding.

Query Parameters

Headers

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/api/v1/article-widgets/{partnerSlug}/books
curl https://data.unabated.com/api/v1/article-widgets/demo-partner/books \
  --header 'X-Api-Key: YOUR_SECRET_TOKEN'
{
  "partner": {
    "id": 1,
    "slug": "string",
    "displayName": "string",
    "status": "string",
    "allowCreate": true
  },
  "books": [
    {
      "id": 1,
      "name": null,
      "logoUrl": null,
      "priority": 1,
      "allowed": true,
      "siteUrl": null,
      "thumbnailUrl": null
    }
  ],
  "requestId": "string"
}