GitHub issue and pull request search

GET https://api.api.sh/github/v1/search/issues
1 credit / call jobs & b2b try it in the playground →

Search issues and pull requests across GitHub (issues by default; type=pr for pull requests), with qualifiers as params. Every response includes credits_used: the credits this call cost.

Part of the GitHub API: 44 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
q string Search text (optional when a qualifier is given). Example: memory leak
repo string owner/repo.
org string Organization.
user string Owner login.
type issue | pr issue or pr.
state open | closed open or closed.
is string merged, draft, locked...
label string Label (comma-separated for several).
author string Author login.
assignee string Assignee login.
mentions string Mentioned login.
language string Repository language.
created string e.g. >2026-01-01.
updated string e.g. >2026-01-01.
closed string e.g. 2026-01-01..2026-02-01.
comments string e.g. >10.
reactions string e.g. >50.
sort string comments, reactions, interactions, created, updated.
order asc | desc desc or asc.
page string Page number (100 per page, 10 pages max). Example: 1

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/github/v1/search/issues?q=memory+leak&page=1" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"query": "memory leak is:issue","sort": "best-match","order": "desc","total": 474884,"incomplete_results": false,"page": 1,"next_page": 2,"count": 99,"issues": [{"id": 6174985211,"number": 18,"title": "Memory leak","url": "https://github.com/Mortify7612/RallisportChallenge2-decomp/issues/18","state": "open","state_reason": null,"is_pull_request": false,"draft": null,"merged_at": null,"body": "After playing for a while, the textures glitch out so severely that the game becomes unplayable, requiring a restart to return to normal. It…","comments": 0,"locked": false,"active_lock_reason": null,"labels": [],"user": {"login": "NostalJ","id": 351220893,"type": "User","avatar": "https://avatars.githubusercontent.com/u/351220893?v=4","url": "https://github.com/NostalJ","node_id": "U_kgDOFO80nQ","site_admin": false,"user_view_type": "public"},"author_association": "NONE","assignees": [],"milestone": null,"reactions": {"url": "https://api.github.com/repos/Mortify7612/RallisportChallenge2-decomp/issues/18/reactions","total_count": 0,"+1": 0,"-1": 0,"laugh": 0,"hooray": 0,"confused": 0,"heart": 0,"rocket": 0,"eyes": 0},"created_at": "2026-11-03T02:21:25Z","updated_at": "2026-11-03T02:21:25Z","closed_at": null,"closed_by": null,"repository_url": "https://api.github.com/repos/Mortify7612/RallisportChallenge2-decomp","node_id": "I_kwDOVLO4zM8AAAABcA7L-w","type": null,"sub_issues_summary": {"total": 0,"completed": 0,"percent_completed": 0},"score": 1},{"id": 6165803598,"number": 12,"title": "Memory leaks","url": "https://github.com/Z1xus/open-svpflow/issues/12","state": "open","state_reason": null,"is_pull_request": false,"draft": null,"merged_at": null,"body": "Each time a seek operation is performed in the MPV player, the available system memory decreases. After several seek operations, the player …","comments": 1,"locked": false,"active_lock_reason": null,"labels": [],"user": {"login": "BigBear74","id": 85805114,"type": "User","avatar": "https://avatars.githubusercontent.com/u/85805114?v=4","url": "https://github.com/BigBear74","node_id": "MDQ6VXNlcjg1ODA1MTE0","site_admin": false,"user_view_type": "public"},"author_association": "NONE","assignees": [],"milestone": null,"reactions": {"url": "https://api.github.com/repos/Z1xus/open-svpflow/issues/12/reactions","total_count": 1,"+1": 1,"-1": 0,"laugh": 0,"hooray": 0,"confused": 0,"heart": 0,"rocket": 0,"eyes": 0},"created_at": "2026-11-02T15:42:05Z","updated_at": "2026-11-03T09:03:33Z","closed_at": null,"closed_by": null,"repository_url": "https://api.github.com/repos/Z1xus/open-svpflow","node_id": "I_kwDOTPpnqc8AAAABb4KyTg","type": null,"sub_issues_summary": {"total": 0,"completed": 0,"percent_completed": 0},"score": 1},"… 97 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.