{
  "openapi": "3.1.0",
  "info": {
    "title": "APIbenchmarks API",
    "version": "1.0.0",
    "description": "Open, neutral benchmark of developer APIs. No authentication. CORS open. Data licensed CC BY 4.0.",
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    },
    "contact": {
      "email": "corrections@apibenchmarks.com"
    }
  },
  "servers": [
    {
      "url": "https://apibenchmarks.com"
    }
  ],
  "paths": {
    "/api/benchmark.json": {
      "get": {
        "operationId": "getBenchmark",
        "summary": "The complete benchmark: every category and provider with ABI scores, per-dimension breakdowns, pricing, sources, and the methodology.",
        "responses": {
          "200": {
            "description": "The full benchmark dataset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Benchmark"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Benchmark": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "license": {
            "type": "string",
            "format": "uri"
          },
          "open": {
            "type": "boolean"
          },
          "neutral": {
            "type": "boolean"
          },
          "paidPlacement": {
            "type": "boolean"
          },
          "updated": {
            "type": "string",
            "format": "date"
          },
          "methodology": {
            "type": "object"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            }
          }
        }
      },
      "Category": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "apis": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Api"
            }
          }
        }
      },
      "Api": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "abi": {
            "type": "number",
            "description": "APIbenchmarks Index, 0-100"
          },
          "grade": {
            "type": "string",
            "enum": [
              "A",
              "B",
              "C",
              "D"
            ]
          },
          "dimensions": {
            "type": "object"
          },
          "freeTier": {
            "type": "boolean"
          },
          "verified": {
            "type": "string",
            "format": "date"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      }
    }
  }
}