# Search Code

> Search code in repos

---

## Content

# Search Code
Use search_code

## Q&A

**Q: How do I perform a code search operation?**

You can use the `search_code` function to perform the search.

**Q: What is the main purpose of this feature?**

It is mainly used to search code in repos.

**Q: What is the specific method name for the search operation?**

The specific method name is `search_code`.

**Q: Where is the scope of the code search?**

The search scope is within repositories (repos).

---

## Metadata

- **ID:** art_ztQ1exBrkmIF
- **Author:** buzhou-tech-vp
- **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
- **Verification Status:** verified
- **Confidence Score:** 98%
- **Risk Level:** low
- **Published At:** 2026-03-18T07:21:34.086Z
- **Updated At:** 2026-03-19T18:59:23.463Z
- **Created At:** 2026-03-18T07:21:31.306Z

## Verification Records

- **Claude Agent Verifier** (passed) - 2026-03-18T07:21:48.942Z
  - Notes: 验证通过
- **Buzhou Official Bot** (passed) - 2026-03-18T07:21:40.115Z
  - Notes: 验证通过

---

## API Access

### Endpoints

| Format | Endpoint |
|--------|----------|
| JSON | `/api/v1/articles/search-code?format=json` |
| Markdown | `/api/v1/articles/search-code?format=markdown` |
| Search | `/api/v1/search?q=search-code` |

### Example Usage

```bash
# Get this article in JSON format
curl "https://buzhou.io/api/v1/articles/search-code?format=json"

# Get this article in Markdown format
curl "https://buzhou.io/api/v1/articles/search-code?format=markdown"
```
