Spiral gives your agent every tool with one account. Browse the tools →

Grok · Data

How to Use GitHub user contributions in Grok

GitHub user contributions returns a yearly contribution graph with an annual total, dated daily counts, and intensity levels. Use it to build contribution calendars or summarize a public open source creator's activity over time.

Prompts to try with GitHub user contributions in Grok

Copy an example into Grok, or ask in your own words.

Use GitHub user contributions for torvalds in 2025 and show the annual total plus a table of monthly contribution counts.

GitHub user contributionsGrok
Try asking
  • Use GitHub user contributions for kentcdodds in 2025 and find the five dates with the most contributions.

  • Use GitHub user contributions for sindresorhus in 2024 and 2025 and compare the annual totals and each year's busiest month.

  • Use GitHub user contributions for torvalds in 2025 and count how many days had contributions in each quarter.

  • Use GitHub user contributions for kentcdodds in 2025 and draft an open source activity recap using only the returned counts, without guessing what the work involved.

How to set up GitHub user contributions in Grok

Pick the way that suits you. Each takes about two minutes.

Use the Grok connector

  1. Add a custom connector

    In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

    https://api.spiral.ai/mcp
  2. Sign in to Spiral and approve

    Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

  3. Check that it is connected

    Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

Use the Spiral skill

  1. Send Grok this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run GitHub user contributions

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "scrapecreators",
        "model": "scrapecreators/github-user-contributions",
        "input": {
          "url": "https://github.com/torvalds"
        }
      }'

Then paste one of the prompts above: Grok finds GitHub user contributions on Spiral, shows the price and runs it.

GitHub user contributions providers and prices

Spiral runs GitHub user contributions through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsData
GitHub · Contributions
scrapecreators/github-user-contributions

Settings you can ask for

Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Yeara number

Contribution graph year. Defaults to the current year.

Every API field of GitHub · Contributions is on its tool page: open its card above.

What can you do with GitHub user contributions in Grok?

Turn a public open source creator's yearly GitHub graph into a readable activity recap. A chat app can calculate monthly totals and explain the visibility limits behind the counts.

Build a contribution calendar

Turn a public open source creator's dated counts into a yearly heatmap with exact counts available for each day.

Prepare an annual open source recap

Summarize a public creator's annual total, busiest month, and number of days with recorded contributions.

Compare completed years

Compare annual totals and monthly distributions for the same public creator across two completed years.

Create a monthly activity digest

Aggregate daily counts into a monthly table for a public creator's open source newsletter.

Check historical count revisions

Compare saved graphs with newly retrieved graphs for the same public account and year, listing dates whose counts changed.

Export chart data

Convert a public creator's daily counts and intensity levels into CSV for a contribution chart or an accessible table.

Questions about GitHub user contributions in Grok

Can Grok use GitHub user contributions?

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run GitHub user contributions like any built-in tool.

How much does GitHub user contributions cost in Grok?

$0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

Do I need a ScrapeCreators account to use GitHub user contributions in Grok?

No. Spiral runs GitHub user contributions on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

How long does it take to set up GitHub user contributions in Grok?

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

Does Grok wait while GitHub user contributions runs?

GitHub user contributions runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.

What does the contribution graph return?

It returns one year of GitHub contribution data, including an annual total and dated daily counts with intensity levels. The documented response also includes a color value, which can be null.

How quickly do new commits appear?

GitHub says a qualifying commit can take up to 24 hours to appear on the contribution graph. A same-day count can therefore be incomplete.

Does the graph count commits on every branch?

No. Commits count only on the repository's default branch or gh-pages branch, so the calendar does not represent every commit across every branch.

Can visible counts include work in private repositories?

Yes, if the account chooses to publicize private contributions. GitHub exposes daily counts to viewers without repository access while withholding the underlying details.

Which time zone determines a commit's contribution day?

GitHub uses the time zone recorded in the commit timestamp. Keep the returned calendar date when grouping daily counts.

Get started

Start using GitHub user contributions in Grok

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok:

Set up Grok

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options