{
 "openapi": "3.1.0",
 "info": {
  "title": "CricketScore API",
  "version": "1.0.0",
  "description": "Read-only JSON for CricketScore's sister sites: everything cricketscore.app serves, from the same data the pages render. Send your key in X-Api-Key. Every news photo carries a credit that must be shown next to it.",
  "contact": {
   "url": "https://cricketscore.app/developers"
  }
 },
 "servers": [
  {
   "url": "https://api.cricketscore.app/v1"
  }
 ],
 "security": [
  {
   "ApiKey": []
  }
 ],
 "paths": {
  "/home": {
   "get": {
    "operationId": "home",
    "summary": "Home page bundle",
    "description": "Everything the home page shows: news (lead, headlines, topic sections), the featured match with its live state, live, up next, upcoming and recent matches, rankings and the calendar.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/news": {
   "get": {
    "operationId": "news",
    "summary": "News list",
    "description": "Stories in feed order with photos and credits.",
    "parameters": [
     {
      "name": "category",
      "in": "query",
      "required": false,
      "description": "Topic id (see meta.topics)",
      "schema": {
       "type": "string",
       "enum": [
        "women",
        "leagues",
        "india",
        "domestic",
        "international",
        "more"
       ]
      }
     },
     {
      "name": "team",
      "in": "query",
      "required": false,
      "description": "Team id or name",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "player",
      "in": "query",
      "required": false,
      "description": "Player id or name",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "updated_since",
      "in": "query",
      "required": false,
      "description": "RFC 3339 time",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "description": "next_cursor from the previous page",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Items per page (default 20, at most 50)",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/NewsItem"
           }
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/news/{ref}": {
   "get": {
    "operationId": "news_ref",
    "summary": "Story",
    "description": "One story: our published write-up (full body) or its source page.",
    "parameters": [
     {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Story id or slug (slug ends with -<id>)",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "",
      "schema": {
       "type": "string",
       "enum": [
        "en",
        "hi"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "$ref": "#/components/schemas/Article"
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/matches": {
   "get": {
    "operationId": "matches",
    "summary": "Matches",
    "description": "Live, results and fixtures with the /matches filters.",
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "description": "",
      "schema": {
       "type": "string",
       "enum": [
        "all",
        "live",
        "results",
        "upcoming",
        "pending"
       ]
      }
     },
     {
      "name": "date",
      "in": "query",
      "required": false,
      "description": "Provider date label (meta.dates)",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "description": "",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "series",
      "in": "query",
      "required": false,
      "description": "Series id",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "team",
      "in": "query",
      "required": false,
      "description": "Team id or name",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Text search",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "description": "next_cursor from the previous page",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Items per page (default 50, at most 200)",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Match"
           }
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/matches/{id}": {
   "get": {
    "operationId": "matches_id",
    "summary": "Match",
    "description": "Match summary, the live state and links to its sections.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Numeric CRIX id",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "match": {
             "$ref": "#/components/schemas/Match"
            },
            "live": {
             "oneOf": [
              {
               "$ref": "#/components/schemas/Live"
              },
              {
               "type": "null"
              }
             ]
            },
            "sections": {
             "type": "object",
             "additionalProperties": true
            },
            "available": {
             "type": "object",
             "additionalProperties": true
            },
            "scorecard_played": {
             "type": "boolean"
            },
            "summary_conflict": {
             "type": "boolean"
            }
           },
           "required": [
            "match",
            "live",
            "sections",
            "available"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/matches/{id}/{section}": {
   "get": {
    "operationId": "matches_id_section",
    "summary": "Match section",
    "description": "One match-centre section. commentary pages with cursor/limit.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Numeric CRIX id",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "section",
      "in": "path",
      "required": true,
      "description": "",
      "schema": {
       "type": "string",
       "enum": [
        "scorecard",
        "commentary",
        "info",
        "playing-xi",
        "squads",
        "overs",
        "insights",
        "partnerships",
        "man-of-the-match",
        "facts"
       ]
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "description": "next_cursor from the previous page",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Items per page (default 50, at most 200)",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "match_id": {
             "type": "string"
            }
           },
           "required": [
            "match_id"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/series": {
   "get": {
    "operationId": "series",
    "summary": "Series",
    "description": "The series catalogue.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Series"
           }
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/series/{id}": {
   "get": {
    "operationId": "series_id",
    "summary": "Series detail",
    "description": "A series with its live, upcoming and recent matches.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Numeric CRIX id",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "id": {
             "type": "string"
            },
            "series": {},
            "match_count": {
             "type": "integer"
            },
            "live": {
             "type": "array",
             "items": {
              "$ref": "#/components/schemas/Match"
             }
            },
            "upcoming": {
             "type": "array",
             "items": {
              "$ref": "#/components/schemas/Match"
             }
            },
            "recent": {
             "type": "array",
             "items": {
              "$ref": "#/components/schemas/Match"
             }
            }
           },
           "required": [
            "id",
            "series",
            "match_count",
            "live",
            "upcoming",
            "recent"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/series/{id}/points-table": {
   "get": {
    "operationId": "series_id_points_table",
    "summary": "Points table",
    "description": "Supplied standings, never derived.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Numeric CRIX id",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "id": {
             "type": "string"
            },
            "ready": {
             "type": "boolean"
            },
            "rows": {
             "type": "array",
             "items": {
              "type": "object",
              "additionalProperties": true
             }
            }
           },
           "required": [
            "id",
            "ready",
            "rows"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/teams/{id}": {
   "get": {
    "operationId": "teams_id",
    "summary": "Team",
    "description": "Team profile: form, results, fixtures, rankings, top players, squad.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Numeric CRIX id",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "description": "",
      "schema": {
       "type": "string",
       "enum": [
        "all",
        "test",
        "odi",
        "t20"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "id": {
             "type": "string"
            },
            "name": {
             "type": "string"
            },
            "form": {
             "type": "array",
             "items": {
              "type": "object",
              "additionalProperties": true
             }
            },
            "recent_matches": {
             "type": "array",
             "items": {
              "type": "object",
              "additionalProperties": true
             }
            },
            "top_players": {
             "type": "array",
             "items": {
              "type": "object",
              "additionalProperties": true
             }
            }
           },
           "required": [
            "id",
            "name",
            "form",
            "recent_matches",
            "top_players"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/players/{id}": {
   "get": {
    "operationId": "players_id",
    "summary": "Player",
    "description": "Player profile: careers, recent performances and related news.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Numeric CRIX id",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "description": "",
      "schema": {
       "type": "string",
       "enum": [
        "test",
        "odi",
        "t20"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "id": {
             "type": "string"
            },
            "name": {
             "type": "string"
            },
            "batting_career": {
             "type": "array",
             "items": {
              "type": "object",
              "additionalProperties": true
             }
            },
            "bowling_career": {
             "type": "array",
             "items": {
              "type": "object",
              "additionalProperties": true
             }
            },
            "recent_performances": {
             "type": "array",
             "items": {
              "type": "object",
              "additionalProperties": true
             }
            },
            "news": {
             "type": "array",
             "items": {
              "$ref": "#/components/schemas/NewsItem"
             }
            }
           },
           "required": [
            "id",
            "name",
            "batting_career",
            "bowling_career",
            "recent_performances",
            "news"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/rankings": {
   "get": {
    "operationId": "rankings",
    "summary": "Rankings",
    "description": "Team or player rankings by format.",
    "parameters": [
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "",
      "schema": {
       "type": "string",
       "enum": [
        "teams",
        "batters",
        "bowlers",
        "allrounders"
       ]
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "description": "",
      "schema": {
       "type": "string",
       "enum": [
        "test",
        "odi",
        "t20"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "type": {
             "type": "string"
            },
            "format": {
             "type": "string"
            }
           },
           "required": [
            "type",
            "format"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/calendar": {
   "get": {
    "operationId": "calendar",
    "summary": "Calendar",
    "description": "Series catalogue and upcoming fixtures by provider date label.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "series": {
             "type": "array",
             "items": {
              "$ref": "#/components/schemas/Series"
             }
            },
            "fixtures_by_date": {
             "type": "array",
             "items": {
              "type": "object",
              "additionalProperties": true
             }
            }
           },
           "required": [
            "series",
            "fixtures_by_date"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/search": {
   "get": {
    "operationId": "search",
    "summary": "Search",
    "description": "Matches, players, teams, series and news.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "description": "",
      "schema": {
       "type": "string",
       "enum": [
        "all",
        "matches",
        "players",
        "teams",
        "series",
        "news"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "query": {
             "type": "string"
            },
            "kind": {
             "type": "string"
            },
            "has_results": {
             "type": "boolean"
            }
           },
           "required": [
            "query",
            "kind",
            "has_results"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/streams": {
   "get": {
    "operationId": "streams",
    "summary": "Live streams",
    "description": "Matches with a playable stream now, and in-progress matches without one.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "enabled": {
             "type": "boolean"
            },
            "streams": {
             "type": "array",
             "items": {
              "$ref": "#/components/schemas/Stream"
             }
            },
            "off_air": {
             "type": "array",
             "items": {
              "$ref": "#/components/schemas/Stream"
             }
            }
           },
           "required": [
            "enabled",
            "streams",
            "off_air"
           ],
           "additionalProperties": true
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/streams/{id}": {
   "get": {
    "operationId": "streams_id",
    "summary": "Stream status",
    "description": "Truthful stream status for one match.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Numeric CRIX id",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "ETag": {
        "schema": {
         "type": "string"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string"
        }
       },
       "X-Request-ID": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        }
       },
       "RateLimit-Policy": {
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "$ref": "#/components/schemas/Stream"
          },
          "meta": {
           "$ref": "#/components/schemas/Meta"
          },
          "links": {
           "$ref": "#/components/schemas/Links"
          }
         },
         "required": [
          "data",
          "meta",
          "links"
         ]
        }
       }
      }
     },
     "304": {
      "description": "Not modified (If-None-Match matched the ETag)"
     },
     "400": {
      "description": "Bad request",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "Missing or unknown key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Browser origin not allowed for this key",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit reached (see Retry-After)",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "502": {
      "description": "Data temporarily unavailable upstream",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "503": {
      "description": "API switched off",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/openapi.json": {
   "get": {
    "operationId": "openapi",
    "summary": "This document",
    "security": [],
    "responses": {
     "200": {
      "description": "OpenAPI 3.1"
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "ApiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "X-Api-Key"
   }
  },
  "schemas": {
   "Problem": {
    "type": "object",
    "properties": {
     "type": {
      "type": "string",
      "format": "uri"
     },
     "title": {
      "type": "string"
     },
     "status": {
      "type": "integer"
     },
     "detail": {
      "type": "string"
     },
     "instance": {
      "type": "string"
     },
     "request_id": {
      "type": "string"
     }
    },
    "required": [
     "type",
     "title",
     "status",
     "instance"
    ],
    "additionalProperties": true
   },
   "Freshness": {
    "type": "object",
    "properties": {
     "fetched_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "stale": {
      "type": "boolean"
     }
    },
    "required": [
     "fetched_at",
     "stale"
    ],
    "additionalProperties": true
   },
   "Meta": {
    "type": "object",
    "properties": {
     "freshness": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/Freshness"
      }
     },
     "notices": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "count": {
      "type": "integer"
     },
     "next_cursor": {
      "type": "string"
     },
     "attribution": {
      "type": "string"
     },
     "topics": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Topic"
      }
     },
     "dates": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    },
    "required": [
     "notices"
    ],
    "additionalProperties": true
   },
   "Links": {
    "type": "object",
    "properties": {
     "self": {
      "type": "string",
      "format": "uri"
     },
     "next": {
      "type": "string",
      "format": "uri"
     }
    },
    "required": [
     "self"
    ],
    "additionalProperties": {
     "type": "string"
    }
   },
   "Topic": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "label": {
      "type": "string"
     },
     "count": {
      "type": "integer"
     }
    },
    "required": [
     "id",
     "label"
    ],
    "additionalProperties": true
   },
   "Entity": {
    "type": "object",
    "properties": {
     "kind": {
      "type": "string"
     },
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "url": {
      "type": "string"
     }
    },
    "required": [
     "name"
    ],
    "additionalProperties": true
   },
   "PhotoSize": {
    "type": "object",
    "properties": {
     "width": {
      "type": "integer"
     },
     "height": {
      "type": "integer"
     },
     "jpeg": {
      "type": "string",
      "format": "uri"
     },
     "webp": {
      "type": "string",
      "format": "uri"
     }
    },
    "required": [
     "width",
     "height",
     "jpeg"
    ],
    "additionalProperties": true
   },
   "Photo": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string",
      "format": "uri"
     },
     "width": {
      "type": "integer"
     },
     "height": {
      "type": "integer"
     },
     "aspect_ratio": {
      "type": "string",
      "const": "16:9"
     },
     "sizes": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PhotoSize"
      }
     },
     "srcset": {
      "type": "string"
     },
     "webp_srcset": {
      "type": "string"
     },
     "focal_point": {
      "type": "object",
      "properties": {
       "x": {
        "type": "number"
       },
       "y": {
        "type": "number"
       }
      },
      "required": [
       "x",
       "y"
      ],
      "additionalProperties": true
     },
     "alt": {
      "type": "string"
     },
     "credit": {
      "type": "string",
      "description": "Show this next to the photo."
     },
     "credit_required": {
      "type": "boolean"
     },
     "artist": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "licence_url": {
      "type": "string"
     },
     "source": {
      "type": "string",
      "enum": [
       "article",
       "commons",
       "neutral"
      ]
     },
     "source_name": {
      "type": "string"
     },
     "source_url": {
      "type": "string"
     }
    },
    "required": [
     "url",
     "width",
     "height",
     "sizes",
     "srcset",
     "alt",
     "credit",
     "credit_required",
     "source",
     "source_name"
    ],
    "additionalProperties": true
   },
   "NewsItem": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "slug": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "api_url": {
      "type": "string",
      "format": "uri"
     },
     "title": {
      "type": "string"
     },
     "headline": {
      "type": "string"
     },
     "dek": {
      "type": "string"
     },
     "topic": {
      "$ref": "#/components/schemas/Topic"
     },
     "publisher": {
      "type": "string"
     },
     "source_url": {
      "type": "string"
     },
     "published_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "language": {
      "type": "string"
     },
     "has_article": {
      "type": "boolean"
     },
     "entities": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Entity"
      }
     },
     "photo": {
      "oneOf": [
       {
        "$ref": "#/components/schemas/Photo"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [
     "id",
     "api_url",
     "title",
     "topic",
     "published_at",
     "updated_at",
     "language",
     "has_article",
     "entities",
     "photo"
    ],
    "additionalProperties": true
   },
   "Source": {
    "type": "object",
    "properties": {
     "news_id": {
      "type": "string"
     },
     "publisher": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "url": {
      "type": "string"
     },
     "published_at": {
      "type": [
       "string",
       "null"
      ]
     },
     "language": {
      "type": "string"
     }
    },
    "required": [
     "publisher",
     "published_at"
    ],
    "additionalProperties": true
   },
   "Article": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "kind": {
      "type": "string",
      "enum": [
       "article",
       "source_page"
      ]
     },
     "canonical_url": {
      "type": "string",
      "format": "uri"
     },
     "indexable": {
      "type": "boolean"
     },
     "language": {
      "type": "string",
      "enum": [
       "en",
       "hi"
      ]
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "label": {
         "type": "string"
        },
        "url": {
         "type": "string"
        },
        "current": {
         "type": "boolean"
        }
       },
       "required": [
        "code",
        "label",
        "url",
        "current"
       ],
       "additionalProperties": true
      }
     },
     "headline": {
      "type": "string"
     },
     "dek": {
      "type": "string"
     },
     "summary": {
      "type": "string"
     },
     "body": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "quote": {
      "oneOf": [
       {
        "type": "object",
        "properties": {
         "text": {
          "type": "string"
         },
         "speaker": {
          "type": "string"
         },
         "publisher": {
          "type": "string"
         }
        },
        "required": [
         "text"
        ],
        "additionalProperties": true
       },
       {
        "type": "null"
       }
      ]
     },
     "byline": {
      "type": "string"
     },
     "published_at": {
      "type": [
       "string",
       "null"
      ]
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ]
     },
     "publisher": {
      "type": "string"
     },
     "source_url": {
      "type": "string"
     },
     "photo": {
      "oneOf": [
       {
        "$ref": "#/components/schemas/Photo"
       },
       {
        "type": "null"
       }
      ]
     },
     "numbers": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "value": {
         "type": "string"
        },
        "label": {
         "type": "string"
        },
        "note": {
         "type": "string"
        }
       },
       "required": [
        "value",
        "label"
       ],
       "additionalProperties": true
      }
     },
     "entities": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Entity"
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Source"
      }
     },
     "lead_source": {
      "oneOf": [
       {
        "$ref": "#/components/schemas/Source"
       },
       {
        "type": "null"
       }
      ]
     },
     "related": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "title": {
         "type": "string"
        },
        "url": {
         "type": "string"
        },
        "api_url": {
         "type": "string"
        },
        "publisher": {
         "type": "string"
        },
        "date": {
         "type": "string"
        }
       },
       "required": [
        "title",
        "url"
       ],
       "additionalProperties": true
      }
     },
     "related_match": {
      "oneOf": [
       {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "detail": {
          "type": "string"
         },
         "url": {
          "type": "string"
         }
        },
        "required": [
         "title",
         "url"
        ],
        "additionalProperties": true
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [
     "id",
     "kind",
     "canonical_url",
     "indexable",
     "language",
     "headline",
     "body",
     "photo",
     "numbers",
     "entities",
     "sources",
     "related"
    ],
    "additionalProperties": true
   },
   "TeamSide": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "short_name": {
      "type": "string"
     },
     "flag": {
      "type": "string"
     },
     "score": {
      "type": "string"
     },
     "overs": {
      "type": "string"
     },
     "score_state": {
      "type": "string",
      "description": "Yet to bat, Not started or Score unavailable, shown instead of a score"
     },
     "batting": {
      "type": "boolean"
     },
     "url": {
      "type": "string"
     }
    },
    "required": [
     "name",
     "batting"
    ],
    "additionalProperties": true
   },
   "MatchStream": {
    "type": "object",
    "properties": {
     "on_air": {
      "type": "boolean"
     },
     "available": {
      "type": "boolean"
     },
     "watch_url": {
      "type": "string"
     }
    },
    "required": [
     "on_air",
     "available"
    ],
    "additionalProperties": true
   },
   "Match": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "api_url": {
      "type": "string",
      "format": "uri"
     },
     "title": {
      "type": "string"
     },
     "series": {
      "type": "object",
      "properties": {
       "id": {
        "type": "string"
       },
       "name": {
        "type": "string"
       },
       "url": {
        "type": "string"
       }
      },
      "required": [
       "id",
       "name",
       "url"
      ],
      "additionalProperties": true
     },
     "format": {
      "type": "string"
     },
     "state": {
      "type": "string",
      "enum": [
       "live",
       "upcoming",
       "finished"
      ]
     },
     "status": {
      "type": "string"
     },
     "status_label": {
      "type": "string"
     },
     "summary": {
      "type": "string"
     },
     "situation": {
      "type": "string"
     },
     "result": {
      "type": "string"
     },
     "toss": {
      "type": "string"
     },
     "venue": {
      "type": "string"
     },
     "start_date": {
      "type": "string",
      "description": "Provider label, unchanged"
     },
     "start_time": {
      "type": "string"
     },
     "start_date_time": {
      "type": "string"
     },
     "day": {
      "type": "string"
     },
     "resumes_at": {
      "type": "string"
     },
     "current_innings": {
      "type": "string"
     },
     "teams": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/TeamSide"
      },
      "minItems": 2,
      "maxItems": 2
     },
     "stream": {
      "$ref": "#/components/schemas/MatchStream"
     }
    },
    "required": [
     "id",
     "url",
     "api_url",
     "series",
     "state",
     "status",
     "status_label",
     "teams",
     "stream"
    ],
    "additionalProperties": true
   },
   "Live": {
    "type": "object",
    "properties": {
     "current_rate": {},
     "required_rate": {},
     "target": {},
     "balls_remaining": {},
     "powerplay": {},
     "last_ball": {},
     "last_ball_over": {},
     "innings_details_unavailable": {},
     "batters": {},
     "bowler": {},
     "partnership": {},
     "last_wicket": {},
     "fall_of_wickets": {},
     "yet_to_bat": {},
     "reviews": {},
     "recent_overs": {},
     "projections": {},
     "previous_innings": {},
     "win_probability": {}
    },
    "required": [
     "innings_details_unavailable",
     "batters",
     "recent_overs"
    ],
    "additionalProperties": true
   },
   "Commentary": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "innings": {
      "type": "string"
     },
     "over": {
      "type": "string"
     },
     "ball": {
      "type": "string"
     },
     "text": {
      "type": "string"
     },
     "runs": {
      "type": "integer"
     },
     "is_four": {
      "type": "boolean"
     },
     "is_six": {
      "type": "boolean"
     },
     "is_wicket": {
      "type": "boolean"
     },
     "is_wide": {
      "type": "boolean"
     },
     "is_no_ball": {
      "type": "boolean"
     },
     "is_milestone": {
      "type": "boolean"
     },
     "is_text": {
      "type": "boolean"
     }
    },
    "required": [
     "id",
     "text",
     "runs"
    ],
    "additionalProperties": true
   },
   "Series": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "type": {
      "type": "string"
     },
     "format": {
      "type": "string"
     },
     "start_date": {
      "type": "string"
     },
     "end_date": {
      "type": "string"
     },
     "dates": {
      "type": "string"
     },
     "status": {
      "type": "string"
     },
     "image": {
      "type": "string"
     },
     "total_matches": {
      "type": "integer"
     },
     "url": {
      "type": "string"
     },
     "api_url": {
      "type": "string"
     }
    },
    "required": [
     "id",
     "name",
     "dates",
     "url",
     "api_url"
    ],
    "additionalProperties": true
   },
   "TeamRanking": {
    "type": "object",
    "properties": {
     "rank": {
      "type": "integer"
     },
     "team_id": {
      "type": "string"
     },
     "team": {
      "type": "string"
     },
     "flag": {
      "type": "string"
     },
     "rating": {
      "type": "integer"
     },
     "points": {
      "type": "integer"
     },
     "url": {
      "type": "string"
     }
    },
    "required": [
     "rank",
     "team",
     "rating"
    ],
    "additionalProperties": true
   },
   "PlayerRanking": {
    "type": "object",
    "properties": {
     "rank": {
      "type": "integer"
     },
     "player_id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "country": {
      "type": "string"
     },
     "image": {
      "type": "string"
     },
     "rating": {
      "type": "integer"
     },
     "url": {
      "type": "string"
     }
    },
    "required": [
     "rank",
     "name",
     "rating"
    ],
    "additionalProperties": true
   },
   "Stream": {
    "type": "object",
    "properties": {
     "match_id": {
      "type": "string"
     },
     "status": {
      "type": "string",
      "enum": [
       "live",
       "off-air",
       "ended",
       "upcoming",
       "disabled"
      ]
     },
     "title": {
      "type": "string"
     },
     "watch_url": {
      "type": "string"
     },
     "playlist": {
      "type": "string"
     },
     "status_url": {
      "type": "string"
     },
     "match": {
      "$ref": "#/components/schemas/Match"
     }
    },
    "required": [
     "match_id",
     "status",
     "match"
    ],
    "additionalProperties": true
   }
  }
 }
}
