Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 2.17 KB

File metadata and controls

69 lines (56 loc) · 2.17 KB

GitHub Activity Stream — REST API & cURL examples

Run the hosted GitHub Activity Stream over HTTP. Replace YOUR_TOKEN with your Apify API token (apify.com → Settings → Integrations). The Actor ID is logiover~github-activity-stream.

Run and get dataset items in one request (recommended)

curl -X POST \
  "https://api.apify.com/v2/acts/logiover~github-activity-stream/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "repo",
    "repos": ["microsoft/vscode"],
    "since": "2026-06-29",
    "maxPerType": 200
  }'

Release-only watch across several repos, as CSV

curl -X POST \
  "https://api.apify.com/v2/acts/logiover~github-activity-stream/run-sync-get-dataset-items?token=YOUR_TOKEN&format=csv" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "bulk",
    "repos": ["facebook/react", "vercel/next.js"],
    "eventTypes": ["releases"],
    "since": "2026-06-01"
  }' \
  -o releases.csv

Org-wide activity scan

curl -X POST \
  "https://api.apify.com/v2/acts/logiover~github-activity-stream/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "org",
    "org": "kubernetes",
    "maxOrgRepos": 15,
    "eventTypes": ["pulls", "releases"],
    "since": "2026-06-01"
  }'

Start a large run asynchronously and fetch later

# Start
curl -X POST \
  "https://api.apify.com/v2/acts/logiover~github-activity-stream/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "mode": "repo", "repos": ["microsoft/vscode"], "maxPerType": 1000 }'

# Poll status (data.id from the response)
curl "https://api.apify.com/v2/actor-runs/RUN_ID?token=YOUR_TOKEN"

# Fetch items (data.defaultDatasetId)
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?token=YOUR_TOKEN&format=json&clean=true"

Notes

  • format = json | csv | xlsx | xml | jsonl; clean=true strips Apify metadata fields.
  • Set since on every scheduled run to pull only new events (delta runs).
  • Runs that match nothing (deleted / empty / private repo) return no rows.