POST /v1/search/developer finds READMEs, issues, pull requests, releases, API operations and docs for a query, each with the passage that matches. It needs an API key.
Search issues of a repo
Get an API key in the Quickstart. This request looks for issues and pull requests about SQLite transactions in one repo.Read the response
results holds the matches, best first. This real response is cut to one of the three results and to the start of its passage.
id, the url and title of the item, its type, and the repo, stars, language, date and state (such as open or closed) when it has them, or null. passages holds the text that matched, and each passage names the citation_url to cite. repos has one entry for each repo you sent, and indexed says whether Stophy holds items of that repo.
Search one repo without passages
Sendpassages as false when you only need the items. This request searches the READMEs, issues, pull requests and releases of one repo.
passages is an empty list, and repos says how much of the repo Stophy holds.
Send a GET request
GET /v1/search/developer takes the same fields as query parameters, with a list as comma-separated values, such as ?query=memory+leak&types=issue,pull_request&repos=oven-sh/bun.
Options
Limits and errors
- Without an API key, the call returns
401 apiKeyRequired. min_starsabovemax_starsreturns400 invalidRequestwithmin_stars: must not be greater than max_stars.operationanddocresults have no stars, so they are left out when you sendmin_starsormax_stars.- A
reposentry that is notowner/name, or more than 5 repos, returns400 invalidRequest. A repo Stophy holds nothing of comes back withindexed: false. partialisfalseon every answer.
Price
$1 per 1,000 searches of up to 10 results: $0.001 for each 10 results. A search with no results costs nothing. See Pricing.Related
- Papers searches research papers.
- Sources searches the web, news, images and videos.
- Search overview lists every search field.