Developer tools5 min readBy Purrkey teamUpdated

How to fetch a GitHub user profile by handle

Get a GitHub user's public profile and counts from one handle

On this page

You have 40 GitHub handles from a contributor export and need a consistent profile snapshot before a sourcing review. Run each handle through anyapi.github.user and compare followers, public repos, company, location, and profile URL. The table below is the deliverable design for that review, with one row per handle. No run has been executed for this guide, so the values shown are placeholders that show the shape

Example input and snapshot table

Example input, replace it with a handle from your export:

Handle
octocat

The output table has one row per requested handle and these columns: found, login, name, bio, company, location, followers, following, publicRepos, profileUrl. Values here are placeholders showing the shape

foundloginnamebiocompanylocationfollowersfollowingpublicReposprofileUrl
true(handle)(display name)(bio text)(company)(location)000(profile URL)

Keep the table narrow enough for review. The name field is an empty string when unset, per the contract. A row with found: false stays in the table so the review records which handles did not resolve

If you still need the handle list, the companion article on listing GitHub repository contributors covers that step

Input the tool takes

The required field for anyapi.github.user is handle, described as the GitHub username. Take the username from a GitHub profile URL or from the contributor export, then pass it as handle. Agents call it through POST /v1/runs with toolId anyapi.github.user

A handle that is not present returns found: false, data: null and reason: not_found. That is a successful call, not an error, and the call has a cost. The tool cannot produce a profile record for that handle, so the row keeps the missing status instead of a guessed profile

Reading the output for a sourcing review

Start with found. When it is true, read login and profileUrl to identify the account and keep the row tied to the export. When it is false, data is null and reason is not_found; the row is a missing profile, not a failed run

The counts drive the review order. followers, following and publicRepos are integers on the data record. Compare those counts across the 40 handles, then read company, location and bio for context before you decide which accounts to prioritize for outreach or vetting. name is the display name, and it can be an empty string when unset

The table is a snapshot, not a score. Use company and location as filters, followers and publicRepos as scale signals, and profileUrl as the link back to the source. If found is false, leave the count cells blank; the output still carries reason: not_found

Richer fields are returned when available, per the contract. company, location, blog, twitterUsername, type, publicGists and createdUtc are part of the profile record when the provider has data for the entity. The type field indicates the account type. avatarUrl and id are also in the record, but the review table does not need them for the first pass. Leave those cells empty when the response does not include them rather than inferring a value. The decision stays with the reviewer; the table is a snapshot for comparison

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch a GitHub
user profile for each handle below. Check the current inputs and price of
anyapi.github.user before running anything. Call the tool once per handle
and return a table with found, login, name, bio, company, location,
followers, following, publicRepos and profileUrl. Keep a not-found row as
found false with data null and reason not_found. Do not guess a profile.

Example handle: octocat

Run the prompt on the example handle first, then replace it with the 40 handles from the export. Keep the first check to the example so you can see the row shape before the review

Estimated tool cost

Prices from the Purrkey catalog, read November 13, 2026. The tool is listed as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
One profile lookupcalls x max price$0.0036 per call1$0.0036
40-handle reviewcalls x max price$0.0036 per call40$0.144
40-handle plan$0.144

The one-lookup row is a shape check. The 40-handle review is the task scope, and each handle is one call. If a handle is not found, the call still counts as successful and the planned quantity does not change. Agent model fees are not counted

Next action

Open GitHub user profile lookup to check the current inputs and price for anyapi.github.user, then run the example handle before the 40-handle review

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with GitHub.
Explore GitHub tools and pricing

FAQ

How do I fetch a GitHub user profile by handle?

Pass the handle to anyapi.github.user with the handle field. The call returns found and data, and the data record carries fields such as login, name, followers and publicRepos.

What input does anyapi.github.user take?

It takes a required handle string, which is the GitHub username. The input schema also lists username as an alias for handle.

What fields are in the GitHub user profile output?

The output has found and data. The data record can include login, name, bio, company, location, followers, following, publicRepos and profileUrl, with richer fields returned when available.

What happens when a GitHub handle is not found?

The call returns found: false, data: null and reason: not_found. That is a successful call, not an error.

How much does a 40-handle GitHub profile review cost?

At the listed max_call price of $0.0036 per call, 40 calls are at most $0.144. The table total is a ceiling, and agent model fees are not counted.

Can I use username instead of handle?

Yes. The input schema lists username as an alias for handle.

What does the example handle octocat show?

The example handle octocat is shown for the prompt and is replaced with a handle from the contributor export. A not-found handle returns found: false with reason: not_found.

Next step

Try this with GitHub

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See GitHub tools

Share this article