GitHub Developer Info
This API provides fetches detailed developer profiles from GitHub. It returns bio, repository counts, follower stats, account creation dates & more.
Endpoint
Section titled “Endpoint” POST
/api/v1/github-info Request Parameters
Section titled “Request Parameters”The following parameters are accepted in the request body:
| Field | Type | Required | Description |
|---|---|---|---|
username | string | Yes | The GitHub username target. |
Request Examples
Section titled “Request Examples”curl -X POST https://heavstal.com.ng/api/v1/github-info \-H "Content-Type: application/json" \-H "x-api-key: <YOUR_API_KEY>" \-d '{"username": "torvalds"}'const response = await fetch('https://heavstal.com.ng/api/v1/github-info', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-api-key': '<YOUR_API_KEY>' }, body: JSON.stringify({ username: 'torvalds' })});
const res = await response.json();console.log(res.data);import { search } from '@heavstal/api';
const dev = await search.github("torvalds");console.log(`Name: ${dev.data.name} | Repos: ${dev.data.public_repos}`);import requests
url = "https://heavstal.com.ng/api/v1/github-info"headers = { "Content-Type": "application/json", "x-api-key": "<YOUR_API_KEY>"}payload = { "username": "torvalds"}
response = requests.post(url, headers=headers, json=payload)print(response.json()["data"])Response Examples
Section titled “Response Examples”{ "status": "success", "code": 200, "creator": "HEAVSTAL TECH", "data": { "username": "torvalds", "name": "Linus Torvalds", "bio": "Linux creator", "followers": 195000, "public_repos": 7, "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4", "created_at": "2011-09-03T15:26:22Z" }}{ "status": "error", "error": "GitHub user not found."}