{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Scholar Paper and Author Data Scraper",
    "description": "Search Google Scholar and extract papers, citation formats, author profiles, publication lists, citation histories, and co-author relationships. Receive structured scholarly records with source provenance for every record.",
    "version": "0.3",
    "x-build-id": "5c3z9z3AXYEV8ZeBm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~google-scholar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~google-scholar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~google-scholar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "cite",
              "author_profile",
              "author_articles",
              "author_citation",
              "author_co_authors"
            ],
            "type": "string",
            "description": "Which Google Scholar operation to run. 'search' finds papers by keyword; 'cite' exports citation formats for a paper; 'author_profile' returns one author's metrics; 'author_articles' lists an author's publications; 'author_citation' returns an author's year-by-year citation history; 'author_co_authors' returns an author's co-author network. Defaults to 'search'. Each mode reads different fields below.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries (mode: search)",
            "type": "array",
            "description": "Keyword queries to run on Google Scholar, one search per entry (e.g. 'transformer architecture'). Up to 4 queries run at the same time. Used only when mode is 'search'. NOT a Scholar URL and NOT an author ID - use 'authorIds' for author modes. Free Apify plan runs return up to 25 results per run.",
            "items": {
              "type": "string"
            }
          },
          "resultIds": {
            "title": "Paper IDs (mode: cite)",
            "type": "array",
            "description": "Google Scholar result IDs (cluster IDs) to fetch citation-export formats for, one per entry. Get these from the 'resultId' field of a prior 'search' run (e.g. 'TY8gM2sAAAAJ'). Used only when mode is 'cite'. NOT a paper title or URL.",
            "items": {
              "type": "string"
            }
          },
          "authorIds": {
            "title": "Author IDs (author modes)",
            "type": "array",
            "description": "Google Scholar author IDs to look up, one per entry (e.g. 'LSsXyncAAAAJ'). Find an ID in a Scholar profile URL (the 'user=' value) or in the 'authors[].authorId' field of a 'search' run. Used by author_profile, author_articles, author_citation, and author_co_authors. NOT an author name.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results per query/author",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum papers to return per search query or per author publication list, and your hard cost cap (you are never charged for more). Google Scholar shows at most 1,000 results per query, so 1,000 is the most you can get from one query; use several more specific queries for more. If fewer papers come back than you asked for, the run ends as PARTIAL and says why. Applies to 'search', 'author_articles' and 'author_co_authors'. Defaults to 100. Author-profile, citation-history and cite modes return one record per target and ignore this.",
            "default": 100
          },
          "yearFrom": {
            "title": "Published after (year)",
            "minimum": 1500,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest publication year to include in results (e.g. 2018). Applies only to mode 'search'. Leave empty for no lower bound."
          },
          "yearTo": {
            "title": "Published before (year)",
            "minimum": 1500,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest publication year to include in results (e.g. 2024). Applies only to mode 'search'. Leave empty for no upper bound."
          },
          "sortByDate": {
            "title": "Sort by date (mode: search)",
            "type": "boolean",
            "description": "When true, sorts search results by newest first instead of by relevance. Applies only to mode 'search'. Defaults to false (relevance).",
            "default": false
          },
          "authorSort": {
            "title": "Author article sort (mode: author_articles)",
            "enum": [
              "relevance",
              "date",
              "title"
            ],
            "type": "string",
            "description": "Order for an author's publication list: 'relevance' (citation count, default), 'date' (newest first), or 'title' (alphabetical). Applies only to mode 'author_articles'. Other modes ignore this field.",
            "default": "relevance"
          },
          "resultsLanguage": {
            "title": "Interface language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "ru",
              "ar",
              "hi",
              "tr",
              "pl",
              "nl"
            ],
            "type": "string",
            "description": "Two-letter language code for the Google Scholar interface and result display (e.g. 'en', 'de', 'es'). Applies to all modes. Defaults to 'en'.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}