GitHub Context Extractor (LLM-Ready Markdown) avatar

GitHub Context Extractor (LLM-Ready Markdown)

Pricing

from $2.99 / 1,000 repository contexts

Go to Apify Store
GitHub Context Extractor (LLM-Ready Markdown)

GitHub Context Extractor (LLM-Ready Markdown)

Extract public repository metadata, full bounded README Markdown, contributors, and releases for LLM and RAG pipelines.

Pricing

from $2.99 / 1,000 repository contexts

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

22 days ago

Last modified

Categories

Features

Limited permissions

Share

Build bounded, source-backed context records for retrieval-augmented generation and code research. For each public owner/repository, the Actor collects repository metadata, the README body, ranked contributors, and recent releases from documented GitHub REST endpoints, and records the exact API URLs used. An optional caller-supplied token can raise the public rate limit; no private scope is required.

Get started

  1. Open the Actor Store page and select Try for free, or open the Input tab.
  2. Add public repositories to repositories in owner/repository form or as full GitHub URLs.
  3. Keep maxRepositories, maxContributors, and maxReleases small for the first run.
  4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open Run summary (OUTPUT_SUMMARY) to check requests and failures.

Input

All fields are optional. The defaults below are ready to use, and unsupported field names are rejected before requests start.

FieldTypeRequired?DefaultMeaning
repositoriesstring arrayOptional[]Public GitHub repository URLs or owner/repository values. Up to 20 entries.
maxRepositoriesintegerOptional5Maximum repositories processed in one run. 1–20.
includeReadmebooleanOptionaltrueFetch and include the public README body when available.
includeContributorsbooleanOptionaltrueFetch a bounded contributor list with logins and contribution counts.
maxContributorsintegerOptional5Maximum contributors attached to each repository. 1–20.
includeReleasesbooleanOptionaltrueFetch a bounded list of public releases.
maxReleasesintegerOptional5Maximum releases attached to each repository. 1–20.
githubTokenstringOptionalNot suppliedOptional token for public GitHub API requests. It is never written to dataset rows.
requestDelayMsintegerOptional250Minimum delay between public GitHub API requests, 0–5,000 ms.
timeoutMsintegerOptional30000Timeout for each GitHub API request, 5,000–120,000 ms.
maxResponseBytesintegerOptional5000000Safety cap for one public GitHub response, 100,000–50,000,000 bytes.

Full default input:

{
"repositories": [],
"maxRepositories": 5,
"includeReadme": true,
"includeContributors": true,
"maxContributors": 5,
"includeReleases": true,
"maxReleases": 5,
"requestDelayMs": 250,
"timeoutMs": 30000,
"maxResponseBytes": 5000000
}

The Actor reads the public repository, README, contributors, and releases endpoints through api.github.com. A supplied token is used only as an authorization header for public requests; it is not logged or written to the dataset.

Output

The dataset contains up to one row per requested repository. Optional sections are omitted or returned as empty arrays when the public source has nothing to return; no diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
repositoryobjectAlwaysRepository metadata. Contains id, fullName, name, ownerLogin, ownerType, description, htmlUrl, apiUrl, defaultBranch, language, topics, license, stars, forks, watchers, openIssues, isArchived, isFork, createdAt, updatedAt, and pushedAt.
readmeMarkdownstring | nullAlwaysBounded README body returned by the contents endpoint. Despite the field name, GitHub returned HTML markup in the observed row.
readmeobject | nullAlwaysREADME metadata: name, path, htmlUrl, downloadUrl, size, characterCount, wordCount, and truncated.
contributorsobject arrayAlwaysBounded contributor entries with login, profileUrl, avatarUrl, contributions, and type; empty when disabled or unavailable.
releasesobject arrayAlwaysBounded release entries with tagName, name, body, prerelease, draft, publishedAt, createdAt, and htmlUrl; empty when disabled or unavailable.
sourceUrlsobjectAlwaysExact public API URLs used for repository, readme, contributors, and releases.
retrievedAtstringAlwaysTime the repository context was retrieved, in ISO UTC.
scrapedAtstringNot observedAdditional row timestamp declared by the dataset schema; the saved row used retrievedAt instead.

The example below is a real saved row from the 2026-10-25 run. The repository topics, README text, release list, and release bodies are shortened.

{
"repository": {
"id": 66670819,
"fullName": "apify/crawlee",
"name": "crawlee",
"ownerLogin": "apify",
"ownerType": "Organization",
"description": "Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.",
"htmlUrl": "https://github.com/apify/crawlee",
"apiUrl": "https://api.github.com/repos/apify/crawlee",
"defaultBranch": "master",
"language": "TypeScript",
"topics": ["apify", "automation", "crawler", "crawling", "headless"],
"license": {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdxId": "Apache-2.0"
},
"stars": 26264,
"forks": 1731,
"watchers": 26264,
"openIssues": 147,
"isArchived": false,
"isFork": false,
"createdAt": "2016-08-26T18:35:03Z",
"updatedAt": "2026-10-25T20:34:24Z",
"pushedAt": "2026-10-25T20:37:43Z"
},
"readmeMarkdown": "<h1 align=\"center\">\n <a href=\"https://crawlee.dev\">\n <picture>\n <source media=\"(prefers-color-scheme: dark)\" …",
"readme": {
"name": "README.md",
"path": "README.md",
"htmlUrl": "https://github.com/apify/crawlee/blob/master/README.md",
"downloadUrl": "https://raw.githubusercontent.com/apify/crawlee/master/README.md",
"size": 7495,
"characterCount": 7479,
"wordCount": 825,
"truncated": false
},
"contributors": [
{ "login": "mnmkng", "profileUrl": "https://github.com/mnmkng", "avatarUrl": "https://avatars.githubusercontent.com/u/23726914?v=4", "contributions": 1149, "type": "User" },
{ "login": "renovate[bot]", "profileUrl": "https://github.com/apps/renovate", "avatarUrl": "https://avatars.githubusercontent.com/in/2740?v=4", "contributions": 929, "type": "Bot" },
{ "login": "B4nan", "profileUrl": "https://github.com/B4nan", "avatarUrl": "https://avatars.githubusercontent.com/u/615580?v=4", "contributions": 730, "type": "User" }
],
"releases": [
{ "tagName": "v4.0.0-rc.1", "name": "v4.0.0-rc.1", "body": "### Breaking since rc.0\n- `@crawlee/jsdom` and `@crawlee/linkedom` moved out of the monorepo (#4119) …", "prerelease": true, "draft": false, "publishedAt": "2026-10-06T13:48:23Z", "createdAt": "2026-10-06T10:05:26Z", "htmlUrl": "https://github.com/apify/crawlee/releases/tag/v4.0.0-rc.1" },
{ "tagName": "v3.18.2", "name": "v3.18.2", "body": "## [3.18.2](https://github.com/apify/crawlee/compare/v3.18.1...v3.18.2) (2026-09-29) …", "prerelease": false, "draft": false, "publishedAt": "2026-09-29T09:58:35Z", "createdAt": "2026-09-29T09:58:33Z", "htmlUrl": "https://github.com/apify/crawlee/releases/tag/v3.18.2" }
],
"sourceUrls": {
"repository": "https://api.github.com/repos/apify/crawlee",
"readme": "https://api.github.com/repos/apify/crawlee/readme",
"contributors": "https://api.github.com/repos/apify/crawlee/contributors?per_page=3",
"releases": "https://api.github.com/repos/apify/crawlee/releases?per_page=3"
},
"retrievedAt": "2026-10-25T20:45:09.777Z"
}

repository.stars, forks, watchers, and openIssues are point-in-time counters. readme.truncated indicates whether the bounded response cut the README short.

Run summary

Run summary is stored in the run's key-value store under OUTPUT_SUMMARY. The same key-value store also contains SOURCE_METADATA, which records the public API documentation URLs and the access policy used by the Actor.

FieldMeaning
statusActor process outcome: SUCCEEDED or FAILED.
runStatusCanonical run status; matches status.
dataStatusCompleteness of saved rows: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
repositoriesRequestedRepositories requested in the input.
repositoriesSucceededRepositories with a saved context row.
recordsPushedRecords written to the dataset.
normalCountNormal source-backed records written.
itemCountDataset rows saved.
diagnosticsOperational issues recorded; no diagnostic rows are written.
requestsPublic GitHub API requests attempted.
successfulRequestsRequests that completed successfully.
failedRequestsRequests that failed.
completedAtTime the summary was written, in ISO UTC.
StatusData statusMeaning
SUCCEEDEDCOMPLETEAll requested repositories produced a row without an extraction problem.
SUCCEEDEDPARTIALSome repositories were saved, but another request failed. Saved rows remain available.
SUCCEEDEDNO_RESULTSRequests completed cleanly and no repository could be emitted.
FAILEDFAILEDA fatal error occurred before any usable row was saved.

Example OUTPUT_SUMMARY from the 2026-10-25 run:

{
"status": "SUCCEEDED",
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"repositoriesRequested": 1,
"repositoriesSucceeded": 1,
"recordsPushed": 1,
"normalCount": 1,
"itemCount": 1,
"diagnostics": 0,
"requests": 4,
"successfulRequests": 4,
"failedRequests": 0,
"completedAt": "2026-10-25T20:45:09.924Z"
}

SOURCE_METADATA is a separate key, not part of this summary. It records the public API documentation and access policy:

FieldMeaning
repositoryApiDocumentation URL for the repository endpoint.
readmeApiDocumentation URL for the README contents endpoint.
contributorsApiDocumentation URL for the contributors endpoint.
releasesApiDocumentation URL for the releases endpoint.
rateLimitPolicyNote that unauthenticated public requests are rate-limited and an optional token may raise the limit.
accessPolicyNote that only public repository, README, contributor, and release responses are requested.

Coverage and limitations

The Actor reads only public repositories through documented GitHub REST endpoints. It cannot read private repositories, organisation-private content, or data the token is not entitled to. A repository that returns no README, no releases, or an empty contributor list still produces one metadata row; those sections are omitted or empty rather than invented. Repository size can make the README response large, so maxResponseBytes bounds each response and readme.truncated reports truncation.

Unauthenticated requests share GitHub's public rate limit. Supplying githubToken raises that limit for public reads, but the Actor does not request scopes, perform writes, log the token, or use undocumented endpoints. A repository-level failure is reported in the summary and does not create a diagnostic dataset row.

Usage and support

Cost depends on Apify compute and the number of repositories and bounded section requests. Start with one repository and the default maxContributors and maxReleases; raise them only after checking the output size. See the Actor's Pricing tab for current account rates.

Use the Actor Issues page to report a problem. Include the run ID, the input used, and the OUTPUT_SUMMARY; do not include tokens or private data. This Actor is not affiliated with GitHub. Use it only for public data and in accordance with GitHub's terms and applicable law. README and release text can contain personal information; handle it lawfully.