{
  "openapi": "3.1.0",
  "info": {
    "title": "iGaming Discovery Research API",
    "version": "1.0.0",
    "description": "Read-only access to published research. Missing fact values are null, not evidence of an unavailable capability. Supplier statements are not independently tested outcomes. Cite canonical profile URLs and preserve linked source URLs, review dates and scope. No authentication is required."
  },
  "servers": [
    {
      "url": "https://igamingdiscovery.com/api/discovery/v1"
    }
  ],
  "paths": {
    "/product-types": {
      "get": {
        "operationId": "listProductTypes",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "const": "1"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slug": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "canonicalUrl": {
                            "type": "string"
                          },
                          "criteria": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "question": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    "missingFactMeaning": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "apiVersion",
                    "items"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/products": {
      "get": {
        "operationId": "searchProducts",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 24
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Words matched against public catalogue search fields.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "slugs",
            "in": "query",
            "required": false,
            "description": "1\u201350 comma-separated exact slugs. Results follow the requested order.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Product type slug.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "supplier",
            "in": "query",
            "required": false,
            "description": "Supplier slug.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string",
              "enum": [
                "popularity",
                "name",
                "supplier"
              ],
              "default": "popularity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "const": "1"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Product"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    "missingFactMeaning": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "apiVersion",
                    "items"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/products/{slug}": {
      "get": {
        "operationId": "getProduct",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Canonical product slug.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "const": "1"
                    },
                    "item": {
                      "$ref": "#/components/schemas/Product"
                    },
                    "missingFactMeaning": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "apiVersion",
                    "item"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/suppliers": {
      "get": {
        "operationId": "searchSuppliers",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 24
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Words matched against public catalogue search fields.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "slugs",
            "in": "query",
            "required": false,
            "description": "1\u201350 comma-separated exact slugs. Results follow the requested order.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string",
              "enum": [
                "popularity",
                "name",
                "updated"
              ],
              "default": "popularity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "const": "1"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "canonicalUrl": {
                            "type": "string"
                          },
                          "tagline": {
                            "type": "string"
                          },
                          "categorySlugs": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "reviewedAt": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    "missingFactMeaning": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "apiVersion",
                    "items"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/compare": {
      "get": {
        "operationId": "exportComparison",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": true,
            "description": "Product type slug.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "products",
            "in": "query",
            "required": true,
            "description": "1\u20133 comma-separated published products from the selected type.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "const": "1"
                    },
                    "generatedAt": {
                      "type": "string"
                    },
                    "comparisonUrl": {
                      "type": "string"
                    },
                    "productType": {
                      "type": "object"
                    },
                    "missingFactMeaning": {
                      "type": "string"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Product"
                      }
                    }
                  }
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Published public research data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Source": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "checkedAt": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "supports": {
            "type": "string"
          }
        },
        "required": [
          "label",
          "url",
          "checkedAt"
        ]
      },
      "Fact": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "value": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "recorded",
              "not_recorded"
            ]
          },
          "sourceUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Source"
            }
          }
        },
        "required": [
          "key",
          "label",
          "value",
          "status",
          "sourceUrl",
          "sources"
        ]
      },
      "Product": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "canonicalUrl": {
            "type": "string",
            "format": "uri"
          },
          "supplierSlug": {
            "type": "string"
          },
          "supplierName": {
            "type": "string"
          },
          "supplierUrl": {
            "type": "string",
            "format": "uri"
          },
          "productTypeSlugs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "buyerFit": {
            "type": "string"
          },
          "delivery": {
            "type": "string"
          },
          "pricing": {
            "type": "string"
          },
          "website": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "reviewedAt": {
            "type": "string"
          },
          "facts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fact"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Source"
            }
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "faqs": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "capabilities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "useCases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "popularity": {
            "type": "object"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "canonicalUrl",
          "supplierSlug",
          "supplierName",
          "productTypeSlugs",
          "facts",
          "sources",
          "reviewedAt"
        ]
      },
      "Pagination": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer"
          },
          "pageSize": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          },
          "totalPages": {
            "type": "integer"
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          },
          "previous": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "page",
          "pageSize",
          "total",
          "totalPages",
          "next",
          "previous"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "apiVersion": {
            "const": "1"
          },
          "error": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
