{
  "openapi": "3.0.1",
  "info": {
    "title": "Research Watch Feed",
    "description": "Monitor scholarly DOIs, model cards, clinical studies, and software repositories, producing deterministic evidence-linked JSON, Atom, and RSS change feeds.",
    "version": "0.1",
    "x-build-id": "w3nFVHcrXBVAa59qH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/flintglade~research-watch-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-flintglade-research-watch-feed",
        "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/flintglade~research-watch-feed/runs": {
      "post": {
        "operationId": "runs-sync-flintglade-research-watch-feed",
        "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/flintglade~research-watch-feed/run-sync": {
      "post": {
        "operationId": "run-sync-flintglade-research-watch-feed",
        "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": [
          "entities"
        ],
        "properties": {
          "inputSchemaVersion": {
            "title": "Input schema version",
            "minimum": 1,
            "maximum": 1,
            "type": "integer",
            "description": "Fixed input contract version. Leave this set to 1.",
            "default": 1
          },
          "entities": {
            "title": "Research entities",
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "description": "One of the four fixed launch profiles. Duplicate normalized identities are reported once and never fetched or charged twice.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "profile": {
                  "title": "Profile",
                  "description": "One fixed launch profile.",
                  "type": "string",
                  "enum": [
                    "scholarlyDoi",
                    "modelCard",
                    "clinicalStudy",
                    "softwareRepository"
                  ]
                },
                "doi": {
                  "title": "DOI",
                  "description": "Required only for scholarlyDoi.",
                  "type": "string",
                  "minLength": 7,
                  "maxLength": 512
                },
                "huggingFaceRepo": {
                  "title": "Hugging Face repository",
                  "description": "Required owner/name only for modelCard.",
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,98}/[A-Za-z0-9][A-Za-z0-9._-]{0,98}$"
                },
                "revision": {
                  "title": "Model-card revision",
                  "description": "Optional branch, tag, or revision for modelCard; omitted values use main and resolve to an immutable SHA.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "studyId": {
                  "title": "NCT ID",
                  "description": "Required NCT plus eight digits only for clinicalStudy.",
                  "type": "string",
                  "pattern": "^[Nn][Cc][Tt][0-9]{8}$"
                },
                "repository": {
                  "title": "GitHub repository",
                  "description": "Required owner/name only for softwareRepository.",
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,98}/[A-Za-z0-9][A-Za-z0-9._-]{0,98}$"
                },
                "includeAdvisories": {
                  "title": "Include repository advisories",
                  "description": "Request official repository advisories for softwareRepository; omitted values default to true at runtime.",
                  "type": "boolean"
                }
              },
              "required": [
                "profile"
              ]
            }
          },
          "mode": {
            "title": "Monitoring mode",
            "enum": [
              "stateless",
              "persistent"
            ],
            "type": "string",
            "description": "Stateless creates a one-run baseline preview. Persistent compares and commits through the selected baseline store.",
            "default": "stateless"
          },
          "baselineStoreId": {
            "title": "Baseline key-value store",
            "minLength": 1,
            "maxLength": 100,
            "type": "string",
            "description": "Required in persistent mode and forbidden in stateless mode."
          },
          "changeThreshold": {
            "title": "Change threshold",
            "enum": [
              "allSemantic",
              "materialOnly"
            ],
            "type": "string",
            "description": "allSemantic emits every deterministic semantic change; materialOnly emits profile-specific material paths while still advancing a paid baseline.",
            "default": "allSemantic"
          },
          "feedFormats": {
            "title": "Feed formats",
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "type": "array",
            "description": "KVS artifacts generated from the same stable WatchEvent objects.",
            "items": {
              "type": "string",
              "enum": [
                "json",
                "atom",
                "rss"
              ]
            },
            "default": [
              "json"
            ]
          },
          "includeUnchanged": {
            "title": "Include unchanged events",
            "type": "boolean",
            "description": "Include paid unchanged checks in feed artifacts. Dataset result rows remain present because charging is per entity check.",
            "default": true
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Maximum simultaneous entity checks. Source requests remain bounded within each profile.",
            "default": 4
          },
          "hfToken": {
            "title": "Hugging Face token",
            "type": "string",
            "description": "Optional credential passed only to the model-card adapter."
          },
          "githubToken": {
            "title": "GitHub token",
            "type": "string",
            "description": "Optional credential passed only to the software-repository adapter."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}