# GitHub の履歴を検索 (/ja/api-reference/endpoint/research-github-search)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 1007 · updated: 2026-07-30 -->
Related: [検索](/ja/api-reference/endpoint/search.md), [検索フィードバック](/ja/api-reference/endpoint/search-feedback.md), [スクレイプ](/ja/api-reference/endpoint/scrape.md), [バッチスクレープ](/ja/api-reference/endpoint/batch-scrape.md), [バッチスクレイプのステータス取得](/ja/api-reference/endpoint/batch-scrape-get.md), [バッチスクレイプのキャンセル](/ja/api-reference/endpoint/batch-scrape-delete.md)

GitHub の issue/PR の履歴、ディスカッション、リポジトリの README を検索します。結果には、リポジトリのメタデータ、URL、スニペット、利用可能な場合は一致した Markdown コンテンツが含まれます。

ワークフローの概要については、[Research Index ガイド](/ja/features/research)を参照してください。

`GET /search/research/github`

GitHub の履歴を検索

## OpenAPI

```json
{
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "parameters": [
    {
      "description": "GitHub の issue、pull request、discussion、repository の README を対象とした自然言語 query。",
      "in": "query",
      "name": "query",
      "required": true,
      "schema": {
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "description": "返される GitHub 結果の最大数。",
      "in": "query",
      "name": "k",
      "required": false,
      "schema": {
        "default": 20,
        "maximum": 100,
        "minimum": 1,
        "type": "integer"
      }
    }
  ],
  "responses": {
    "200": {
      "content": {
        "application/json": {
          "example": {
            "results": [
              {
                "contentMd": "Full matched markdown content when available.",
                "number": 123,
                "pageType": "issue",
                "repo": "firecrawl/firecrawl",
                "resultType": "issue",
                "scores": {
                  "semantic": 0.82
                },
                "segmentCount": 2,
                "snippet": "Queue worker shutdown can lose completion signals...",
                "title": "Worker shutdown race",
                "url": "https://github.com/firecrawl/firecrawl/issues/123"
              }
            ],
            "success": true
          },
          "schema": {
            "properties": {
              "results": {
                "items": {
                  "properties": {
                    "contentMd": {
                      "description": "利用可能な場合は、一致した完全なMarkdownコンテンツ。",
                      "type": "string"
                    },
                    "number": {
                      "type": "integer"
                    },
                    "pageType": {
                      "description": "issue/PR/discussion 結果の履歴ページ種別。",
                      "type": "string"
                    },
                    "readmeUrl": {
                      "format": "uri",
                      "type": "string"
                    },
                    "repo": {
                      "description": "owner/name 形式の repository。",
                      "type": "string"
                    },
                    "resultType": {
                      "description": "issue、pull、discussion、repo_readme などの結果クラス。",
                      "type": "string"
                    },
                    "scores": {
                      "additionalProperties": {
                        "type": "number"
                      },
                      "description": "semantic、lexical、fusion、rrf、rerank などのコンポーネントスコア。",
                      "type": "object"
                    },
                    "segmentCount": {
                      "type": "integer"
                    },
                    "snippet": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "url": {
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "success": {
                "type": "boolean"
              }
            },
            "required": [
              "success",
              "results"
            ],
            "type": "object"
          }
        }
      },
      "description": "順位付けされた GitHub の履歴/README 結果。"
    },
    "400": {
      "description": "無効なリクエスト"
    },
    "401": {
      "description": "bearer token が存在しないか無効です"
    },
    "429": {
      "description": "レート制限を超過しました"
    },
    "500": {
      "description": "内部サーバーエラー"
    }
  }
}
```
