/v1/search/repositories
Search repositories
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/github-api/v1/search/repositories" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/github-api/v1/search/repositories", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/github-api/v1/search/repositories");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/github-api/v1/search/repositories",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"items": [
{
"id": 178619111,
"url": "https://api.github.com/repos/taylorconor/tinytetris",
"fork": false,
"name": "tinytetris",
"size": 630,
"forks": 657,
"owner": {
"id": 6587532,
"url": "https://api.github.com/users/taylorconor",
"type": "User",
"login": "taylorconor",
"node_id": "MDQ6VXNlcjY1ODc1MzI=",
"html_url": "https://github.com/taylorconor",
"gists_url": "https://api.github.com/users/taylorconor/gists{/gist_id}",
"repos_url": "https://api.github.com/users/taylorconor/repos",
"avatar_url": "https://avatars.githubusercontent.com/u/6587532?v=4",
"events_url": "https://api.github.com/users/taylorconor/events{/privacy}",
"site_admin": false,
"gravatar_id": "",
"starred_url": "https://api.github.com/users/taylorconor/starred{/owner}{/repo}",
"followers_url": "https://api.github.com/users/taylorconor/followers",
"following_url": "https://api.github.com/users/taylorconor/following{/other_user}",
"user_view_type": "public",
"organizations_url": "https://api.github.com/users/taylorconor/orgs",
"subscriptions_url": "https://api.github.com/users/taylorconor/subscriptions",
"received_events_url": "https://api.github.com/users/taylorconor/received_events"
},
"score": 1,
"topics": [],
"git_url": "git://github.com/taylorconor/tinytetris.git",
"license": {
"key": "apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0",
"name": "Apache License 2.0",
"node_id": "MDc6TGljZW5zZTI=",
"spdx_id": "Apache-2.0"
},
"node_id": "MDEwOlJlcG9zaXRvcnkxNzg2MTkxMTE=",
"private": false,
"ssh_url": "[email protected]:taylorconor/tinytetris.git",
"svn_url": "https://github.com/taylorconor/tinytetris",
"archived": false,
"disabled": false,
"has_wiki": true,
"homepage": "",
"html_url": "https://github.com/taylorconor/tinytetris",
"keys_url": "https://api.github.com/repos/taylorconor/tinytetris/keys{/key_id}",
"language": "C++",
"tags_url": "https://api.github.com/repos/taylorconor/tinytetris/tags",
"watchers": 3278,
"blobs_url": "https://api.github.com/repos/taylorconor/tinytetris/git/blobs{/sha}",
"clone_url": "https://gi
…