{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repo Health Checker – Awesome-List Link Audit",
    "description": "Is a GitHub repo still alive? Stars, forks, last commit, issues, archived flag, license and an active/stale/dead score for repo lists or awesome-lists. Official GitHub API. By Mike Start Games. This is not personalized advice. Material created also with the use of AI tools.",
    "version": "1.0",
    "x-build-id": "ewluhTcy8vG1fToLT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mikestart~github-repo-health/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mikestart-github-repo-health",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/mikestart~github-repo-health/runs": {
      "post": {
        "operationId": "runs-sync-mikestart-github-repo-health",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/mikestart~github-repo-health/run-sync": {
      "post": {
        "operationId": "run-sync-mikestart-github-repo-health",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "repos": {
            "title": "Repositories",
            "type": "array",
            "description": "GitHub repositories to check, one per line. Accepted: <code>owner/repo</code>, <code>https://github.com/owner/repo</code> (any sub-page such as /tree/main is fine) or <code>git@github.com:owner/repo.git</code>. Entries that are not repositories (topics, orgs, other hosts) are ignored and listed in the run SUMMARY.",
            "items": {
              "type": "string"
            }
          },
          "awesomeListUrls": {
            "title": "Awesome-list URLs",
            "type": "array",
            "description": "Lists to extract GitHub repository links from. Accepted: a GitHub repository URL (its README is read, 1 API request), a GitHub file URL (<code>/blob/…</code>, read from raw.githubusercontent.com without API quota) or any raw Markdown / JSON / YAML / HTML URL. Links are de-duplicated; non-repository links (topics, gists, docs, GitHub Pages, issues) are dropped.",
            "items": {
              "type": "string"
            }
          },
          "includeListRepo": {
            "title": "Include the list's own repository",
            "type": "boolean",
            "description": "When a list is itself a GitHub repo, also check that repo (off by default: lists often link to themselves in badges).",
            "default": false
          },
          "maxRepos": {
            "title": "Max repositories",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of unique repositories checked in this run (after de-duplication, in input order). If empty: 25 without a token (GitHub allows only 60 requests/hour without a token) or 1,000 with a token."
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "Optional personal access token, used only to call api.github.com with a higher rate limit (5,000 requests/hour instead of 60). A fine-grained token with <b>no permissions</b> (public repositories, read-only) is enough. It is stored encrypted by Apify and never logged or saved to the output."
          },
          "checkLastCommit": {
            "title": "Read the last commit date",
            "type": "boolean",
            "description": "On: 2 API requests per repo, the date of the latest commit on the default branch is used. Off: 1 request per repo, GitHub's <code>pushed_at</code> (last push to any branch) is used instead. Turn off to check twice as many repos without a token.",
            "default": true
          },
          "maxRateLimitWaitSecs": {
            "title": "Max wait for rate-limit reset (seconds)",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "If the GitHub rate limit is reached and it resets within this many seconds, the run waits and continues; otherwise it stops cleanly and the remaining repos get a free <code>rate-limited</code> row. Waiting uses compute time, so the default is 0 (stop).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Repositories checked in parallel. Default 2 without a token, 4 with a token (GitHub discourages heavy parallel use)."
          },
          "activeDays": {
            "title": "Active: last commit within (days)",
            "minimum": 1,
            "type": "integer",
            "description": "A repository is <b>active</b> if its last commit is at most this many days old and it is not archived.",
            "default": 90
          },
          "staleDays": {
            "title": "Stale: last commit within (days)",
            "minimum": 2,
            "type": "integer",
            "description": "A repository is <b>stale</b> if its last commit is older than the active threshold but at most this many days old. Older, or archived, means <b>dead</b>. Must be greater than the active threshold.",
            "default": 365
          },
          "includeErrorRows": {
            "title": "Output rows for unavailable repos",
            "type": "boolean",
            "description": "Also output a row (free, not charged) for repos that are not found, private, blocked or skipped because of the rate limit, with <code>status</code> and <code>statusMessage</code>. Useful to find broken links in a list.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}