# GitHub User & Repository Info Scraper (`jahrim/github-user-info-scraper`) Actor

Récupère le profil public, les dépôts, les organisations et (optionnellement) les dépôts starrés pour un ou plusieurs utilisateurs GitHub, via l'API officielle GitHub.

- **URL**: https://apify.com/jahrim/github-user-info-scraper.md
- **Developed by:** [Valisoa Mirija](https://apify.com/jahrim) (community)
- **Categories:** AI, Automation, Jobs
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## GitHub User & Repository Info Scraper

Cet actor récupère, pour une liste d'utilisateurs ou d'organisations GitHub, leur profil public complet, leurs dépôts, leurs organisations d'appartenance et (optionnellement) leurs dépôts starrés. Les données proviennent directement de l'API officielle GitHub (pas de scraping HTML), ce qui garantit des résultats fiables et conformes aux conditions d'utilisation de GitHub.

### Input

| Champ | Type | Description |
|---|---|---|
| `usernames` | array (requis) | Liste de logins GitHub (utilisateurs ou organisations) à interroger |
| `githubToken` | string (secret) | Token d'accès personnel GitHub. Sans token : 60 requêtes/heure. Avec token : 5000 requêtes/heure |
| `includeRepositories` | boolean | Récupère la liste des dépôts publics de chaque utilisateur (défaut : true) |
| `includeOrganizations` | boolean | Récupère les organisations auxquelles chaque utilisateur appartient (défaut : true) |
| `includeStarredRepos` | boolean | Récupère la liste des dépôts mis en favori (starred) par chaque utilisateur (défaut : false) |
| `maxItemsPerEndpoint` | integer | Nombre maximum d'éléments à récupérer par endpoint paginé (dépôts, organisations, starred) pour chaque utilisateur (défaut : 100, max : 1000) |

#### Comment créer un token GitHub

Settings → Developer settings → Personal access tokens → Generate new token (fine-grained ou classic). Aucun scope particulier n'est nécessaire pour des données publiques ; un token sans scope suffit à débloquer la limite de 5000 requêtes/heure au lieu de 60.

### Output

Chaque utilisateur produit un item dans le dataset par défaut. Structure complète :

```json
{
  "profile": {
    "login": "torvalds",
    "id": 1024025,
    "node_id": "MDQ6VXNlcjEwMjQwMjU=",
    "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
    "html_url": "https://github.com/torvalds",
    "type": "User",
    "site_admin": false,
    "name": "Linus Torvalds",
    "company": "Linux Foundation",
    "blog": "",
    "location": "Portland, OR",
    "email": null,
    "hireable": null,
    "bio": null,
    "twitter_username": null,
    "public_repos": 12,
    "public_gists": 1,
    "followers": 307935,
    "following": 0,
    "created_at": "2011-09-03T15:26:22Z",
    "updated_at": "2026-06-17T17:35:14Z"
  },
  "repositories": [
    {
      "id": 2325298,
      "name": "linux",
      "full_name": "torvalds/linux",
      "private": false,
      "html_url": "https://github.com/torvalds/linux",
      "description": "Linux kernel source tree",
      "fork": false,
      "created_at": "2011-09-04T22:48:12Z",
      "updated_at": "2026-06-18T14:28:15Z",
      "pushed_at": "2026-06-17T19:39:08Z",
      "homepage": "",
      "size": 6195147,
      "stargazers_count": 236849,
      "watchers_count": 236849,
      "language": "C",
      "forks_count": 62758,
      "archived": false,
      "disabled": false,
      "open_issues_count": 3,
      "license": { "key": "other", "name": "Other" },
      "topics": [],
      "visibility": "public",
      "default_branch": "master"
    }
  ],
  "organizations": [
    {
      "login": "nom-organisation",
      "id": 123456,
      "avatar_url": "https://avatars.githubusercontent.com/u/123456?v=4",
      "description": "Description de l'organisation"
    }
  ],
  "starredRepositories": []
}
````

#### Champs du profil

| Champ | Description |
|---|---|
| `login` | Nom d'utilisateur GitHub |
| `id` / `node_id` | Identifiants uniques GitHub (utile pour déduplication) |
| `avatar_url` | URL de la photo de profil |
| `html_url` | URL publique du profil |
| `type` | `User` ou `Organization` |
| `name` | Nom complet affiché sur le profil |
| `company` | Entreprise renseignée par l'utilisateur |
| `blog` | Site web ou blog personnel |
| `location` | Localisation déclarée |
| `email` | Email public (souvent `null` sauf si rendu public volontairement) |
| `hireable` | L'utilisateur se déclare-t-il disponible à l'emploi ? |
| `bio` | Biographie du profil |
| `twitter_username` | Nom d'utilisateur Twitter/X lié |
| `public_repos` | Nombre total de dépôts publics |
| `public_gists` | Nombre de gists publics |
| `followers` / `following` | Réseau social GitHub |
| `created_at` | Date de création du compte |
| `updated_at` | Date de dernière mise à jour du profil |

#### Champs des dépôts

| Champ | Description |
|---|---|
| `name` / `full_name` | Nom court et nom complet (`login/repo`) |
| `description` | Description du dépôt |
| `fork` | `true` si c'est un fork d'un autre dépôt |
| `html_url` | URL publique du dépôt |
| `homepage` | Site web associé au projet |
| `language` | Langage principal détecté par GitHub |
| `stargazers_count` | Nombre d'étoiles |
| `forks_count` | Nombre de forks |
| `open_issues_count` | Nombre d'issues ouvertes |
| `topics` | Tags associés au dépôt |
| `license` | Licence du projet |
| `archived` | Dépôt archivé (read-only) |
| `created_at` / `pushed_at` | Date de création et de dernier push |
| `visibility` | `public` ou `private` (toujours `public` ici) |
| `default_branch` | Branche par défaut (`main` ou `master`) |

### Cas d'usage

- Audit de présence GitHub pour une organisation ou une liste de développeurs.
- Veille concurrentielle sur des projets open source.
- Constitution d'une base de données de profils développeurs pour le sourcing.
- Alimentation d'un pipeline de traitement (n8n, Make, scripts Python) pour enrichissement ultérieur.

### Limites

- Données **publiques uniquement**. L'API GitHub ne donne pas accès aux informations privées sans autorisation OAuth dédiée.
- L'email est fréquemment `null` : la plupart des utilisateurs ne le rendent pas public sur leur profil.
- Soumis aux **limites de taux de l'API GitHub** : 60 requêtes/heure sans token, 5000 avec un token personnel.
- Le champ `starredRepositories` peut contenir un grand nombre d'items et consommer beaucoup de quota : il est désactivé par défaut.

# Actor input Schema

## `usernames` (type: `array`):

Liste de logins GitHub (utilisateurs ou organisations) pour lesquels récupérer les informations.

## `githubToken` (type: `string`):

Optionnel mais fortement recommandé. Sans token, GitHub limite à 60 requêtes/heure ; avec un token, la limite passe à 5000 requêtes/heure.

## `includeRepositories` (type: `boolean`):

Récupère la liste des dépôts publics de chaque utilisateur.

## `includeOrganizations` (type: `boolean`):

Récupère les organisations auxquelles chaque utilisateur appartient.

## `includeStarredRepos` (type: `boolean`):

Récupère la liste des dépôts mis en favori (starred) par chaque utilisateur.

## `maxItemsPerEndpoint` (type: `integer`):

Nombre maximum d'éléments à récupérer par endpoint paginé (dépôts, organisations, starred) pour chaque utilisateur.

## Actor input object example

```json
{
  "usernames": [
    "apify"
  ],
  "includeRepositories": true,
  "includeOrganizations": true,
  "includeStarredRepos": false,
  "maxItemsPerEndpoint": 100
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "usernames": [
        "apify"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jahrim/github-user-info-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "usernames": ["apify"] }

# Run the Actor and wait for it to finish
run = client.actor("jahrim/github-user-info-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "usernames": [
    "apify"
  ]
}' |
apify call jahrim/github-user-info-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jahrim/github-user-info-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "GitHub User & Repository Info Scraper",
        "description": "Récupère le profil public, les dépôts, les organisations et (optionnellement) les dépôts starrés pour un ou plusieurs utilisateurs GitHub, via l'API officielle GitHub.",
        "version": "0.1",
        "x-build-id": "nITqH9hUba3oPuHSC"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/jahrim~github-user-info-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-jahrim-github-user-info-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/jahrim~github-user-info-scraper/runs": {
            "post": {
                "operationId": "runs-sync-jahrim-github-user-info-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/jahrim~github-user-info-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-jahrim-github-user-info-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "usernames"
                ],
                "properties": {
                    "usernames": {
                        "title": "Noms d'utilisateurs GitHub",
                        "type": "array",
                        "description": "Liste de logins GitHub (utilisateurs ou organisations) pour lesquels récupérer les informations.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "githubToken": {
                        "title": "Token d'accès personnel GitHub",
                        "type": "string",
                        "description": "Optionnel mais fortement recommandé. Sans token, GitHub limite à 60 requêtes/heure ; avec un token, la limite passe à 5000 requêtes/heure."
                    },
                    "includeRepositories": {
                        "title": "Inclure les dépôts",
                        "type": "boolean",
                        "description": "Récupère la liste des dépôts publics de chaque utilisateur.",
                        "default": true
                    },
                    "includeOrganizations": {
                        "title": "Inclure les organisations",
                        "type": "boolean",
                        "description": "Récupère les organisations auxquelles chaque utilisateur appartient.",
                        "default": true
                    },
                    "includeStarredRepos": {
                        "title": "Inclure les dépôts starrés",
                        "type": "boolean",
                        "description": "Récupère la liste des dépôts mis en favori (starred) par chaque utilisateur.",
                        "default": false
                    },
                    "maxItemsPerEndpoint": {
                        "title": "Nombre max d'éléments par endpoint",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Nombre maximum d'éléments à récupérer par endpoint paginé (dépôts, organisations, starred) pour chaque utilisateur.",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
