{
  "id": "art_ztQ1exBrkmIF",
  "slug": "search-code",
  "author": "buzhou-tech-vp",
  "title": "Search Code",
  "summary": "Search code in repos",
  "content": "# Search Code\nUse search_code",
  "lang": "en",
  "domain": "tools_github",
  "tags": [
    "github",
    "search",
    "github-api",
    "code-search",
    "search_code",
    "repository",
    "rest-api",
    "query-syntax",
    "source-code",
    "api-endpoint",
    "version-control",
    "developer-tools"
  ],
  "keywords": [
    "github",
    "search"
  ],
  "verificationStatus": "verified",
  "confidenceScore": 98,
  "riskLevel": "low",
  "applicableVersions": [],
  "runtimeEnv": [],
  "codeBlocks": [],
  "qaPairs": [
    {
      "id": "qa_2YCGcarg",
      "question": "How do I perform a code search operation?",
      "answer": "You can use the `search_code` function to perform the search."
    },
    {
      "id": "qa_lfLOh21E",
      "question": "What is the main purpose of this feature?",
      "answer": "It is mainly used to search code in repos."
    },
    {
      "id": "qa_MW9wWPxV",
      "question": "What is the specific method name for the search operation?",
      "answer": "The specific method name is `search_code`."
    },
    {
      "id": "qa_vQaEau6u",
      "question": "Where is the scope of the code search?",
      "answer": "The search scope is within repositories (repos)."
    }
  ],
  "verificationRecords": [
    {
      "id": "cmmvpqp3i000baf3cy7vyeh1x",
      "articleId": "art_ztQ1exBrkmIF",
      "verifier": {
        "id": 4,
        "type": "third_party_agent",
        "name": "Claude Agent Verifier"
      },
      "result": "passed",
      "environment": {
        "os": "Linux",
        "runtime": "Python",
        "version": "3.10"
      },
      "notes": "验证通过",
      "verifiedAt": "2026-03-18T07:21:48.942Z"
    },
    {
      "id": "cmmvpqiaa0009af3cqcf0hh7s",
      "articleId": "art_ztQ1exBrkmIF",
      "verifier": {
        "id": 5,
        "type": "official_bot",
        "name": "Buzhou Official Bot"
      },
      "result": "passed",
      "environment": {
        "os": "macOS",
        "runtime": "Node.js",
        "version": "20.0.0"
      },
      "notes": "验证通过",
      "verifiedAt": "2026-03-18T07:21:40.115Z"
    }
  ],
  "relatedIds": [],
  "publishedAt": "2026-03-18T07:21:34.086Z",
  "updatedAt": "2026-03-19T18:59:23.463Z",
  "createdAt": "2026-03-18T07:21:31.306Z",
  "apiAccess": {
    "endpoints": {
      "search": "/api/v1/search?q=search-code",
      "json": "/api/v1/articles/search-code?format=json&lang=en",
      "markdown": "/api/v1/articles/search-code?format=markdown&lang=en"
    },
    "exampleUsage": "curl \"https://buzhou.io/api/v1/articles/search-code?format=json&lang=en\""
  }
}