GitHub Network Scraper avatar

GitHub Network Scraper

Pricing

from $9.99 / 1,000 results

Go to Apify Store
GitHub Network Scraper

GitHub Network Scraper

Scrapes GitHub's public follower and following networks, capturing usernames, profile URLs, account types, and optional profile details such as names, companies, locations, bios, repository counts, and follower statistics, with support for followers, following, or both modes, and deduplication.

Pricing

from $9.99 / 1,000 results

Rating

0.0

(0)

Developer

Jamshaid Arif

Jamshaid Arif

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

An Apify actor to extract public social connection graphs, follower lists, following networks, and enriched profile metadata from GitHub's REST API.


Key Features

  • Directional Network Traversal: Retrieve followers (users following target), following (users target follows), or both.
  • Profile Enrichment: Optionally pull complete user profile metadata including real name, company, geographic location, bio biography, public repository counts, and follower stats.
  • High-Volume PAT Support: Accepts an optional GitHub Personal Access Token (token) to scale rate limits up to 5,000 requests per hour (vs. 60 requests per hour for anonymous calls).
  • Deduplication & Safety: Deduplicates users and tracks relationships cleanly.
  • Proxy Compatibility: Full integration with Apify Proxy or custom proxies.

Input Parameters

ParameterTypeDefaultDescription
usernameString"octocat"GitHub username or handle to inspect (e.g. octocat or torvalds).
modeString"followers"Network mode: "followers", "following", or "both".
limitInteger50Maximum number of user records to extract.
detailsBooleanfalseWhen true, fetches profile details (name, company, location, bio, repos count, etc.).
tokenString""Optional GitHub Personal Access Token to increase API limits.
delayNumber0.2Delay in seconds between HTTP pagination or profile calls.
timeoutNumber15Network request timeout in seconds.
proxyConfigurationObject{"useApifyProxy": false}Proxy settings for requests.

Example Input JSON

{
"username": "octocat",
"mode": "followers",
"limit": 50,
"details": true,
"token": "",
"delay": 0.2,
"timeout": 15,
"proxyConfiguration": {
"useApifyProxy": false
}
}

Output Dataset Fields

FieldTypeDescription
loginStringGitHub username handle.
user_idStringUnique GitHub numerical user ID.
avatar_urlStringURL to the user's avatar image.
profile_urlStringDirect URL to the GitHub profile page (https://github.com/<login>).
user_typeStringAccount type (User or Organization).
nameStringPublic display name (populated when details is true).
companyStringListed company affiliation (when details is true).
locationStringPublic location string (when details is true).
bioStringPublic biography summary (when details is true).
public_reposInteger / nullTotal public repositories owned (when details is true).
followers_countInteger / nullNumber of followers (when details is true).
following_countInteger / nullNumber of accounts following (when details is true).
target_userStringTarget username specified in the query.
relationshipStringConnection type: "follower" or "following".
scraped_atStringISO 8601 timestamp when the record was processed.

Example Output JSON

{
"login": "octocat",
"user_id": "583231",
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
"profile_url": "https://github.com/octocat",
"user_type": "User",
"name": "The Octocat",
"company": "@github",
"location": "San Francisco",
"bio": "GitHub's official mascot",
"public_repos": 8,
"followers_count": 18200,
"following_count": 9,
"target_user": "octocat",
"relationship": "follower",
"scraped_at": "2026-11-08T19:25:00.000000+00:00"
}

Policy Section & Compliance Guidelines

Terms of Service & API Guidelines

This actor communicates with the official GitHub REST API (api.github.com). Use of this actor must strictly comply with GitHub's Terms of Service and Acceptable Use Policies. You must not use this actor for bulk automated messaging, unsolicited commercial outreach, or harassing users.

Rate Limiting & Polite Scraping

  • Anonymous Requests: GitHub limits unauthenticated requests to 60 per hour per originating IP address.
  • Authenticated Requests: Supplying a GitHub Personal Access Token (token) elevates your quota to 5,000 requests per hour.
  • Maintain the default delay (0.2s or higher) to avoid triggering secondary rate-limiting mechanisms or IP blocks.
  • When enabling details=true, an additional HTTP call is made for each user; ensure sufficient quota is available before initiating large queries.

Personal Data & Privacy (GDPR, CCPA)

Public GitHub developer profiles may contain personal data such as names, affiliations, geographic locations, and contact information. When processing or storing this information:

  • Respect data protection regulations including the EU General Data Protection Regulation (GDPR) and California Consumer Privacy Act (CCPA/CPRA).
  • Do not build unauthorized surveillance or profiling databases of open-source contributors.
  • Provide mechanisms for individuals to request data removal or rectification where required by law.

Permissible Use & Fair Use Disclaimer

This actor is developed for educational, recruitment analytics, academic research on open-source ecosystems, and developer tooling integrations. The authors assume no liability for misuse, policy breaches, or unauthorized scraping conducted by end users.


How to Run

Via Apify Console

  1. Navigate to the GitHub Network Scraper actor on the Apify platform.
  2. Fill in the GitHub Username (e.g. octocat) and select the relationship mode.
  3. (Optional) Provide a GitHub Personal Access Token in the token field for high-volume jobs.
  4. Click Start to execute the run.
  5. Download your extracted dataset in JSON, CSV, or Excel format.

Via Apify CLI

$apify call github-network-scraper --input='{"username": "octocat", "mode": "followers", "limit": 20}'