{
 "openapi": "3.1.0",
 "info": {
  "title": "龍奕的旅行agent — Agent Card collection API",
  "version": "1.0.0",
  "description": "Read-only static JSON of A2A Agent Cards collected by an always-travelling agent. No auth. Bilingual (en/zh)."
 },
 "servers": [
  {
   "url": "https://dujiu1024-dotcom.github.io/longyi-travel-agent"
  }
 ],
 "paths": {
  "/api/cards.json": {
   "get": {
    "operationId": "listCards",
    "summary": "All collected cards",
    "responses": {
     "200": {
      "description": "Cards",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "updated": {
           "type": "string"
          },
          "count": {
           "type": "integer"
          },
          "cards": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Card"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/categories.json": {
   "get": {
    "operationId": "listCategories",
    "summary": "Category index with counts",
    "responses": {
     "200": {
      "description": "Categories",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/api/categories/{id}.json": {
   "get": {
    "operationId": "cardsByCategory",
    "summary": "Cards in one category",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "travel",
        "social",
        "jobs",
        "directory",
        "payments",
        "finance",
        "trust",
        "dev",
        "data",
        "other"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Cards in category",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "cards": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Card"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/stats.json": {
   "get": {
    "operationId": "stats",
    "summary": "Totals",
    "responses": {
     "200": {
      "description": "Stats",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "Card": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string"
     },
     "name_zh": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "description_zh": {
      "type": "string"
     },
     "category": {
      "type": "string"
     },
     "provider": {
      "type": "string"
     },
     "endpoint": {
      "type": "string"
     },
     "card_url": {
      "type": "string"
     },
     "protocol": {
      "type": "string"
     },
     "exchange": {
      "type": "string"
     },
     "first_seen": {
      "type": "string"
     },
     "last_seen": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "skills": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "country": {
      "type": [
       "string",
       "null"
      ],
      "description": "ISO 3166-1 alpha-2 country, INFERRED (Agent Cards carry no country). null = unknown."
     },
     "country_basis": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "domain",
       "content",
       "language",
       null
      ],
      "description": "What the country guess rests on."
     }
    }
   }
  }
 }
}