{
 "openapi": "3.0.3",
 "info": {
  "title": "AI Network State Tracker search",
  "version": "1.0.0",
  "description": "Ranked search over a curated directory of network-state, distributed-training, and open-model organizations. All figures are self-reported by the projects named.",
  "contact": {
   "url": "https://clairuth.com/ai-networks/"
  }
 },
 "servers": [
  {
   "url": "https://clairuth.com/ai-networks/ai"
  }
 ],
 "paths": {
  "/search.php": {
   "get": {
    "operationId": "searchTracker",
    "summary": "Search organizations, training runs, and source items",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "psyche"
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "all",
        "org",
        "run",
        "feed"
       ],
       "default": "all"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Ranked results",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "query": {
           "type": "string"
          },
          "type": {
           "type": "string"
          },
          "count": {
           "type": "integer"
          },
          "generated": {
           "type": "string"
          },
          "results": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "type": {
              "type": "string"
             },
             "score": {
              "type": "integer"
             },
             "title": {
              "type": "string"
             },
             "url": {
              "type": "string"
             },
             "summary": {
              "type": "string"
             }
            }
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/organizations.json": {
   "get": {
    "operationId": "listOrganizations",
    "summary": "All tracked organizations",
    "responses": {
     "200": {
      "description": "JSON list"
     }
    }
   }
  },
  "/runs.json": {
   "get": {
    "operationId": "listRuns",
    "summary": "All tracked distributed training runs",
    "responses": {
     "200": {
      "description": "JSON list"
     }
    }
   }
  },
  "/feed.json": {
   "get": {
    "operationId": "listFeed",
    "summary": "Harvested source items",
    "responses": {
     "200": {
      "description": "JSON list"
     }
    }
   }
  }
 }
}