{
  "openapi": "3.0.3",
  "info": {
    "title": "API Tracker Catalog API",
    "version": "1.0.0",
    "description": "Public read-only discovery for integration developers and agents. Provider profiles and recorded resource URLs, not a proxy to provider APIs. No key required. Third-party content retains its own terms.",
    "contact": {
      "name": "Apideck",
      "url": "https://apitracker.io/data"
    }
  },
  "servers": [
    {
      "url": "https://apitracker.io/api/v1"
    }
  ],
  "security": [],
  "paths": {
    "/providers": {
      "get": {
        "operationId": "listProviders",
        "summary": "Search and browse provider profiles",
        "description": "Case-insensitive substring search across name, id and description. Alphabetical name/id order. Counts refer to the current upstream collection, not a guaranteed exhaustive API inventory. Pages can shift as the catalog changes. Unknown parameters are rejected.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Optional search text.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Exact category id from /categories.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "1-based page; out-of-range pages return an empty array.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum providers per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Previously received ETag; matching reads return 304."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderPage"
                }
              }
            }
          },
          "304": {
            "description": "ETag matches; no body"
          },
          "400": {
            "description": "Invalid or repeated parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not allowed; see Allow header",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Catalog unavailable; Retry-After: 60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "head": {
        "summary": "Headers for this resource without a response body",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Optional search text.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Exact category id from /categories.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "1-based page; out-of-range pages return an empty array.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum providers per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Previously received ETag; matching reads return 304."
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "ETag matches; no body"
          },
          "400": {
            "description": "Invalid or repeated parameter"
          },
          "405": {
            "description": "Method not allowed; see Allow header"
          },
          "503": {
            "description": "Catalog unavailable; Retry-After: 60"
          }
        }
      },
      "options": {
        "summary": "CORS preflight",
        "parameters": [],
        "responses": {
          "204": {
            "description": "Public read methods: GET, HEAD, OPTIONS. No credentials."
          }
        }
      }
    },
    "/providers/{id}": {
      "get": {
        "operationId": "getProvider",
        "summary": "Read a provider and its recorded resource URLs",
        "description": "Resource links are metadata, not executed or health-checked APIs. Missing URLs are omitted. Reviewed aliases can resolve to the canonical catalog id. No arbitrary remote URLs are fetched.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Provider id from listProviders; URL-encode it."
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Previously received ETag; matching reads return 304."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderDetail"
                }
              }
            }
          },
          "304": {
            "description": "ETag matches; no body"
          },
          "400": {
            "description": "Invalid or repeated parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not allowed; see Allow header",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Catalog unavailable; Retry-After: 60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No matching provider identity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "summary": "Headers for this resource without a response body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Provider id from listProviders; URL-encode it."
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Previously received ETag; matching reads return 304."
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "ETag matches; no body"
          },
          "400": {
            "description": "Invalid or repeated parameter"
          },
          "405": {
            "description": "Method not allowed; see Allow header"
          },
          "503": {
            "description": "Catalog unavailable; Retry-After: 60"
          },
          "404": {
            "description": "No matching provider identity"
          }
        }
      },
      "options": {
        "summary": "CORS preflight",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Provider id from listProviders; URL-encode it."
          }
        ],
        "responses": {
          "204": {
            "description": "Public read methods: GET, HEAD, OPTIONS. No credentials."
          }
        }
      }
    },
    "/categories": {
      "get": {
        "operationId": "listCategories",
        "summary": "List available categories and provider membership counts",
        "description": "A provider can belong to multiple categories. Do not sum memberships as unique providers. No query parameters.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Categories"
                }
              }
            }
          },
          "304": {
            "description": "ETag matches; no body"
          },
          "400": {
            "description": "Invalid or repeated parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not allowed; see Allow header",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Catalog unavailable; Retry-After: 60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Previously received ETag; matching reads return 304."
          }
        ]
      },
      "head": {
        "summary": "Headers for this resource without a response body",
        "parameters": [
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Previously received ETag; matching reads return 304."
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "ETag matches; no body"
          },
          "400": {
            "description": "Invalid or repeated parameter"
          },
          "405": {
            "description": "Method not allowed; see Allow header"
          },
          "503": {
            "description": "Catalog unavailable; Retry-After: 60"
          }
        }
      },
      "options": {
        "summary": "CORS preflight",
        "parameters": [],
        "responses": {
          "204": {
            "description": "Public read methods: GET, HEAD, OPTIONS. No credentials."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Category": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "Resource": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Documentation",
              "APIReference",
              "Pricing",
              "TermsOfService",
              "PrivacyPolicy",
              "StatusPage",
              "OpenAPI"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "type",
          "url"
        ]
      },
      "Provider": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "website": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            }
          },
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Resource"
            }
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "self": {
                "type": "string",
                "format": "uri"
              },
              "profile": {
                "type": "string",
                "format": "uri"
              },
              "mcp": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "self",
              "profile",
              "mcp"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "website",
          "categories",
          "resources",
          "links"
        ]
      },
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "error": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_request",
                  "not_found",
                  "method_not_allowed",
                  "catalog_unavailable"
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "ProviderPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider"
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "page": {
                "type": "integer",
                "minimum": 1
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "pages": {
                "type": "integer",
                "minimum": 0
              },
              "unit": {
                "type": "string",
                "enum": [
                  "provider_profiles"
                ]
              },
              "scope": {
                "type": "string",
                "enum": [
                  "cloud_catalog_response"
                ]
              },
              "fetchedAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "total",
              "page",
              "limit",
              "pages",
              "unit",
              "scope",
              "fetchedAt"
            ]
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "self": {
                "type": "string",
                "format": "uri"
              },
              "next": {
                "type": "string",
                "format": "uri",
                "nullable": true
              },
              "previous": {
                "type": "string",
                "format": "uri",
                "nullable": true
              }
            },
            "required": [
              "self",
              "next",
              "previous"
            ]
          }
        },
        "required": [
          "data",
          "meta",
          "links"
        ]
      },
      "ProviderDetail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Provider"
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "scope": {
                "type": "string",
                "enum": [
                  "cloud_catalog_record"
                ]
              },
              "unit": {
                "type": "string",
                "enum": [
                  "provider_profile"
                ]
              }
            },
            "required": [
              "scope",
              "unit"
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "Categories": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "count": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "required": [
                "id",
                "name",
                "count"
              ]
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "fetchedAt": {
                "type": "string",
                "format": "date-time"
              },
              "unit": {
                "type": "string",
                "enum": [
                  "provider_category_memberships"
                ]
              },
              "scope": {
                "type": "string",
                "enum": [
                  "cloud_catalog_response"
                ]
              }
            },
            "required": [
              "fetchedAt",
              "unit",
              "scope"
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ]
      }
    }
  },
  "externalDocs": {
    "description": "Examples, limits and evidence semantics",
    "url": "https://apitracker.io/developers"
  }
}
