# github.releases

The releases of a public GitHub repository, newest first: tag, title, notes, dates, author, and the attached files with their download counts.

GitHub releases, one of the GitHub scrapers.

| | |
| --- | --- |
| 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](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `repository` | string | yes | 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 | no | Releases a page, newest first; 100 at most. Limit: 1 to 100. Default: `30`. |
| `page` | integer | no | 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 `ok` with zero records.
- A page of releases with very many files can be too large to read: the run ends `failed` with `page_too_large`. Ask for fewer with `max_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. |
| `assets[].name` | string | The file's name, e.g. "flask-3.1.3-py3-none-any.whl". |
| `assets[].url` | string or null | The address the file downloads from. |
| `assets[].size_bytes` | integer or null | The file's size in bytes. |
| `assets[].content_type` | string or null | The file's media type, e.g. "application/zip". |
| `assets[].download_count` | integer or null | How often the file was downloaded. |
| `assets[].updated_at` | 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

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
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}}'
```

## 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`.

```json
{
  "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.

```json
{
  "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](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the GitHub scrapers](https://docs.enrichednow.com/results-and-statuses.md#github) are in their own section there.
