Scraper APIGitHub
github.releases
The releases of a public GitHub repository, newest first: tag, title, notes, dates, author, and the attached files with their download counts.
- Id
github.releases- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/github.releases/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
repositoryrequired | string | The repository as owner/name, e.g. pallets/flask, or its address on github.com.Limit: at least 3 characters, at most 300 characters. |
max_results | integer | Releases a page, newest first; 100 at most.Limit: 1 to 100. Default: 30. |
page | integer | The page of the release list, from 1.Limit: 1 to 100. Default: 1. |
- Releases are returned newest first, each with the files attached to it: name, size, media type, download count and address. Drafts are never public and are not returned.
- A repository that tags its versions without publishing releases has none: the run ends
okwith zero records. - A page of releases with very many files can be too large to read: the run ends
failedwithpage_too_large. Ask for fewer withmax_results.
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
position | integer | The release's place in the repository's list, newest first, from 1. |
repository | string | The repository as owner/name. |
tag | string | The git tag the release is made from, e.g. "v3.1.3". |
url | string or null | The release's page on github.com. |
release_id | integer or null | GitHub's numeric id of the release. |
name | string or null | The release's title; null when it has none beside its tag. |
body | string or null | The release notes as written (Markdown); null when there are none. |
is_prerelease | boolean | True when the release is marked as a pre-release.Default: false. |
target | string or null | The branch or commit the tag was created from. |
author | string or null | The login of the account that published the release. |
created_at | string (date-time) or null | When the tagged commit was made, in UTC. |
published_at | string (date-time) or null | When the release was published, in UTC. |
assets | array of object | The files attached to the release, without the source archives GitHub adds by itself. |
name (in assets[]) | string | The file's name, e.g. "flask-3.1.3-py3-none-any.whl". |
url (in assets[]) | string or null | The address the file downloads from. |
size_bytes (in assets[]) | integer or null | The file's size in bytes. |
content_type (in assets[]) | string or null | The file's media type, e.g. "application/zip". |
download_count (in assets[]) | integer or null | How often the file was downloaded. |
updated_at (in assets[]) | string (date-time) or null | When the file was last uploaded, in UTC. |
tarball_url | string or null | The address of the source code at the tag as a .tar.gz archive. |
zipball_url | string or null | The address of the source code at the tag as a .zip archive. |
reactions | integer or null | How many reactions the release has; null when it has none. |
fetched_at | string (date-time) | When the releases were read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/github.releases/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"repository":"pallets/flask","max_results":3}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("github.releases", {
"repository": "pallets/flask",
"max_results": 3,
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("github.releases", {
repository: "pallets/flask",
max_results: 3,
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "github.releases", map[string]any{"repository": "pallets/flask", "max_results": 3})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("github.releases", Map.of("repository", "pallets/flask", "max_results", 3));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run github.releases --input repository=pallets/flask --input max_results=3Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"repository": "pallets/flask",
"max_results": 3
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "github.releases",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"repository": "pallets/flask",
"max_results": 3
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"position": 1,
"repository": "pallets/flask",
"tag": "3.1.3",
"url": "https://github.com/pallets/flask/releases/tag/3.1.3",
"release_id": 287999283,
"name": null,
"body": "This is the Flask 3.1.3 security fix release, which fixes a security issue but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.\r\n\r\nPyPI: … [truncated]",
"is_prerelease": false,
"target": "main",
"author": "github-actions[bot]",
"created_at": "2026-02-19T04:56:48Z",
"published_at": "2026-02-19T05:01:30Z",
"assets": [
{
"name": "flask-3.1.3-py3-none-any.whl",
"url": "https://github.com/pallets/flask/releases/download/3.1.3/flask-3.1.3-py3-none-any.whl",
"size_bytes": 103424,
"content_type": "application/octet-stream",
"download_count": 845,
"updated_at": "2026-02-19T04:57:18Z"
},
{
"name": "flask-3.1.3.tar.gz",
"url": "https://github.com/pallets/flask/releases/download/3.1.3/flask-3.1.3.tar.gz",
"size_bytes": 759004,
"content_type": "application/x-gtar",
"download_count": 747,
"updated_at": "2026-02-19T04:57:18Z"
}
],
"tarball_url": "https://api.github.com/repos/pallets/flask/tarball/3.1.3",
"zipball_url": "https://api.github.com/repos/pallets/flask/zipball/3.1.3",
"reactions": 27,
"fetched_at": "2026-11-19T18:07:40.268904Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
body: 534 characters, the first 204 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the GitHub scrapers are in their own section there.