GitHub scraper API
The InsightSocial GitHub API has 10 endpoints, from 20 credits a call. A repositories call costs 20 credits, about $0.02 on Pro, and your first 10 calls up to 100 credits each are free.
GitHub profiles, repositories, followers, pull requests and contribution graphs as JSON, plus the trending repositories and developers pages, which GitHub's own API does not serve.
10 endpoints · from 20 credits a call · 10 free calls up to 100 credits each · no credit card
curl "https://api.insightsocial.app/v1/github/repositories?url=https%3A%2F%2Fgithub.com%2Fexample-org%2Fexample-repo" \-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
What GitHub data can you get?
Public GitHub data only, in the same JSON envelope as every other platform. Every GitHub endpoint is beta: inside data it returns GitHub's own structure under our naming rules (snake_case keys, string ids, ISO times where GitHub gives a timestamp), not the shared profile and post schema, and fields may change.
Profiles and their repositories
A user or organization profile, its repositories sorted your way, and one repository in full with stars, forks, issues, topics and licence.
Activity and contributions
A profile's public activity one month at a time, its contribution graph for a year, and the pull requests it authored in a date range.
Followers and following
The accounts that follow a profile and the accounts it follows, page by page.
Trending
The trending repositories and trending developers pages for a language and a daily, weekly or monthly window.
What people build with the GitHub API
Developer sourcing
Start from the trending developers for a language, then read each profile, its repositories and its contribution graph.
Open-source tracking
Re-read a list of repositories on a schedule to follow stars, forks and open issues, next to what the project's community says elsewhere.
Trend watching
Snapshot the trending repositories every day for the languages you care about and keep your own history of what rose.
GitHub API endpoints
All 10 GitHub endpoints and their price in credits. Every one has a fixed price.
| Endpoint | Credits | What it returns |
|---|---|---|
| /profile | 20 | Get a GitHub profile for a user or organization. |
| /profile/activity | 20 | List recent public activity for a GitHub profile, one month per request. |
| /profile/contributions | 20 | Get the contribution graph for a GitHub profile for a given year. |
| /profile/followers | 20 | List followers for a GitHub profile. |
| /profile/following | 20 | List accounts a GitHub profile follows. |
| /profile/pull-requests | 20 | List pull requests authored by a GitHub user. |
| /profile/repositories | 20 | List repositories for a GitHub user or organization. |
| /repositories | 20 | Get a single GitHub repository by URL. |
| /trending/developers | 20 | List trending GitHub developers for a language and time window. |
| /trending/repositories | 20 | List trending GitHub repositories for a language and time window. |
Parameters, response fields and examples for each endpoint are in the GitHub API reference.
InsightSocial vs the official GitHub API
GitHub's REST and GraphQL APIs are free and well documented, with lower rate limits for unauthenticated calls than for calls with a token. If GitHub is all you need, start there.
| InsightSocial API | Official GitHub API | |
|---|---|---|
| Trending pages | Trending repositories and developers | No endpoint for the trending pages |
| Contribution graph | One call with a handle and year | GraphQL API with a token |
| Other platforms | The same key and envelope for 60 more | GitHub only |
| Cost per call | 20 credits | Free, within GitHub's rate limits |
The official API is the right tool for posting, messaging or managing accounts you own. This one is read-only public data.
How much does the GitHub API cost?
GitHub calls start at 20 credits. Every endpoint's price is in the table above and in the free GET /v1/endpoints catalogue, so you know the cost before you call. Pro's 10,000 monthly credits cover about 500 repository lookups at 20 credits each.
Failed calls are free
A call that errors or finds nothing costs 0 credits.
Repeats and retries
A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.
One balance
API calls and Chrome extension exports share the same credits. The free plan includes 500 a month.
Not writing code?
Connect InsightSocial to Claude or ChatGPT and ask for GitHub data in plain English. Same account, same credits.
GitHub API: frequently asked questions
For GitHub alone it is free and excellent. This API is for when GitHub is one source among several: one key, one envelope and one credit balance across every platform, plus the trending pages, which GitHub's REST API does not serve.
Yes. /v1/github/trending/repositories and /v1/github/trending/developers return the trending lists for a language and a time window, the same lists github.com/trending shows.
/v1/github/profile/contributions returns the contribution graph for a handle and a calendar year, the current year by default.
They return GitHub's own record shapes under our naming rules (snake_case keys, string ids, ISO times) rather than the shared profile and post entities, so fields may change. Every GitHub endpoint is 20 credits a call. Calls that fail or find nothing are free.
No. There is no GitHub app, OAuth flow or review. One API key in the x-api-key header works for GitHub and the other 60 platforms.
Yes. Your first 10 calls priced at 100 credits or less are free, and the free plan includes 500 credits every month. No credit card is needed to get a key.
60 requests a minute and 10 requests in flight at once, per API key. Going over either returns a 429 with a Retry-After header, and a rejected request costs nothing. There is no daily quota: past those two limits, your credit balance is what bounds volume.
List endpoints return rows in data.items and a pagination object with next_cursor and has_more. Send next_cursor back unchanged as the cursor parameter for the next page, and stop when has_more is false. A handful of endpoints page with their own parameter instead; their reference pages name it.
No. A call that errors or finds nothing costs 0 credits. A live fetch costs the endpoint's price, or for a metered endpoint what it actually read. A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.
A call fetches live unless a recent copy is in the shared cache, and every response says which with the cached field; a cached answer costs 2 credits. Add fresh=1 or send Cache-Control: no-cache to skip the cache; that call is charged at the normal price.
Collecting publicly available data is generally treated differently from accessing private data, but the answer depends on your jurisdiction, GitHub's terms and what you do with personal data afterwards. The API reads public data only. Talk to a lawyer for anything commercial.
GitHub API guides
The same key works for 60 more platforms
- TikTok scraper API
- LinkedIn scraper API
- Twitter/X scraper API
- YouTube scraper API
- Reddit scraper API
- Pinterest scraper API
- Bluesky scraper API
- Truth Social scraper API
- Snapchat scraper API
- Telegram scraper API
- Twitch scraper API
- Kick scraper API
- Rumble scraper API
- Kwai scraper API
- Douyin scraper API
- Xiaohongshu (RedNote) scraper API
- Quora scraper API
- TikTok Shop scraper API
- Weibo scraper API
- Zhihu scraper API
- Substack scraper API
- Nextdoor scraper API
- Amazon scraper API
- App Store scraper API
- Apple Music scraper API
- Behance scraper API
- Dailymotion scraper API
- Deezer scraper API
- DEV Community scraper API
- Discord scraper API
- Dribbble scraper API
- Fandom scraper API
- Flickr scraper API
- Google Ads Transparency scraper API
- Google News scraper API
- Google Trends scraper API
- Gumroad scraper API
- Hacker News scraper API
- Hugging Face scraper API
- Ko-fi scraper API
- Lemmy scraper API
- Letterboxd scraper API
- Linktree scraper API
- Lnk.Bio scraper API
- Mastodon scraper API
- Medium scraper API
- MyAnimeList scraper API
- npm scraper API
- Polymarket scraper API
- Product Hunt scraper API
- Shopify scraper API
- SoundCloud scraper API
- Spotify scraper API
- Stack Overflow scraper API
- Stan Store scraper API
- Steam scraper API
- Vimeo scraper API
- Wikipedia scraper API
- Yahoo Finance scraper API
- Yelp scraper API