Endpoint
GET /v1/webset/github/person
POST /v1/webset/github/person
Both GET and POST methods are supported. Use POST for batch requests or when query strings become too long.
Authentication
Bearer token with your API key: Bearer YOUR_API_KEY
See the Authentication Guide for detailed setup instructions.
Request Parameters
Identifier (Required)
GitHub user identifier. Can be:
- Username (e.g.,
torvalds)
- Full profile URL (e.g.,
https://github.com/torvalds)
- User ID (e.g.,
1024025)
Optional Parameters
Additional data sources to include in the response.Available addons:
linkedin - Attach LinkedIn profile data for users with linked accounts (~5M mappings)
Example: addons=linkedin
Required fields that must be present in the profile. If any specified field is missing, returns an empty object {} and you are not charged.Multiple fields are treated as OR (profile must have at least one).Common fields:
personal_email - Must have a personal email
repos - Must have repositories
linkedin - Must have a LinkedIn mapping
location - Must have location data
Example: must_have=personal_email,repos
Response
Success Response (200 OK)
Returns a JSON object containing the enriched GitHub user profile.
User’s first name (parsed from available data)
User’s last name (parsed from available data)
School/university email address
Additional email addresses found
Personal website/blog URL
Location string from GitHub profile
Structured location data with city, state, country, continent, coordinates
Company name from GitHub profile
Whether the user is marked as hireable
Number of GitHub followers
Number of accounts the user follows
Number of public repositories
Account creation date (ISO 8601)
Last profile update date (ISO 8601)
Array of repository objects with metadata (name, description, language, stars, forks, topics, etc.)
Array of recent commits with author info, message, date, and repository context
Array of starred repositories with metadata
Array of issues created or commented on
List of programming languages used across repositories
Array of follower account objects
Array of accounts the user follows
LinkedIn profile data (when addons=linkedin is specified). Includes professional experience, education, skills, certifications, and more.
When this profile was last enriched (ISO 8601)
No Match Response (200 OK)
When no matching profile is found or required fields are missing:
Error Responses
Missing required parameters or invalid parameter values
Invalid or missing API key
500 Internal Server Error
Server error occurred
Examples
curl -X GET "https://api.peoplecontext.com/v1/webset/github/person?github=torvalds&addons=linkedin" \
-H "Authorization: Bearer YOUR_API_KEY"
Sample Response
{
"user_id": 1024025,
"github_username": "torvalds",
"first_name": "Linus",
"last_name": "Torvalds",
"full_name": "Linus Torvalds",
"personal_email": "[email protected]",
"avatar_url": "https://avatars.githubusercontent.com/u/1024025",
"url": "https://github.com/torvalds",
"bio": "Creator of Linux and Git",
"blog": "https://torvalds-family.blogspot.com",
"location": "Portland, OR",
"location_canonical": {
"city": "Portland",
"state": "Oregon",
"country": "United States",
"country_code": "US",
"continent": "North America",
"latitude": 45.5152,
"longitude": -122.6784
},
"company": "@linuxfoundation",
"hireable": false,
"followers": 180000,
"following": 0,
"public_repos": 6,
"public_gists": 0,
"created_at": "2011-09-03T15:26:22Z",
"updated_at": "2025-09-01T12:00:00Z",
"repos": [
{
"id": 2325298,
"name": "linux",
"full_name": "torvalds/linux",
"description": "Linux kernel source tree",
"language": "C",
"stargazers_count": 150000,
"forks_count": 48000,
"topics": ["kernel", "linux", "operating-system"],
"created_at": "2011-09-04T22:48:12Z",
"updated_at": "2025-09-01T10:30:00Z"
}
],
"commits": [
{
"sha": "abc123...",
"message": "Merge branch 'core-urgent-for-linus'",
"author_name": "Linus Torvalds",
"author_email": "[email protected]",
"author_login": "torvalds",
"author_date": "2025-08-30T15:22:10Z",
"repo": {
"full_name": "torvalds/linux",
"language": "C"
}
}
],
"repo_languages": ["C", "Assembly", "Makefile"],
"commit_count": 35000,
"last_updated": "2025-09-01T00:00:00Z",
"linkedin": {
"full_name": "Linus Torvalds",
"headline": "Creator of Linux",
"current_position": {
"summary": "Fellow at Linux Foundation",
"company": {
"name": "Linux Foundation",
"linkedin_url": "https://www.linkedin.com/company/the-linux-foundation"
}
}
}
}
Best Practices
Use must_have to optimize costs: Only pay for profiles that meet your requirements. For example, must_have=personal_email ensures you only get charged for profiles with email addresses.
Rate Limits: API requests are subject to rate limits based on your plan. If you need higher limits, contact [email protected].
Data Freshness: GitHub data is refreshed monthly. Check the last_updated field to see when a profile was last enriched.