{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Scholar Scraper: Papers, Citations & Alerts",
    "description": "Scrape Google Scholar search results up to 1,000 papers per query: title, authors, venue, year, citation count, versions, PDF link. Track new papers citing your articles, newest first, with a webhook. Year, citation and PDF filters never bill dropped rows. From $0.60 per 1,000 papers.",
    "version": "0.1",
    "x-build-id": "rfxmP5F6gc1HVKlCk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alexmorain~google-scholar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alexmorain-google-scholar-scraper",
        "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/alexmorain~google-scholar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alexmorain-google-scholar-scraper",
        "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/alexmorain~google-scholar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alexmorain-google-scholar-scraper",
        "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": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "One search per line, exactly as you would type it in Google Scholar. Scholar operators work: <code>author:\"Y Bengio\"</code>, <code>source:nature</code>, <code>allintitle: attention</code>, quotes for exact phrases. Each search is read up to the cap below; Google Scholar itself stops at 1,000 results per search.",
            "items": {
              "type": "string"
            }
          },
          "citedBy": {
            "title": "Track citations of these articles",
            "type": "array",
            "description": "Articles whose citing papers you want: a Scholar cluster id such as <code>13205252519221416398</code> (the <code>clusterId</code> field of this Actor's own rows), or a Scholar URL containing <code>cites=</code> or <code>cluster=</code>. Newest citing papers come first by default, so with watch mode on you only receive the new ones.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Max papers per query or article",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop a search or a citation list after this many papers kept (default 100 when empty, maximum 1,000, the Google Scholar limit). Papers removed by the filters below do not count and are not charged."
          },
          "language": {
            "title": "Interface language",
            "enum": [
              "en",
              "fr",
              "de",
              "es",
              "it",
              "pt",
              "nl",
              "ja",
              "zh-CN",
              "ko",
              "ru",
              "ar",
              "tr",
              "pl"
            ],
            "type": "string",
            "description": "Google Scholar interface language (<code>hl</code>). It changes the wording of snippets and dates, not which papers match.",
            "default": "en"
          },
          "yearFrom": {
            "title": "Published from year",
            "minimum": 1000,
            "maximum": 2200,
            "type": "integer",
            "description": "Only keep papers from this year on. In citation mode the filter is applied by Scholar, so no page is wasted. In search mode it is applied after reading, so a narrow range reads several pages per paper kept: use <code>maxResultsPerQuery</code> to bound the cost."
          },
          "yearTo": {
            "title": "Published up to year",
            "minimum": 1000,
            "maximum": 2200,
            "type": "integer",
            "description": "Only keep papers up to this year included. Same behaviour as the start year."
          },
          "minCitations": {
            "title": "Minimum citations",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep papers cited at least this many times. Leave empty to keep everything."
          },
          "pdfOnly": {
            "title": "Only papers with a PDF link",
            "type": "boolean",
            "description": "Only keep papers for which Scholar lists a direct PDF link.",
            "default": false
          },
          "sortByDate": {
            "title": "Citations: newest first",
            "type": "boolean",
            "description": "Citation mode only. Sorts the citing papers by date, newest first, which is what a citation alert needs. Turn off for Scholar's relevance order.",
            "default": true
          },
          "onlyNew": {
            "title": "Watch mode: only new papers",
            "type": "boolean",
            "description": "Returns only the papers you have not received in an earlier run with the same watch key. The first run delivers what it reads and sets the starting point. Schedule the run daily or weekly to get alerts. In citation mode reading stops as soon as a whole page is already known, so a daily check costs one or two pages.",
            "default": false
          },
          "watchKey": {
            "title": "Watch key",
            "type": "string",
            "description": "Optional name of the memory of what was already delivered, for example <code>my-thesis</code>. Empty: derived from your queries and articles, so the same list shares its memory between runs. Use different keys for different purposes."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. When the run ends with papers, a summary and the latest papers are sent there by POST (Slack, Discord, Zapier, your own endpoint). The URL is never written to a log."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}