GitHub trending developers API
GitHub's public Trending developers page: ranked users with name, avatar and the popular repository GitHub shows for them (in `extra`).
GET /v1/github/trending/developers
GET /v1/github/trending/developers
GitHub's public Trending developers page: ranked users with name, avatar and the popular repository GitHub shows for them (in extra).
- Cost: 1 credit
- Cache: Results are kept up to 1 day; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
language | string | no | Coding language, e.g. javascript, python, go. |
since | string | no | Trending range. One of daily, weekly, monthly. Default daily. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
1curl -G "https://api.socialscrape.dev/v1/github/trending/developers" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "language=python" \4 --data-urlencode "since=weekly"1import os2import requests34params = {5 "language": "python",6 "since": "weekly",7}8res = requests.get(9 "https://api.socialscrape.dev/v1/github/trending/developers",10 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},11 params=params,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/github/trending/developers");2url.search = new URLSearchParams({3 "language": "python",4 "since": "weekly"5}).toString();6const res = await fetch(url, {7 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },8});9const body = await res.json();1011if (body.ok) {12 console.log(body.data);13} else {14 console.error(body.error.code, body.error.message);15}1{2 "nodes": [3 {4 "name": "SocialScrape GitHub trending developers",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/github/trending/developers",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "language",19 "value": "python"20 },21 {22 "name": "since",23 "value": "weekly"24 }25 ]26 },27 "sendHeaders": true,28 "headerParameters": {29 "parameters": [30 {31 "name": "x-api-key",32 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"33 }34 ]35 }36 }37 }38 ],39 "connections": {}40}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_f84bd4fd20d383847abb3c0d",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "profile",13 "platform": "github",14 "id": null,15 "handle": "mvanhorn",16 "name": "Matt Van Horn",17 "headline": null,18 "url": "https://github.com/mvanhorn",19 "kind": "person",20 "bio": null,21 "avatar_url": "https://avatars.githubusercontent.com/u/455140?s=96&v=4",22 "banner_url": null,23 "verified": null,24 "is_private": null,25 "external_url": null,26 "links": null,27 "location": null,28 "category": null,29 "created_at": null,30 "stats": {31 "followers": null,32 "following": null,33 "posts": null,34 "likes": null,35 "views": null36 },37 "extra": {38 "language_filter": "python",39 "popular_repository": {40 "description": "AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary",41 "full_name": "mvanhorn/last30days-skill",42 "name": "last30days-skill",43 "owner": "mvanhorn",44 "repo": "last30days-skill",45 "url": "https://github.com/mvanhorn/last30days-skill"46 },47 "rank": 1,48 "since": "weekly"49 }50 },51 {52 "object": "profile",53 "platform": "github",54 "id": null,55 "handle": "Gathin23",56 "name": "Gathin",57 "headline": null,58 "url": "https://github.com/Gathin23",59 "kind": "person",60 "bio": null,61 "avatar_url": "https://avatars.githubusercontent.com/u/94786511?s=96&v=4",62 "banner_url": null,63 "verified": null,64 "is_private": null,65 "external_url": null,66 "links": null,67 "location": null,68 "category": null,69 "created_at": null,70 "stats": {71 "followers": null,72 "following": null,73 "posts": null,74 "likes": null,75 "views": null76 },77 "extra": {78 "language_filter": "python",79 "popular_repository": {80 "description": "Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.",81 "full_name": "Gathin23/cleanyourtv",82 "name": "cleanyourtv",83 "owner": "Gathin23",84 "repo": "cleanyourtv",85 "url": "https://github.com/Gathin23/cleanyourtv"86 },87 "rank": 2,88 "since": "weekly"89 }90 }91 ],92 "cursor": null,93 "has_more": false,94 "parent": null95 },96 "cursor": null,97 "has_more": false98}Response#
A list of Profile objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Related endpoints#
- GitHub user (
GET /v1/github/user) - GitHub user repositories (
GET /v1/github/user/repositories) - GitHub repository (
GET /v1/github/repository) - GitHub followers (
GET /v1/github/user/followers) - GitHub following (
GET /v1/github/user/following) - GitHub contribution calendar (
GET /v1/github/user/contributions) - GitHub public activity (
GET /v1/github/user/activity) - GitHub pull requests by a user (
GET /v1/github/user/pull-requests)