Loading amazing GitHub rankings...
Loading amazing GitHub rankings...
Integrate RankedIn data into your applications with our powerful REST API. Get access to rankings, statistics, and real-time data.
https://rankedin.netlify.app/apiAll endpoints are publicly accessible
/api/users// Get top 50 users
const response = await fetch('https://rankedin.netlify.app/api/users?limit=50&page=1');
const data = await response.json();
console.log(data.users); // Array of user objects
console.log(data.pagination); // Pagination info{
"users": [
{
"id": "1",
"username": "torvalds",
"name": "Linus Torvalds",
"bio": "Creator of Linux",
"followers": 150000,
"following": 0,
"public_repos": 6,
"location": "Portland, OR",
"blog": "https://torvalds-family.blogspot.com/",
"score": 99.8,
"rank": 1
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 50000,
"totalPages": 2500
}
}pageintegerPage number (default: 1)limitintegerItems per page (max: 100)/api/repositories// Get repositories with filters
const response = await fetch('https://rankedin.netlify.app/api/repositories?language=javascript&limit=20');
const data = await response.json();
data.repositories.forEach(repo => {
console.log(`${repo.name}: ${repo.stars} stars`);
});{
"repositories": [
{
"id": "1",
"name": "react",
"full_name": "facebook/react",
"description": "A declarative...",
"stars": 220000,
"forks": 45000,
"language": "JavaScript",
"topics": ["ui", "react", "frontend"],
"score": 98.5,
"rank": 1
}
],
"pagination": { ... }
}pageintegerPage number (default: 1)limitintegerItems per page (max: 100)languagestringFilter by programming language/api/topics// Get trending topics
const response = await fetch('https://rankedin.netlify.app/api/topics?featured=true');
const data = await response.json();
console.log(data.topics);{
"topics": [
{
"id": "1",
"name": "javascript",
"displayName": "JavaScript",
"description": "Programming language",
"featured": true,
"repositories": 2500000,
"score": 95.2,
"rank": 1
}
],
"pagination": { ... }
}pageintegerPage number (default: 1)limitintegerItems per page (max: 100)featuredbooleanShow only featured topics/api/contribute// Add a repository to ranking
const response = await fetch('https://rankedin.netlify.app/api/contribute', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
type: 'repository',
url: 'https://github.com/facebook/react',
reason: 'Popular React library'
})
});
const result = await response.json();
console.log(`Added at rank #${result.rank}`);{
"success": true,
"message": "Successfully added to ranking",
"data": {
"type": "repository",
"name": "facebook/react",
"rank": 1,
"score": 98.5
}
}/api/search/api/stats/api/badges// Get user ranking badge (SVG)
const response = await fetch('https://rankedin.netlify.app/api/badges?username=yourusername');
const svgBadge = await response.text();
// Get user ranking data (JSON)
const jsonResponse = await fetch('https://rankedin.netlify.app/api/badges?username=yourusername&format=json');
const userData = await jsonResponse.json();
console.log(`Rank: #${userData.rank}, Stars: ${userData.totalStars}`);// JSON Response
{
"username": "yourusername",
"name": "Your Name",
"rank": 42,
"totalUsers": 10000,
"percentile": 96,
"totalStars": 1250,
"followers": 150,
"publicRepos": 25,
"location": "San Francisco",
"company": "Your Company",
"lastUpdated": "2024-01-15T10:30:00Z"
}
// SVG Response (when format=svg or Accept: image/svg+xml)
// Returns SVG badge image for GitHub READMEusernamestringGitHub username (required)namestringAlternative to username parameterformatstringResponse format: 'json' or 'svg' (default: json)stylestringBadge style: 'default', 'flat', or 'plastic'Bad Request
Invalid parameters or malformed request
Too Many Requests
Rate limit exceeded, please wait
Internal Server Error
Something went wrong on our end