GitHub Social API

Programmatically interact with GitHub's social features to build custom integrations and tools.

API Features

Powerful tools to integrate GitHub Social into your workflow

Authentication

Secure OAuth2 integration and token management

REST & GraphQL

Flexible REST API and powerful GraphQL interface

Webhooks

Real-time event notifications for social activity

Rate Limits

Configurable rate limits for safe API usage

API Endpoint Examples

GET /api/v1/user/activity

Fetch user's latest social activity

curl -X GET "https://api.github.com/social/v1/user/activity" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Accept: application/json"
Sample Response
{
  "events": [
    {
      "type": "repository.forked",
      "repo": "octocat/Hello-World",
      "actor": "octocat",
      "timestamp": "2025-03-15T12:34:56Z"
    },
    {
      "type": "issue.created",
      "repo": "torvalds/linux",
      "actor": "linus",
      "timestamp": "2025-03-15T10:22:11Z"
    }
  ],
  "pagination": {
    "next_page": 2,
    "total_pages": 5
  }
}
                        

POST /api/v1/orgs

Create a new organization

curl -X POST "https://api.github.com/social/v1/orgs" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "NewOrg", "description": "This is a new organization", "visibility": "public" }'
Sample Response
{
  "id": "org_12345",
  "name": "NewOrg",
  "description": "This is a new organization",
  "created_at": "2025-03-15T12:34:56Z",
  "visibility": "public",
  "members_count": 1
}
                        

Client Libraries

Official SDKs for popular languages and frameworks

```