{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Issues, Pull Requests & Forks Activity Exporter",
    "description": "Export issues, pull requests, forks and contributor profiles from any public GitHub repository without a token. Filter by state, label, author, assignee, milestone and date, and walk past GitHub's 1,000-result list cap with automatic date slicing.",
    "version": "1.0",
    "x-build-id": "4ZWPmDEIW0ze4OKAM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~github-issues-pull-requests-forks-activity-exporter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-github-issues-pull-requests-forks-activity-exporter",
        "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/xyrelith-data~github-issues-pull-requests-forks-activity-exporter/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-github-issues-pull-requests-forks-activity-exporter",
        "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/xyrelith-data~github-issues-pull-requests-forks-activity-exporter/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-github-issues-pull-requests-forks-activity-exporter",
        "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": {
          "mode": {
            "title": "What to export",
            "enum": [
              "issues",
              "pullRequests",
              "issuesAndPullRequests",
              "forks",
              "profiles"
            ],
            "type": "string",
            "description": "Choose issues, pull requests, both together, forks, or contributor profiles.",
            "default": "issues"
          },
          "repositories": {
            "title": "Repositories",
            "type": "array",
            "description": "Public GitHub repositories as owner/repo slugs or github.com URLs. Example: psf/requests or https://github.com/psf/requests.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "GitHub usernames or profile URLs",
            "type": "array",
            "description": "Profiles to export in contributor profiles mode. Example: kennethreitz or https://github.com/kennethreitz.",
            "items": {
              "type": "string"
            }
          },
          "state": {
            "title": "State",
            "enum": [
              "open",
              "closed",
              "all",
              "merged",
              "draft"
            ],
            "type": "string",
            "description": "open, closed or all. Pull requests also accept merged and draft. Draft means pull requests currently open as drafts.",
            "default": "open"
          },
          "labels": {
            "title": "Labels",
            "type": "array",
            "description": "Only records that carry every listed label. Matching is case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "author": {
            "title": "Author login",
            "type": "string",
            "description": "Only records opened by this GitHub login."
          },
          "assignee": {
            "title": "Assignee login",
            "type": "string",
            "description": "Only records assigned to this GitHub login."
          },
          "milestone": {
            "title": "Milestone",
            "type": "string",
            "description": "Only records attached to this milestone title."
          },
          "createdFrom": {
            "title": "Created from",
            "type": "string",
            "description": "Earliest creation date, YYYY-MM-DD."
          },
          "createdTo": {
            "title": "Created to",
            "type": "string",
            "description": "Latest creation date, YYYY-MM-DD."
          },
          "updatedFrom": {
            "title": "Updated from",
            "type": "string",
            "description": "Earliest update date, YYYY-MM-DD."
          },
          "updatedTo": {
            "title": "Updated to",
            "type": "string",
            "description": "Latest update date, YYYY-MM-DD."
          },
          "closedFrom": {
            "title": "Closed from",
            "type": "string",
            "description": "Earliest close date, YYYY-MM-DD."
          },
          "closedTo": {
            "title": "Closed to",
            "type": "string",
            "description": "Latest close date, YYYY-MM-DD."
          },
          "searchText": {
            "title": "Search text",
            "type": "string",
            "description": "Free text searched inside titles and bodies."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "oldest",
              "mostCommented",
              "recentlyUpdated",
              "mostReactions"
            ],
            "type": "string",
            "description": "Newest and oldest walk past GitHub's 1,000-result cap with automatic date slicing. Other orders use GitHub's server order and are capped at 1,000 results.",
            "default": "newest"
          },
          "maxItemsPerRepository": {
            "title": "Max items per repository",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper bound on returned records per repository. In issues + pull requests mode the limit is shared across both types.",
            "default": 100
          },
          "includeBody": {
            "title": "Include body text",
            "type": "boolean",
            "description": "Add the full issue or pull-request description.",
            "default": false
          },
          "includeCommentThread": {
            "title": "Include comment thread",
            "type": "boolean",
            "description": "Add every comment with author, date, body and per-comment reactions.",
            "default": false
          },
          "includeReactions": {
            "title": "Include reaction totals",
            "type": "boolean",
            "description": "Add reaction counts by emoji for each issue or pull request.",
            "default": false
          },
          "includeAuthorProfile": {
            "title": "Include author profiles",
            "type": "boolean",
            "description": "Add the author's public profile (name, company, location, bio, followers, social links) to every record.",
            "default": false
          },
          "includeDiffStats": {
            "title": "Include pull-request diff stats",
            "type": "boolean",
            "description": "Add additions, deletions and changed files. Uses the optional GitHub token when supplied and otherwise the anonymous REST limit.",
            "default": false
          },
          "forkPeriod": {
            "title": "Fork activity period",
            "enum": [
              "1mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "all"
            ],
            "type": "string",
            "description": "Only forks with push activity in this period. GitHub exposes at most five years.",
            "default": "5y"
          },
          "forkSort": {
            "title": "Fork sort order",
            "enum": [
              "mostStarred",
              "recentlyUpdated",
              "openIssues",
              "openPullRequests"
            ],
            "type": "string",
            "description": "Order of fork rows on GitHub's fork list.",
            "default": "mostStarred"
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "Optional personal access token for higher REST limits when comment threads, diff stats or join dates are requested. Never required."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}