github
Users, repositories and repo listings — stars, forks and issues as engagement.
GET /v1/github/user
1 credit
cached 15m
Parameters
| handle | required | e.g. torvalds |
curl "http://datatrend.nl/v1/github/user?handle=torvalds" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/user?handle=torvalds");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/user?handle=torvalds",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/user?handle=torvalds",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/repo
1 credit
cached 15m
Parameters
| repo | required | e.g. php/php-src |
curl "http://datatrend.nl/v1/github/repo?repo=php%2Fphp-src" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/repo?repo=php%2Fphp-src");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/repo?repo=php%2Fphp-src",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/repo?repo=php%2Fphp-src",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/repos
1 credit
cached 15m
Parameters
| handle | required | e.g. torvalds |
curl "http://datatrend.nl/v1/github/repos?handle=torvalds" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/repos?handle=torvalds");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/repos?handle=torvalds",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/repos?handle=torvalds",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/profile
1 credit
cached 15m
Parameters
| handle | required | e.g. torvalds |
curl "http://datatrend.nl/v1/github/profile?handle=torvalds" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/profile?handle=torvalds");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/profile?handle=torvalds",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/profile?handle=torvalds",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/profile/repos
1 credit
cached 15m
Parameters
| handle | required | e.g. torvalds |
| sort | optional | e.g. hot |
| per_page | optional | e.g. value |
| page | optional | e.g. value |
curl "http://datatrend.nl/v1/github/profile/repos?handle=torvalds" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/profile/repos?handle=torvalds");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/profile/repos?handle=torvalds",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/profile/repos?handle=torvalds",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/repo/readme
1 credit
cached 1h
Parameters
| url | required | e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ |
curl "http://datatrend.nl/v1/github/repo/readme?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/repo/readme?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/repo/readme?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/repo/readme?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/repo/releases
1 credit
cached 15m
Parameters
| url | required | e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ |
| per_page | optional | e.g. value |
| page | optional | e.g. value |
curl "http://datatrend.nl/v1/github/repo/releases?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/repo/releases?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/repo/releases?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/repo/releases?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/repo/issues
1 credit
cached 5m
Parameters
| url | required | e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ |
| state | optional | e.g. value |
| labels | optional | e.g. value |
| sort | optional | e.g. hot |
| per_page | optional | e.g. value |
| page | optional | e.g. value |
curl "http://datatrend.nl/v1/github/repo/issues?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/repo/issues?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/repo/issues?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/repo/issues?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/issue
1 credit
cached 10m
Parameters
| url | required | e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ |
curl "http://datatrend.nl/v1/github/issue?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/issue?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/issue?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/issue?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/issue/comments
1 credit
cached 5m
Parameters
| url | required | e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ |
| per_page | optional | e.g. value |
| page | optional | e.g. value |
curl "http://datatrend.nl/v1/github/issue/comments?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/issue/comments?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/issue/comments?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/issue/comments?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/github/search
1 credit
cached 5m
Parameters
| query | required | e.g. open source |
| sort | optional | e.g. hot |
| order | optional | e.g. value |
| per_page | optional | e.g. value |
| page | optional | e.g. value |
curl "http://datatrend.nl/v1/github/search?query=open+source" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/github/search?query=open+source");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/github/search?query=open+source",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/github/search?query=open+source",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);