{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Issues & PR Scraper: Threads & Monitor",
    "description": "Search public GitHub issues and pull requests, export discussions and reviews, analyze linked issues, and monitor changes with source evidence.",
    "version": "0.0",
    "x-build-id": "yjh3X90TN5Ef2Tncw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/amygraphics~github-issue-pr-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-amygraphics-github-issue-pr-intelligence",
        "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/amygraphics~github-issue-pr-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-amygraphics-github-issue-pr-intelligence",
        "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/amygraphics~github-issue-pr-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-amygraphics-github-issue-pr-intelligence",
        "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": {
          "repositories": {
            "title": "Public repositories",
            "type": "array",
            "description": "Up to 100 owner/repository names or public GitHub repository URLs. Processed after direct URLs.",
            "items": {
              "type": "string"
            }
          },
          "issueUrls": {
            "title": "Issue or PR URLs",
            "type": "array",
            "description": "Optional exact github.com issue or pull-request URLs, processed first.",
            "items": {
              "type": "string"
            }
          },
          "organizations": {
            "title": "Public organizations",
            "type": "array",
            "description": "Up to 3 organizations; enumerate recent public repositories, with a bounded cap.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "GitHub issue search queries",
            "type": "array",
            "description": "Up to 100 GitHub issue search expressions. Public-only enforced.",
            "items": {
              "type": "string"
            }
          },
          "labels": {
            "title": "Labels",
            "type": "array",
            "description": "Optional label filters added to searches. GitHub matching semantics apply.",
            "items": {
              "type": "string"
            }
          },
          "state": {
            "title": "Issue state",
            "enum": [
              "open",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Open, closed or all. Watch mode requires all.",
            "default": "open"
          },
          "since": {
            "title": "Updated since",
            "type": "string",
            "description": "Optional ISO date/time normalized to UTC date; ignored when query contains created or updated filter."
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Required when watching. Letters, digits, hyphen and underscore. Do not run same watch concurrently."
          },
          "githubToken": {
            "title": "GitHub token",
            "type": "string",
            "description": "Optional secret token to increase public API rate limit. Private repositories are excluded."
          },
          "includeIssues": {
            "title": "Include issues",
            "type": "boolean",
            "description": "Return issues.",
            "default": true
          },
          "includePullRequests": {
            "title": "Include pull requests",
            "type": "boolean",
            "description": "Return pull requests.",
            "default": true
          },
          "autoSplit": {
            "title": "Split large searches by creation date",
            "type": "boolean",
            "description": "Partition searches over 1,000; still bounded and can be incomplete.",
            "default": false
          },
          "includeComments": {
            "title": "Include issue and PR comments",
            "type": "boolean",
            "description": "Fetch bounded comments. Deep result rate applies.",
            "default": false
          },
          "includeTimeline": {
            "title": "Include issue timeline",
            "type": "boolean",
            "description": "Fetch bounded timeline events. Deep result rate applies.",
            "default": false
          },
          "includePRDetails": {
            "title": "Include PR details",
            "type": "boolean",
            "description": "Fetch merged status, branches and change counts. Deep result rate applies.",
            "default": false
          },
          "includeReviews": {
            "title": "Include PR reviews",
            "type": "boolean",
            "description": "Fetch reviews and inline review comments. Deep result rate applies.",
            "default": false
          },
          "includeFiles": {
            "title": "Include PR file details",
            "type": "boolean",
            "description": "Fetch bounded file metadata and patches, limited to 10,000 characters per patch. Deep result rate applies.",
            "default": false
          },
          "watch": {
            "title": "Only new or changed records",
            "type": "boolean",
            "description": "Persistent snapshot of selected fields. Requires state all.",
            "default": false
          },
          "baselineOnly": {
            "title": "First run is baseline",
            "type": "boolean",
            "description": "Store current IDs without output; later runs emit new or changed rows.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum output rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap across all sources, 1 to 10,000.",
            "default": 50
          },
          "maxRequests": {
            "title": "Request budget",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on GitHub API calls across collection and enrichment.",
            "default": 100
          },
          "maxSearchRequests": {
            "title": "Search request budget",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum GitHub search requests per run; cap and rate limits can limit coverage.",
            "default": 10
          },
          "maxDeepResults": {
            "title": "Maximum enriched rows",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Requested deep fields apply only to this many emitted rows.",
            "default": 10
          },
          "maxComments": {
            "title": "Per-endpoint item cap",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum comments, timeline, reviews and files fetched per enriched row; paginated up to this cap; shared byte and request limits also apply.",
            "default": 30
          },
          "maxOrgRepos": {
            "title": "Public repos per organization",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum first-page repositories per organization; cap is reported.",
            "default": 20
          },
          "maxPages": {
            "title": "Search pages per query",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "At most 10 pages of 100. GitHub search caps results at 1,000 per query.",
            "default": 10
          },
          "maxPartitions": {
            "title": "Partition creation budget",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum child date buckets created. Single-day overflow and caps are reported.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}