{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repository Analyzer",
    "description": "Github Repository Analyzer collects live public search results from github.com and stores each result as a structured JSON record with title, URL, snippet, date and source metadata.",
    "version": "1.0",
    "x-build-id": "5OaKTwYyocfrqsW2g"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ai_category~apify-github-repository-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ai_category-apify-github-repository-analyzer",
        "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/ai_category~apify-github-repository-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-ai_category-apify-github-repository-analyzer",
        "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/ai_category~apify-github-repository-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-ai_category-apify-github-repository-analyzer",
        "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": {
          "actorName": {
            "title": "Actor Name",
            "type": "string",
            "description": "Actor identity used in output records.",
            "default": "apify-github-repository-analyzer"
          },
          "targetType": {
            "title": "Target Type",
            "type": "string",
            "description": "Expected live data type for apify-github-repository-analyzer.",
            "default": "search"
          },
          "sourceDomain": {
            "title": "Target Website Domain",
            "type": "string",
            "description": "Live target website domain configured for this actor.",
            "default": "github.com"
          },
          "startUrls": {
            "title": "Live Target URLs",
            "type": "array",
            "description": "Direct page, API or search-result URLs from the target website.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "type": "string",
                  "description": "Absolute HTTP or HTTPS URL on this actor's configured live target website."
                }
              },
              "required": [
                "url"
              ]
            },
            "default": []
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Search terms for apify-github-repository-analyzer on the target website.",
            "items": {
              "type": "string"
            },
            "default": [
              "OpenAI"
            ]
          },
          "blocked": {
            "title": "Blocked",
            "type": "boolean",
            "description": "True when no safe actor-specific live source can be used.",
            "default": false
          },
          "blockedReason": {
            "title": "Blocked Reason",
            "type": "string",
            "description": "Why this actor is blocked or needs a dedicated implementation.",
            "default": ""
          },
          "maxItems": {
            "title": "Maximum Items",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Valid unique results requested per run. Local smoke-test prefill is 10; production default is 20 (maximum 50).",
            "default": 20
          },
          "maxPages": {
            "title": "Maximum Pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum live pages requested in one run.",
            "default": 10
          },
          "detailPages": {
            "title": "Detail Pages",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum discovered item/detail pages to enrich after the listing or API response.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave disabled to start direct. When a target blocks the run, autoProxy retries that host through Apify datacenter proxy, then UNBLOCKER; Google search hosts use GOOGLE_SERP first.",
            "default": {
              "useApifyProxy": false
            }
          },
          "autoProxy": {
            "title": "Automatically escalate blocked hosts to Apify Proxy",
            "type": "boolean",
            "description": "Direct first; on HTTP 401/403/429 or a CAPTCHA page retry via Apify Proxy (GOOGLE_SERP for Google, otherwise datacenter then UNBLOCKER).",
            "default": true
          },
          "requestDelayMillis": {
            "title": "Delay between requests to the same host",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum request spacing per hostname in milliseconds; bounds concurrency pressure.",
            "default": 500
          },
          "maxRetries": {
            "title": "Maximum retries per request",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries temporary HTTP/network failures with bounded exponential backoff and proxy session rotation. This excludes the initial attempt.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}