{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Scholar Research & Citation Intelligence",
    "description": "Watch research topics on Google Scholar: one deduplicated row per paper with every matching query, displayed citation counts, papers first observed in your watch and citation-count changes between runs.",
    "version": "0.1",
    "x-build-id": "HYRanskNB2nAccAyx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~google-scholar-research-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-google-scholar-research-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/coregent~google-scholar-research-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-coregent-google-scholar-research-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/coregent~google-scholar-research-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-google-scholar-research-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",
        "required": [
          "topics"
        ],
        "properties": {
          "topics": {
            "title": "Topics and queries",
            "type": "array",
            "description": "1–8 topic groups, each with 1–5 Google Scholar queries (3–200 characters). At most 20 distinct queries per run. A query used in two topics is searched once and credited to both. Scholar operators such as author:, source: or intitle: are passed through as typed; how Google Scholar applies them is not guaranteed.",
            "items": {
              "type": "object",
              "properties": {
                "topicId": {
                  "title": "Topic ID (optional)",
                  "type": "string",
                  "description": "Short ID used in the output, 1–40 letters, digits, - or _ (e.g. rag). Defaults to t1, t2, …",
                  "editor": "textfield"
                },
                "label": {
                  "title": "Label (optional)",
                  "type": "string",
                  "description": "Readable topic name, up to 80 characters. Defaults to the first query.",
                  "editor": "textfield"
                },
                "queries": {
                  "title": "Queries",
                  "type": "array",
                  "description": "1–5 Google Scholar queries for this topic.",
                  "editor": "stringList"
                }
              },
              "required": [
                "queries"
              ]
            },
            "default": [
              {
                "topicId": "rag",
                "label": "Retrieval-augmented generation",
                "queries": [
                  "retrieval augmented generation"
                ]
              }
            ]
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "discovery",
              "baseline",
              "monitor",
              "delete"
            ],
            "type": "string",
            "description": "discovery: one-off search, nothing stored. baseline: same results, and starts (or restarts) the watch named by Watch ID. monitor: compares with the stored watch and returns only papers first observed in the watch or whose displayed citation count changed; if the watch doesn't exist yet, this run becomes its baseline. delete: removes the stored watch (no search, no charge).",
            "default": "discovery"
          },
          "watchId": {
            "title": "Watch ID",
            "type": "string",
            "description": "Name of the stored watch, 3–80 characters (letters, digits, - or _). Required for baseline, monitor and delete. Watches are stored in your own Apify account. Monitor compares only with a watch created with the same queries, country, language and pages per query.",
            "default": ""
          },
          "maxPagesPerQuery": {
            "title": "Pages per query",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Google Scholar results pages to fetch per query (about 10 results per page). Each valid page is charged, even one with no results. A query stops early on an empty page or after two pages with no new papers.",
            "default": 1
          },
          "maxTotalPages": {
            "title": "Max pages per run",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard cap on results pages for the whole run. Page 1 of every query is fetched before any page 2.",
            "default": 20
          },
          "maxUniquePapers": {
            "title": "Max unique papers",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop searching once this many unique papers have been observed. A cap, not a promise that this many will be found.",
            "default": 100
          },
          "maxSerperCredits": {
            "title": "Max search credits",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on search-provider credits for the run (one results page normally uses one credit).",
            "default": 30
          },
          "maxEstimatedCustomerSpendUsd": {
            "title": "Max spend for this run (USD)",
            "minimum": 0.05,
            "maximum": 100,
            "type": "number",
            "description": "The run stops before any charge that would take it over this amount. Your Apify per-run spending limit is respected as well.",
            "default": 1
          },
          "includeReport": {
            "title": "Topic report",
            "type": "boolean",
            "description": "Also write a topic report (per-topic paper counts, cross-topic overlap, citation-count distribution, data-quality notes) to the REPORT record. Charged once, only when the report is produced.",
            "default": false
          },
          "emitUnchangedRows": {
            "title": "Include unchanged papers (monitor)",
            "type": "boolean",
            "description": "In monitor mode, also output papers with no change, for auditing. Unchanged papers are never charged.",
            "default": false
          },
          "snapshotRetentionDays": {
            "title": "Watch retention (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "A stored watch not updated for this many days is deleted, and the next monitor run starts a new baseline.",
            "default": 30
          },
          "gl": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code passed to the search (for example us, gb, au). Part of the watch settings.",
            "default": "us"
          },
          "hl": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter interface language code passed to the search (for example en, de, fr). Part of the watch settings.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}