---
title: Get bestbet collection(s)
slug: graph/api
docTags: 
createdAt: 2026-08-28T18:28:55.472Z
---

{
  "id": "wwPGHwACbOCAvu0BgNR5D",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://cg.optimizely.com/api/bestbets/collection",
    "servers": [
      {
        "url": "https://cg.optimizely.com/api/bestbets/collection"
      }
    ],
    "name": "Get bestbet collection(s)",
    "description": "<p>Warning: Deprecated\nGet all bestbet collections or get by Id</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "id",
          "type": "string",
          "description": ""
        },
        {
          "kind": "optional",
          "name": "page",
          "type": "number<double>",
          "description": "",
          "format": "double"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "epi-hmac",
          "name": "Authorization",
          "kind": "optional",
          "type": "apiKey",
          "description": "<p>HMAC authentication (<code>epi-hmac xxx</code>)</p>",
          "in": "header"
        },
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "description": "JWT token",
          "scheme": "bearer"
        },
        {
          "id": "Basic",
          "name": "Basic",
          "kind": "optional",
          "type": "http",
          "description": "HMAC credentials",
          "scheme": "basic"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Ok",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "BestBetCollectionResult[]",
            "schema": [
              {
                "name": "title",
                "kind": "required",
                "type": "string",
                "description": ""
              },
              {
                "name": "id",
                "kind": "required",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/BestBetCollectionResult",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "deprecated": true,
    "examples": {
      "languages": [
        {
          "id": "L8GNJTG7GXsnyppv8AEqQ",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://cg.optimizely.com/api/bestbets/collection \\\n     --header 'accept: application/json'"
        },
        {
          "id": "vamZQIi_fg4YZWYsliUUP",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://cg.optimizely.com/api/bestbets/collection\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Sb14ImsZfUTurnYh_Djc-",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://cg.optimizely.com/api/bestbets/collection\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "RiLxD0JKtea3nD08-OVDc",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://cg.optimizely.com/api/bestbets/collection\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "L8GNJTG7GXsnyppv8AEqQ"
    },
    "results": {
      "languages": [
        {
          "id": "NTwzSjW4SZ0VIayj9kzBc",
          "language": "200",
          "code": "// Ok\n[\n  {\n    \"title\": \"\",\n    \"id\": \"\"\n  }\n]"
        }
      ],
      "selectedLanguageId": "NTwzSjW4SZ0VIayj9kzBc"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}