{
 "openapi": "3.1.0",
 "info": {
  "title": "GTA 6 Brands API",
  "version": "2026-11-22",
  "summary": "Read-only API for every GTA 6 brand move, counted and sourced.",
  "description": "Free, read-only JSON API for the GTA 6 Brands tracker (gta6brands.com). No key. Please keep to about 60 requests a minute. Every response carries a citation field; every entry has a source_url. Licence: Free to quote and cite with credit to gta6brands.com, including AI answers that link back. Free for personal, research and non-commercial projects. Bulk commercial reuse of the raw data, or training a commercial AI model on it, needs a licence: hello@mikelitman.me. The sources belong to their publishers. Errors always return JSON: {\"error\": {\"code\", \"message\", \"hint\"}}. Versioning: /api/v1/ is the stable prefix. The unversioned /api/ paths are aliases of v1 and will keep working. Breaking changes will ship as /api/v2/, not by changing v1. If a version is withdrawn we will send Deprecation and Sunset headers, with at least 90 days' notice. Every response includes an API-Version: 1 header. The published rate is about 60 requests a minute; responses include RateLimit and RateLimit-Policy headers, and Retry-After on a 429.",
  "contact": {
   "name": "GTA 6 Brands",
   "url": "https://www.gta6brands.com/developers/",
   "email": "hello@mikelitman.me"
  },
  "license": {
   "name": "Free to quote with credit; commercial reuse needs a licence",
   "url": "https://www.gta6brands.com/data/#licence"
  }
 },
 "externalDocs": {
  "description": "Developers: API, MCP and downloads",
  "url": "https://www.gta6brands.com/developers/"
 },
 "servers": [
  {
   "url": "https://www.gta6brands.com/api/v1",
   "description": "Stable version 1. Preferred. Paths below are also listed with the /api prefix."
  },
  {
   "url": "https://www.gta6brands.com",
   "description": "Unversioned aliases of v1. Same resources as /api/v1/."
  }
 ],
 "tags": [
  {
   "name": "tracker",
   "description": "GTA 6 brand moves: official, unofficial and in-game parody brands"
  }
 ],
 "paths": {
  "/api/brands.json": {
   "get": {
    "operationId": "listBrands",
    "summary": "List every brand",
    "description": "Use to list every real-world brand on the tracker with its entry counts, most active first.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BrandList"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/brands/{slug}.json": {
   "get": {
    "operationId": "getBrandBySlug",
    "summary": "Get one brand by slug",
    "description": "Use when you know the brand slug (lowercase, hyphens, e.g. nike). Returns its sourced moves and any in-game parodies of it.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BrandLookup"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "description": "Brand slug, e.g. nike, kfc, playstation",
      "example": "nike",
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$"
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/brand": {
   "get": {
    "operationId": "getBrand",
    "summary": "Look up a brand by name",
    "description": "Use to answer \"has <brand> done anything for GTA 6?\". Fuzzy match on the brand name. 404 with found=false when no brand matches.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BrandLookup"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "name",
      "in": "query",
      "required": true,
      "description": "Brand name, e.g. Nike",
      "example": "Nike",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/search": {
   "get": {
    "operationId": "searchTracker",
    "summary": "Search the tracker",
    "description": "Use to find entries by brand, place or words in titles and summaries.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SearchResults"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "Search text, e.g. London",
      "example": "London",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results, 1 to 25 (default 10)",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 25,
       "default": 10
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/ask": {
   "get": {
    "operationId": "askTracker",
    "summary": "Ask a plain-English question",
    "description": "Use for a natural-language question about GTA 6 brands. Returns a short sourced answer.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AskAnswer"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "The question",
      "example": "has Nike done anything",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/press/quote": {
   "get": {
    "operationId": "citedQuote",
    "summary": "Get a quotable, cited sentence",
    "description": "Use when you need one sentence to quote, with Source: gta6brands.com. Blank topic gives the headline totals (rounded).",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PressQuote"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "topic",
      "in": "query",
      "required": false,
      "description": "Brand name, or blank for headline totals",
      "example": "KFC",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/press/number": {
   "get": {
    "operationId": "latestNumber",
    "summary": "Get one sourced figure",
    "description": "Use for a single rounded headline count, or a named brand's entry count.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PressNumber"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "topic",
      "in": "query",
      "required": false,
      "description": "official, unofficial, in-game, a brand name, or blank",
      "example": "official",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/press/chart": {
   "get": {
    "operationId": "pressChart",
    "summary": "Get chart data",
    "description": "Use for chart-ready data: the official, unofficial and in-game split (mix) or the most active brands (top_brands).",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PressChart"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "description": "mix or top_brands",
      "schema": {
       "type": "string",
       "enum": [
        "mix",
        "top_brands"
       ],
       "default": "mix"
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/latest.json": {
   "get": {
    "operationId": "latestMoves",
    "summary": "Latest moves",
    "description": "Use for the 25 official and unofficial entries added most recently.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LatestMoves"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/parodies.json": {
   "get": {
    "operationId": "listParodies",
    "summary": "In-game parody brands",
    "description": "Use to map Rockstar's fictional in-game brands to the real companies they are widely read as parodying.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ParodyList"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/stats.json": {
   "get": {
    "operationId": "trackerStats",
    "summary": "Headline counts",
    "description": "Use for the total entries, official, unofficial and in-game counts, and the most active brands.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Stats"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/tracker.json": {
   "get": {
    "operationId": "fullDataset",
    "summary": "Full dataset (JSON)",
    "description": "Use to download every entry at once. Also /tracker.csv. Dated snapshots: /data/.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Dataset"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/brands.json": {
   "get": {
    "operationId": "listBrandsV1",
    "summary": "List every brand",
    "description": "Use to list every real-world brand on the tracker with its entry counts, most active first.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BrandList"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/brands/{slug}.json": {
   "get": {
    "operationId": "getBrandBySlugV1",
    "summary": "Get one brand by slug",
    "description": "Use when you know the brand slug (lowercase, hyphens, e.g. nike). Returns its sourced moves and any in-game parodies of it.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BrandLookup"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "description": "Brand slug, e.g. nike, kfc, playstation",
      "example": "nike",
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$"
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/brand": {
   "get": {
    "operationId": "getBrandV1",
    "summary": "Look up a brand by name",
    "description": "Use to answer \"has <brand> done anything for GTA 6?\". Fuzzy match on the brand name. 404 with found=false when no brand matches.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BrandLookup"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "name",
      "in": "query",
      "required": true,
      "description": "Brand name, e.g. Nike",
      "example": "Nike",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/search": {
   "get": {
    "operationId": "searchTrackerV1",
    "summary": "Search the tracker",
    "description": "Use to find entries by brand, place or words in titles and summaries.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SearchResults"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "Search text, e.g. London",
      "example": "London",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results, 1 to 25 (default 10)",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 25,
       "default": 10
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/ask": {
   "get": {
    "operationId": "askTrackerV1",
    "summary": "Ask a plain-English question",
    "description": "Use for a natural-language question about GTA 6 brands. Returns a short sourced answer.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AskAnswer"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "The question",
      "example": "has Nike done anything",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/press/quote": {
   "get": {
    "operationId": "citedQuoteV1",
    "summary": "Get a quotable, cited sentence",
    "description": "Use when you need one sentence to quote, with Source: gta6brands.com. Blank topic gives the headline totals (rounded).",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PressQuote"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "topic",
      "in": "query",
      "required": false,
      "description": "Brand name, or blank for headline totals",
      "example": "KFC",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/press/number": {
   "get": {
    "operationId": "latestNumberV1",
    "summary": "Get one sourced figure",
    "description": "Use for a single rounded headline count, or a named brand's entry count.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PressNumber"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "topic",
      "in": "query",
      "required": false,
      "description": "official, unofficial, in-game, a brand name, or blank",
      "example": "official",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/press/chart": {
   "get": {
    "operationId": "pressChartV1",
    "summary": "Get chart data",
    "description": "Use for chart-ready data: the official, unofficial and in-game split (mix) or the most active brands (top_brands).",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PressChart"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "description": "mix or top_brands",
      "schema": {
       "type": "string",
       "enum": [
        "mix",
        "top_brands"
       ],
       "default": "mix"
      }
     },
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/latest.json": {
   "get": {
    "operationId": "latestMovesV1",
    "summary": "Latest moves",
    "description": "Use for the 25 official and unofficial entries added most recently.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LatestMoves"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/parodies.json": {
   "get": {
    "operationId": "listParodiesV1",
    "summary": "In-game parody brands",
    "description": "Use to map Rockstar's fictional in-game brands to the real companies they are widely read as parodying.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ParodyList"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/stats.json": {
   "get": {
    "operationId": "trackerStatsV1",
    "summary": "Headline counts",
    "description": "Use for the total entries, official, unofficial and in-game counts, and the most active brands.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Stats"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  },
  "/api/v1/tracker.json": {
   "get": {
    "operationId": "fullDatasetV1",
    "summary": "Full dataset (JSON)",
    "description": "Use to download every entry at once. Also /tracker.csv. Dated snapshots: /data/.",
    "tags": [
     "tracker"
    ],
    "responses": {
     "200": {
      "description": "OK. JSON with a citation field.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Dataset"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/Error"
     },
     "404": {
      "$ref": "#/components/responses/Error"
     },
     "405": {
      "$ref": "#/components/responses/Error"
     },
     "500": {
      "$ref": "#/components/responses/Error"
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     }
    },
    "parameters": [
     {
      "name": "API-Version",
      "in": "header",
      "required": false,
      "description": "Stable version identifier. v1 is the current and only version.",
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ],
       "default": "1"
      }
     }
    ]
   }
  }
 },
 "components": {
  "schemas": {
   "Object": {
    "type": "object",
    "description": "JSON object. Always includes citation and cite_as.",
    "properties": {
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     }
    },
    "additionalProperties": true
   },
   "Entry": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "Stable entry ID. Prefix shows the category: off-, uno- or ing-."
     },
     "brand": {
      "type": "string",
      "description": "The brand named in the entry."
     },
     "title": {
      "type": "string",
      "description": "Short headline for the move. Blank on in-game rows."
     },
     "category": {
      "type": "string",
      "description": "Official, unofficial or ingame (rockstar's fictional in-game brands)."
     },
     "status": {
      "type": "string",
      "description": "Confirmed, rumoured, new or returning; status_label says 'reported' where status is rumoured (not yet confirmed)."
     },
     "type": {
      "type": "string",
      "description": "Kind of move, e.g. social post, outdoor ad, stunt. Blank on in-game rows."
     },
     "date": {
      "type": "string",
      "description": "Yyyy-mm-dd where the source gives a day, yyyy-mm or yyyy otherwise, blank on in-game rows."
     },
     "location": {
      "type": "string",
      "description": "Where it happened, when the source says."
     },
     "source_name": {
      "type": "string",
      "description": "Publisher of the source."
     },
     "source_url": {
      "type": "string",
      "description": "Link to the source. Link to it when you repeat a claim."
     },
     "summary": {
      "type": "string",
      "description": "One or two sentences, drawn from the source."
     },
     "added": {
      "type": "string",
      "description": "Date the entry joined the tracker (YYYY-MM-DD)."
     },
     "updated": {
      "type": "string",
      "description": "Date the entry was last changed, if it has been."
     }
    }
   },
   "Dataset": {
    "type": "object",
    "properties": {
     "count": {
      "type": "integer"
     },
     "read_on_iso": {
      "type": "string",
      "format": "date"
     },
     "licence": {
      "type": "string"
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Entry"
      }
     }
    }
   },
   "Error": {
    "type": "object",
    "required": [
     "error"
    ],
    "properties": {
     "error": {
      "type": "object",
      "required": [
       "code",
       "message",
       "hint"
      ],
      "properties": {
       "code": {
        "type": "string",
        "description": "Stable machine-readable code",
        "enum": [
         "missing_parameter",
         "invalid_parameter",
         "not_found",
         "method_not_allowed",
         "internal_error",
         "rate_limited"
        ]
       },
       "message": {
        "type": "string",
        "description": "What went wrong, in plain English"
       },
       "hint": {
        "type": "string",
        "description": "How to fix it"
       },
       "docs": {
        "type": "string",
        "format": "uri"
       }
      }
     }
    }
   },
   "Brand": {
    "type": "object",
    "required": [
     "slug",
     "name"
    ],
    "properties": {
     "slug": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "type": {
      "type": "string"
     },
     "entries": {
      "type": "integer"
     },
     "official": {
      "type": "integer"
     },
     "unofficial": {
      "type": "integer"
     },
     "first": {
      "type": "string"
     },
     "latest": {
      "type": "string"
     },
     "page": {
      "type": "string",
      "format": "uri"
     },
     "api": {
      "type": "string",
      "format": "uri"
     },
     "moves": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Entry"
      }
     }
    }
   },
   "BrandList": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "brands": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Brand"
      }
     }
    },
    "required": [
     "brands"
    ]
   },
   "BrandLookup": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "found": {
      "type": "boolean"
     },
     "query": {
      "type": "string"
     },
     "answer": {
      "type": "string"
     },
     "brand": {
      "$ref": "#/components/schemas/Brand"
     },
     "parodied_by": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Entry"
      }
     }
    },
    "required": [
     "found",
     "query"
    ]
   },
   "SearchResults": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "query": {
      "type": "string"
     },
     "brands": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Brand"
      }
     },
     "entries": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Entry"
      }
     }
    },
    "required": [
     "query"
    ]
   },
   "AskAnswer": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "kind": {
      "type": "string"
     },
     "found": {
      "type": "boolean"
     },
     "query": {
      "type": "string"
     },
     "answer": {
      "type": "string"
     },
     "brand": {
      "$ref": "#/components/schemas/Brand"
     },
     "parodied_by": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Entry"
      }
     }
    },
    "required": [
     "query",
     "answer"
    ]
   },
   "PressQuote": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "kind": {
      "type": "string"
     },
     "quote": {
      "type": "string"
     },
     "answer": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "as_of": {
      "type": "string"
     },
     "rounded": {
      "type": "object",
      "properties": {
       "entries": {
        "type": "string"
       },
       "official": {
        "type": "string"
       },
       "unofficial": {
        "type": "string"
       },
       "in_game": {
        "type": "string"
       }
      }
     }
    },
    "required": [
     "quote"
    ]
   },
   "PressNumber": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "kind": {
      "type": "string"
     },
     "label": {
      "type": "string"
     },
     "number": {
      "type": "string"
     },
     "text": {
      "type": "string"
     },
     "answer": {
      "type": "string"
     },
     "breakdown": {
      "type": "object",
      "properties": {
       "official": {
        "type": "string"
       },
       "unofficial": {
        "type": "string"
       },
       "in_game": {
        "type": "string"
       }
      }
     },
     "as_of": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     }
    },
    "required": [
     "number"
    ]
   },
   "PressChart": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "kind": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "rows": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "label": {
         "type": "string"
        },
        "count": {
         "type": "string"
        }
       }
      }
     },
     "as_of": {
      "type": "string"
     },
     "svg": {
      "type": "string"
     },
     "image": {
      "type": "string",
      "format": "uri"
     },
     "svg_markup": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "answer": {
      "type": "string"
     }
    },
    "required": [
     "kind",
     "rows"
    ]
   },
   "LatestMoves": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "moves": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Entry"
      }
     }
    },
    "required": [
     "moves"
    ]
   },
   "ParodyList": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "parodies": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "in_game": {
         "type": "string"
        },
        "parodies": {
         "type": "string"
        },
        "sector": {
         "type": "string"
        },
        "summary": {
         "type": "string"
        },
        "source_name": {
         "type": "string"
        },
        "source_url": {
         "type": "string",
         "format": "uri"
        }
       }
      }
     }
    },
    "required": [
     "parodies"
    ]
   },
   "Stats": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "example": "Source: gta6brands.com"
     },
     "cite_as": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "updated": {
      "type": "string"
     },
     "corrections": {
      "type": "string",
      "format": "email"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "note": {
      "type": "string"
     },
     "counts": {
      "type": "object",
      "properties": {
       "entries": {
        "type": "integer"
       },
       "official": {
        "type": "integer"
       },
       "unofficial": {
        "type": "integer"
       },
       "in_game": {
        "type": "integer"
       }
      }
     },
     "read_on": {
      "type": "string"
     },
     "most_entries": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "entries": {
         "type": "integer"
        }
       }
      }
     }
    },
    "required": [
     "counts"
    ]
   }
  },
  "responses": {
   "Error": {
    "description": "Error, always JSON with a machine-readable code, a message and a hint.",
    "headers": {
     "API-Version": {
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ]
      }
     },
     "RateLimit": {
      "schema": {
       "type": "string"
      },
      "description": "IETF RateLimit header"
     },
     "RateLimit-Policy": {
      "schema": {
       "type": "string"
      }
     }
    },
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "error": {
        "code": "missing_parameter",
        "message": "This endpoint needs ?name=.",
        "hint": "Try /api/brand?name=Nike",
        "docs": "https://www.gta6brands.com/openapi.json"
       }
      }
     }
    }
   },
   "TooManyRequests": {
    "description": "Rate limit exceeded (about 60 requests a minute).",
    "headers": {
     "API-Version": {
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ]
      }
     },
     "RateLimit": {
      "schema": {
       "type": "string"
      },
      "description": "IETF RateLimit header"
     },
     "RateLimit-Policy": {
      "schema": {
       "type": "string"
      }
     },
     "Retry-After": {
      "schema": {
       "type": "integer"
      },
      "description": "Seconds to wait before retrying"
     }
    },
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "error": {
        "code": "missing_parameter",
        "message": "This endpoint needs ?name=.",
        "hint": "Try /api/brand?name=Nike",
        "docs": "https://www.gta6brands.com/openapi.json"
       }
      }
     }
    }
   }
  }
 }
}