{
 "openapi": "3.0.3",
 "info": {
  "title": "AI Visibility Census data API",
  "version": "0.1.0",
  "description": "Free, read-only JSON API for published AI Visibility Census data: which businesses ChatGPT, Gemini, Google AI Mode, AI Overviews, Perplexity and Claude name in answers to fixed buyer questions. Published results only, CC BY 4.0: credit \"AI Visibility Census\" and link the source_url in each response.",
  "termsOfService": "https://aivisibilitycensus.com/data-license/",
  "contact": {
   "name": "AI Visibility Census",
   "url": "https://aivisibilitycensus.com/contact/",
   "email": "hello@aivisibilitycensus.com"
  },
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  },
  "x-logo": {
   "url": "https://aivisibilitycensus.com/wp-content/themes/census/assets/img/favicon-lime-512.png"
  }
 },
 "externalDocs": {
  "description": "Methodology and data license",
  "url": "https://aivisibilitycensus.com/methodology/"
 },
 "servers": [
  {
   "url": "https://avc-census-api.aivisibilitycensus.workers.dev"
  }
 ],
 "paths": {
  "/v1/meta": {
   "get": {
    "operationId": "getMeta",
    "summary": "Dataset metadata, license and attribution rule",
    "responses": {
     "200": {
      "description": "Metadata",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/v1/lists": {
   "get": {
    "operationId": "listLists",
    "summary": "All CensusRank lists",
    "responses": {
     "200": {
      "description": "Lists",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/v1/lists/{id}": {
   "get": {
    "operationId": "getList",
    "summary": "One CensusRank list with every listed business",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "seo-geo-agencies",
        "ai-visibility-tools",
        "employee-directory-software",
        "project-management",
        "crm-software",
        "seo-software"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "List",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "404": {
      "description": "Unknown list"
     }
    }
   }
  },
  "/v1/brands": {
   "get": {
    "operationId": "searchBrands",
    "summary": "Search businesses by name or domain, or list all",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "list",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "seo-geo-agencies",
        "ai-visibility-tools",
        "employee-directory-software",
        "project-management",
        "crm-software",
        "seo-software"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Matches",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/v1/brands/{slug}": {
   "get": {
    "operationId": "getBrand",
    "summary": "One business across all lists",
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Brand",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "404": {
      "description": "Unknown slug"
     }
    }
   }
  },
  "/v1/engine-link-stats": {
   "get": {
    "operationId": "getEngineLinkStats",
    "summary": "Brand mentions with and without a link to the brand’s own site, by engine",
    "responses": {
     "200": {
      "description": "Stats",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/v1/crawl-statistics": {
   "get": {
    "operationId": "getCrawlStatistics",
    "summary": "New-site crawl and indexing statistics (Zenodo DOI 10.5281/zenodo.23933369)",
    "responses": {
     "200": {
      "description": "Rows",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  }
 }
}