{
  "openapi": "3.1.0",
  "info": {
    "title": "百付 GEO 公开内容 API",
    "version": "1.1.0",
    "description": "只读公开服务、文章与专题资料。无需认证，不接收表单或个人信息。内容使用范围见 AI 访问政策。",
    "termsOfService": "https://baifu.23geo.com/ai-access"
  },
  "servers": [
    {
      "url": "https://baifu.23geo.com"
    }
  ],
  "security": [],
  "paths": {
    "/api/content": {
      "get": {
        "operationId": "listContent",
        "summary": "列出公开服务、文章与专题",
        "responses": {
          "200": {
            "description": "全部公开内容摘要",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "site",
                    "updatedAt",
                    "count",
                    "policyUrl",
                    "items"
                  ],
                  "properties": {
                    "site": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "policyUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContentSummary"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/content/{slug}": {
      "get": {
        "operationId": "getContent",
        "summary": "获取一篇服务、文章或专题的完整资料",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "从内容目录获得的标识。不存在的标识返回 404。",
            "schema": {
              "type": "string"
            },
            "examples": {
              "service": {
                "value": "brand-audit"
              },
              "article": {
                "value": "geo-basics"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "完整内容与规范地址",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ServiceRecord"
                    },
                    {
                      "$ref": "#/components/schemas/ArticleRecord"
                    },
                    {
                      "$ref": "#/components/schemas/GuideRecord"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "内容不存在",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "const": "not_found",
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ContentSummary": {
        "type": "object",
        "required": [
          "kind",
          "slug",
          "title",
          "description",
          "url",
          "markdownUrl",
          "updatedAt"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "service",
              "article",
              "guide"
            ]
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          },
          "updatedAt": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "ServiceRecord": {
        "type": "object",
        "required": [
          "kind",
          "slug",
          "title",
          "description",
          "url",
          "markdownUrl",
          "updatedAt",
          "content"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "const": "service"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          },
          "updatedAt": {
            "type": "string",
            "format": "date"
          },
          "content": {
            "$ref": "#/components/schemas/Service"
          }
        }
      },
      "ArticleRecord": {
        "type": "object",
        "required": [
          "kind",
          "slug",
          "title",
          "description",
          "url",
          "markdownUrl",
          "updatedAt",
          "content"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "const": "article"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          },
          "updatedAt": {
            "type": "string",
            "format": "date"
          },
          "content": {
            "$ref": "#/components/schemas/Article"
          }
        }
      },
      "GuideRecord": {
        "type": "object",
        "required": [
          "kind",
          "slug",
          "title",
          "description",
          "url",
          "markdownUrl",
          "updatedAt",
          "content"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "const": "guide"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          },
          "updatedAt": {
            "type": "string",
            "format": "date"
          },
          "content": {
            "$ref": "#/components/schemas/Guide"
          }
        }
      },
      "Guide": {
        "type": "object",
        "required": [
          "slug",
          "title",
          "eyebrow",
          "description",
          "lead",
          "sections"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "eyebrow": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "lead": {
            "type": "string"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "paragraphs"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "paragraphs": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "bullets": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "table": {
                  "type": "object",
                  "required": [
                    "columns",
                    "rows"
                  ],
                  "properties": {
                    "columns": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "links": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "label",
                "href"
              ],
              "properties": {
                "label": {
                  "type": "string"
                },
                "href": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "downloads": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "label",
                "href",
                "description"
              ],
              "properties": {
                "label": {
                  "type": "string"
                },
                "href": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Service": {
        "type": "object",
        "required": [
          "slug",
          "number",
          "title",
          "shortTitle",
          "description",
          "deliverables",
          "steps",
          "faq",
          "relatedArticles"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "shortTitle": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "audience": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "preparation": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "acceptance": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "deliverables": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "body"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "body": {
                  "type": "string"
                }
              }
            }
          },
          "faq": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "question",
                "answer"
              ],
              "properties": {
                "question": {
                  "type": "string"
                },
                "answer": {
                  "type": "string"
                }
              }
            }
          },
          "relatedArticles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Article": {
        "type": "object",
        "required": [
          "slug",
          "category",
          "title",
          "summary",
          "readingMinutes",
          "updatedAt",
          "sections",
          "sources"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "takeaways": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "readingMinutes": {
            "type": "integer",
            "minimum": 1
          },
          "updatedAt": {
            "type": "string",
            "format": "date"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "paragraphs"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "paragraphs": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "bullets": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "table": {
                  "type": "object",
                  "required": [
                    "columns",
                    "rows"
                  ],
                  "properties": {
                    "columns": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "url"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-content-slugs": [
    "brand-audit",
    "content-engine",
    "ai-friendly-website",
    "visibility-tracking",
    "geo-basics",
    "doubao-measurement",
    "crawlable-website",
    "llms-txt-guide",
    "content-evidence",
    "geo-metrics",
    "geo-provider-selection",
    "doubao-geo-workflow",
    "geo-project-acceptance",
    "brand-fact-sheet",
    "doubao-geo",
    "methodology",
    "evidence",
    "resources",
    "about",
    "contact"
  ]
}
