{
  "openapi": "3.0.1",
  "info": {
    "title": "J-STAGE Scraper",
    "description": "Scrape Japanese research articles from J-STAGE via the official WebAPI. Use a keyword or paste a J-STAGE URL — the URL wins when set.",
    "version": "0.1",
    "x-build-id": "bszaGBEAMp8geSzJB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dadhalfdev~jstage-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dadhalfdev-jstage-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/dadhalfdev~jstage-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dadhalfdev-jstage-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/dadhalfdev~jstage-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dadhalfdev-jstage-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": {
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Same as the J-STAGE global search box (`globalSearchKey` / `freeText`). Default is cancer.",
            "default": "cancer"
          },
          "search_field": {
            "title": "Search field",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "F",
              "A",
              "B",
              "C",
              "D",
              "E"
            ],
            "type": "string",
            "description": "Optional field for `item1` on the results form. Combined with keyword as `word1` when set.",
            "default": ""
          },
          "publication_type": {
            "title": "Publication type",
            "enum": [
              "",
              "100",
              "200",
              "400",
              "500",
              "600"
            ],
            "type": "string",
            "description": "Same Publication type facet (`srySybt`).",
            "default": ""
          },
          "peer_reviewed": {
            "title": "Peer review",
            "enum": [
              "",
              "1"
            ],
            "type": "string",
            "description": "Same Peer review facet (`kjnSdkUm`).",
            "default": ""
          },
          "article_attribute": {
            "title": "Article attribute",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "5"
            ],
            "type": "string",
            "description": "Same Article attribute facet (`kijiZksi`).",
            "default": ""
          },
          "access_type": {
            "title": "Access type",
            "enum": [
              "",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "Same Access type facet (`nnshuSybt`).",
            "default": ""
          },
          "license": {
            "title": "License",
            "enum": [
              "",
              "01",
              "02",
              "03",
              "04",
              "05",
              "06",
              "99"
            ],
            "type": "string",
            "description": "Same License facet (`licenseCd`).",
            "default": ""
          },
          "subject": {
            "title": "Subject / category",
            "enum": [
              "",
              "010000",
              "010100",
              "011100",
              "012100",
              "014100",
              "030000",
              "030100",
              "035100",
              "050000",
              "050100",
              "051100",
              "053100",
              "054100",
              "070000",
              "070100",
              "072100",
              "073100",
              "074100",
              "075100",
              "090000",
              "090100",
              "091100",
              "092100",
              "110000",
              "111100",
              "112100",
              "113100",
              "114100",
              "115100",
              "116100",
              "117100"
            ],
            "type": "string",
            "description": "Same subject facet (`bnyaShbnr`) and advanced-search subject codes.",
            "default": ""
          },
          "data_repository": {
            "title": "Data repository",
            "enum": [
              "",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Same Data repository facet (`dataRepo`).",
            "default": ""
          },
          "journal": {
            "title": "Journal / publication title",
            "type": "string",
            "description": "Same journal facet (`srynm`). Use the publication title as shown on J-STAGE."
          },
          "author": {
            "title": "Author",
            "type": "string",
            "description": "Same author facet (`chshnm`)."
          },
          "year_from": {
            "title": "Year from",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Same `yearfrom` field on the results form (YYYY)."
          },
          "year_to": {
            "title": "Year to",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Same `yearto` field on the results form (YYYY)."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "1",
              "5",
              "6",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "Same Sort by control (`order` / `sortby`).",
            "default": "1"
          },
          "max_results": {
            "title": "Maximum number of results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many rows to return (1–2000). The results page can show 50 articles at a time.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}