# GitHub Issue search API (github.search_issues)

- Canonical page: https://everyinfra.com/en/github-api/search_issues
- Endpoint: POST /api/v1/social with {"platform": "github", "action": "search_issues", "params": {...}}
- Price: $0.001917 per call ($1.92 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 30, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=github&action=search_issues

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | A GitHub issue search query for `search_issues`. GitHub qualifiers work, such as `repo:openai/whisper is:pr`, `is:issue label:bug` or `author:octocat`. |
| sort | enum: comments / created / reactions / updated | no | not declared | Order of the list. `repository_issues`: created (default), updated or comments. `search_issues`: best match by default, or comments, created, updated, reactions. `forks`: newest (default), oldest, stargazers, watchers. `user_repositories`: created, updated, pushed, full_name. |
| limit | integer (1–100) | no | 30 | The most rows to return in this call, an integer from 1 to 100. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | GitHub's numeric ID, as a string. |
| number | Issue or pull request number within the repository. |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| state | open or closed. |
| is_pull_request | true for a pull request, false for an issue. |
| is_draft | Whether a pull request is a draft; false for issues. |
| labels | Label names; absent when there are none. |
| comment_count | Comments. null means not disclosed, not 0. |
| reaction_count | Total emoji reactions. |
| repository | Repository the row belongs to, as owner/repo. |
| author_username | Author's username (@handle), usually usable in URLs. |
| author_id | Author's unique ID on the platform. |
| author_avatar_url | platform-native meaning |
| author_type | Author account type: User, Bot or Organization. |
| author_association | The author's relation to the repository, as GitHub reports it: OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, FIRST_TIME_CONTRIBUTOR, NONE and so on. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| updated_at | Last update time, ISO 8601 UTC. |
| closed_at | Close time, ISO 8601 UTC; absent while open. |
| merged_at | Merge time of a pull request, ISO 8601 UTC; absent for issues and unmerged pull requests. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "github",
  "action": "search_issues",
  "params": {
    "keyword": "coffee"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "github",
        "action": "search_issues",
        "params": {
            "keyword": "coffee",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "github",
  "action": "search_issues",
  "results": [
    {
      "id": …,
      "number": …,
      "url": …,
      "title": …,
      "text": …,
      "state": …,
      "is_pull_request": …,
      "is_draft": …,
      "labels": …,
      "comment_count": …,
      "reaction_count": …,
      "repository": …,
      "author_username": …,
      "author_id": …,
      "author_avatar_url": …,
      "author_type": …,
      "author_association": …,
      "posted_at": …,
      "updated_at": …,
      "closed_at": …,
      "merged_at": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=github
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
