GitHub Discussions Scraper avatar

GitHub Discussions Scraper

Pricing

from $2.99 / 1,000 discussions

Go to Apify Store
GitHub Discussions Scraper

GitHub Discussions Scraper

Extracts public GitHub Discussions with titles, bodies, categories, authors, answer state, reactions, comments and replies from public repository pages.

Pricing

from $2.99 / 1,000 discussions

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

22 days ago

Last modified

Categories

Features

Limited permissions

Share

Collect public GitHub Discussions from repository and organization discussion pages. The Actor follows the public listing's next-page link within a bound, opens selected discussion pages, and saves titles, bodies, authors, categories, labels, answer state, timestamps, reactions, comment counts, and optional reply bodies. It uses public HTML pages, not a private API.

Get started

  1. Open the Actor Store page and choose Try for free, or open the Input tab.
  2. Add one or more repositories, such as community/community.
  3. Adjust query, maxDiscussionsPerRepository, and maxPagesPerRepository 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 pagination and detail-page counts.

Input

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

FieldTypeRequired?DefaultMeaning
repositoriesstring arrayOptional["community/community"]owner/repository slugs or full public GitHub URLs. Up to 20 entries.
querystringOptionalsort:date_created_descGitHub discussions_q filter, up to 200 characters. The default requests newest discussions first.
maxDiscussionsPerRepositoryintegerOptional5Maximum detail pages opened and discussion rows emitted per repository. 1–50.
maxPagesPerRepositoryintegerOptional2Maximum listing pages inspected per repository. Pagination follows the next-page link and preserves the query. 1–10.
includeRepliesbooleanOptionaltrueInclude parsed reply bodies, authors, reaction summaries, and timestamps.
maxRepliesintegerOptional20Maximum replies retained per discussion; the source comment count is still recorded. 0–100.
requestDelayMsintegerOptional250Delay between sequential public detail requests, 0–5,000 ms.
timeoutSecsintegerOptional30Timeout per listing or detail request, 5–120 seconds.
maxRequestRetriesintegerOptional1Retries for timeouts and transient 408, 429, or 5xx responses. Access blocks are not retried indefinitely. 0–3.

Full default input:

{
"repositories": ["community/community"],
"query": "sort:date_created_desc",
"maxDiscussionsPerRepository": 5,
"maxPagesPerRepository": 2,
"includeReplies": true,
"maxReplies": 20,
"requestDelayMs": 250,
"timeoutSecs": 30,
"maxRequestRetries": 1
}

The Actor reads anonymous public GitHub HTML and sends no credentials. Proxy configuration and caller tokens are not accepted.

Output

The dataset contains one row per discussion detail page. Missing optional values are omitted rather than inferred; no diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordTypestring | nullAlwaysDiscriminator; discussion in the saved rows.
recordIdstring | nullAlwaysStable ID derived from repository and discussion number, with a URL fallback.
dataAvailableboolean | nullAlwaysWhether the row contains source-backed discussion data.
accessStatusstring | nullAlwaysPublic access outcome, public in the saved rows.
extractionMethodstring | nullAlwaysTransport used, github_html in the saved rows.
detailStatusstring | nullAlwaysBounded detail-page outcome, succeeded in the saved rows.
repositorystring | nullAlwaysNormalized repository scope.
discussionNumberinteger | nullAlwaysPublic discussion number from the canonical URL.
discussionIdstring | nullAlwaysDiscussion identifier exposed in the page source.
titlestring | nullAlwaysDiscussion title.
bodystring | nullAlwaysOpening discussion body text.
authorLoginstring | nullAlwaysAuthor login when exposed.
authorUrlstring | nullAlwaysAuthor profile URL when exposed.
createdAtstring | nullAlwaysOpening-comment timestamp in ISO UTC.
updatedAtstring | nullNot observedUpdate timestamp when the page distinguishes it; not present in the saved rows.
statestring | nullAlwaysState text such as Unanswered or Answered.
isAnsweredboolean | nullAlwaysWhether the state text explicitly indicates Answered.
categoryNamestring | nullAlwaysDiscussion category name, including any emoji from the page.
categoryUrlstring | nullAlwaysCategory URL.
labelsobject array | nullAlwaysLabels with name and url; empty when no labels are shown.
commentCountinteger | nullAlwaysNumber of public comment bodies parsed from the detail page.
replyCountinteger | nullAlwaysNumber of parsed replies, independent of the bounded replies array.
repliesobject array | nullAlwaysBounded replies with body, createdAt, and reactions; empty when replies are disabled or absent.
reactionsobject array | nullAlwaysReaction summaries with name and count parsed from public comments.
reactionCountinteger | nullAlwaysSum of parsed reaction counts.
discussionUrlstring | nullAlwaysCanonical public discussion URL.
sourceUrlstring | nullAlwaysFinal detail URL fetched for the record.
searchUrlstring | nullAlwaysListing URL that produced the record.
pageNuminteger | nullAlwaysOne-based listing page number.
positioninteger | nullAlwaysOne-based position of the discussion link on its listing page.
scrapedAtstring | nullAlwaysTime the detail row was normalized, in ISO UTC.

The example below is a real saved row from the 2026-10-25 run. The body and reply text are shortened; label and reaction arrays are complete.

{
"recordType": "discussion",
"recordId": "github-discussion:community%2Fcommunity:211260",
"dataAvailable": true,
"accessStatus": "public",
"extractionMethod": "github_html",
"detailStatus": "succeeded",
"repository": "community/community",
"discussionNumber": 211260,
"discussionId": "11127994",
"title": "Workflow runs stuck in \"queued\" with zero jobs, cannot be cancelled (409 via API, 422 via web UI)",
"body": "🏷️ Discussion Type Bug 💬 Feature/Topic Area Workflow Configuration Discussion Details Repository: TRGamer-tech/Rezeptli (public) Workflow: .github/workflows/index-bauen.yml…",
"authorLogin": "TRGamer-tech",
"authorUrl": "https://github.com/TRGamer-tech",
"createdAt": "2026-10-25T20:17:08Z",
"state": "Unanswered",
"isAnswered": false,
"categoryName": "🚢 Actions",
"categoryUrl": "https://github.com/orgs/community/discussions/categories/actions",
"labels": [
{ "name": "Bug", "url": "https://github.com/orgs/community/discussions?discussions_q=label%3ABug" },
{ "name": "Actions", "url": "https://github.com/orgs/community/discussions?discussions_q=label%3AActions" },
{ "name": "Workflow Configuration", "url": "https://github.com/orgs/community/discussions?discussions_q=label%3A%22Workflow+Configuration%22" },
{ "name": "Welcome 🎉", "url": "https://github.com/orgs/community/discussions?discussions_q=label%3A%22Welcome+%F0%9F%8E%89%22" },
{ "name": "source:ui", "url": "https://github.com/orgs/community/discussions?discussions_q=label%3Asource%3Aui" }
],
"commentCount": 2,
"replyCount": 1,
"replies": [
{
"body": "💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us!…",
"createdAt": "2026-10-25T20:17:45Z",
"reactions": [{ "name": "upvote", "count": 0 }]
}
],
"reactions": [
{ "name": "upvote", "count": 1 },
{ "name": "upvote", "count": 0 }
],
"reactionCount": 1,
"discussionUrl": "https://github.com/orgs/community/discussions/211260",
"sourceUrl": "https://github.com/orgs/community/discussions/211260",
"searchUrl": "https://github.com/orgs/community/discussions",
"pageNum": 1,
"position": 1,
"scrapedAt": "2026-10-25T20:45:42.399Z"
}

replies represents parsed reply bodies, while replyCount reflects how many were found; maxReplies caps only the retained array. commentCount counts parsed comment bodies on the page and can differ from GitHub's displayed total when content is collapsed or unavailable.

Run summary

Run summary is stored separately from the dataset in the run's key-value store under OUTPUT_SUMMARY.

FieldMeaning
actorNameActor name.
statusActor process outcome: SUCCEEDED or FAILED.
runStatusCanonical run status; matches status.
dataStatusCompleteness of saved rows: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
dataAvailableWhether source-backed rows were saved.
repositoriesRepositories requested for the run.
querydiscussions_q filter used.
maxDiscussionsPerRepositoryPer-repository discussion limit.
maxPagesPerRepositoryPer-repository listing-page limit.
includeRepliesWhether reply parsing was enabled.
maxRepliesPer-discussion reply cap.
listPagesFetchedListing pages actually fetched.
discussionsDiscoveredDiscussion links discovered on listing pages.
detailPagesFetchedDetail pages actually requested.
recordsStoredComplete discussion rows saved.
recordCountRecord count reported by the saved summary. This legacy field is present in the saved OUTPUT_SUMMARY but is not declared by the key-value-store schema.
duplicatesSkippedDuplicate discussion identities skipped.
sourceBlockedWhether a public page was blocked or challenged.
errorCountTotal request or parsing errors recorded.
failureCountDetail-page failures recorded.
diagnosticCountOperational issues recorded; no diagnostic rows are written.
scrapedAtTime extraction finished, in ISO UTC.
StatusData statusMeaning
SUCCEEDEDCOMPLETEThe requested discussions were saved without an extraction problem.
SUCCEEDEDPARTIALSome discussions were saved, but a later detail page failed.
SUCCEEDEDNO_RESULTSListings completed cleanly and returned no discussions.
FAILEDFAILEDA fatal error occurred before any usable row was saved.

Example OUTPUT_SUMMARY from the 2026-10-25 run:

{
"actorName": "github-discussions-scraper",
"status": "SUCCEEDED",
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"dataAvailable": true,
"repositories": ["community/community"],
"query": "sort:date_created_desc",
"maxDiscussionsPerRepository": 5,
"maxPagesPerRepository": 2,
"includeReplies": true,
"maxReplies": 20,
"listPagesFetched": 1,
"discussionsDiscovered": 25,
"detailPagesFetched": 5,
"recordsStored": 5,
"recordCount": 5,
"duplicatesSkipped": 0,
"sourceBlocked": false,
"errorCount": 0,
"failureCount": 0,
"diagnosticCount": 0,
"scrapedAt": "2026-10-25T20:45:45.122Z"
}

Coverage and limitations

The Actor reads public discussion pages anonymously. It does not log in, read private repositories, call undocumented APIs, or recover content that GitHub does not render for anonymous visitors. Discussions can be organization-scoped rather than repository-scoped; the public URL is preserved in discussionUrl and the scope is recorded in repository.

Replies are parsed from the detail page and may be truncated by maxReplies; replyCount still records how many were observed. Reaction summaries repeat names when GitHub renders multiple reaction groups, so reactionCount is a sum of parsed counts rather than a unique-user total. A detail-page failure is recorded in the summary and never creates a fabricated row.

Usage and support

Cost depends on Apify compute, the number of repositories, listing pages, and detail pages. Start with one repository and small maxPagesPerRepository and maxDiscussionsPerRepository values. See the Actor's Pricing tab for current 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, cookies, 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. Discussions can contain personal information; handle it lawfully.