1. Use cases
  2. Developer sourcing from GitHub

Developer sourcing from GitHub

Read GitHub profiles, repositories and trending developers.

The job

Recruiters and tool makers look for people by what they ship. List a language's trending developers, then read each one's repositories.

Endpoints

Failed requests and cached repeats cost 0 credits. Send max_age_days to accept a recent cached copy. See credits and caching.

EndpointReturnsCost
GitHub trending developers1 credit
GitHub user1 credit
GitHub user repositories1 credit
GitHub contribution calendar1 credit
GitHub trending repositories1 credit

Recipe

  1. List trending developers for a language.
  2. Read each profile.
  3. List their repositories by last push.
1import os2import requests34API = "https://api.socialscrape.dev"5HEADERS = {"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]}678def get(path, **params):9    res = requests.get(API + path, headers=HEADERS, params=params, timeout=60)10    res.raise_for_status()11    return res.json()["data"]1213# GitHub trending developers14devs = get("/v1/github/trending/developers", language="rust", since="weekly")15# GitHub user repositories16repos = get("/v1/github/user/repositories", handle=devs["items"][0]["handle"], sort="pushed", direction="desc")1718for r in repos["items"][:10]:19    print(r["url"])

Calls use api.socialscrape.dev and return the shapes in the reference.

Good to know

Contacting people is a separate step, with its own rules.

Related