{
  "openapi": "3.0.1",
  "info": {
    "title": "Nature Journal Search Scraper",
    "description": "Searches the live Nature website by query, journal, article type, subject, date range, and sort order, with optional Crossref DOI metadata enrichment.",
    "version": "2.0",
    "x-build-id": "jNPAEDfR73PiyXnth"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/searchapi~nature-search-results-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-searchapi-nature-search-results-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/searchapi~nature-search-results-scraper/runs": {
      "post": {
        "operationId": "runs-sync-searchapi-nature-search-results-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/searchapi~nature-search-results-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-searchapi-nature-search-results-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",
        "required": [
          "searchQuery"
        ],
        "properties": {
          "searchQuery": {
            "title": "Search query",
            "minLength": 1,
            "maxLength": 500,
            "type": "string",
            "description": "Keywords to enter in Nature search.",
            "default": "CRISPR gene editing"
          },
          "journal": {
            "title": "Journal",
            "enum": [
              "all",
              "nature",
              "nature-physics",
              "nature-chemistry",
              "nature-methods",
              "nature-medicine",
              "nature-genetics",
              "nature-neuroscience",
              "nature-biotechnology",
              "nature-communications",
              "nature-climate-change",
              "nature-ecology-evolution",
              "nature-cell-biology",
              "nature-immunology",
              "nature-materials",
              "nature-reviews-cancer",
              "scientific-reports"
            ],
            "type": "string",
            "description": "Restrict results to one Nature Portfolio journal, or use all.",
            "default": "nature"
          },
          "articleTypes": {
            "title": "Article types",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional Nature article-type codes such as research, reviews, news, protocols, or editorial. Leave empty for all.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "subjects": {
            "title": "Subjects",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional Nature subject codes such as genetics, cancer, biotechnology, neuroscience, or plant-sciences. Leave empty for all.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "dateRange": {
            "title": "Date range",
            "enum": [
              "all",
              "today",
              "last_7_days",
              "last_30_days",
              "last_year",
              "last_2_years",
              "last_5_years"
            ],
            "type": "string",
            "description": "Nature's native relative publication-date filter.",
            "default": "all"
          },
          "fromYear": {
            "title": "From year (legacy)",
            "minimum": 1869,
            "maximum": 2027,
            "type": "integer",
            "description": "Optional backward-compatible local year filter applied after Nature search. Use dateRange when possible."
          },
          "toYear": {
            "title": "To year (legacy)",
            "minimum": 1869,
            "maximum": 2027,
            "type": "integer",
            "description": "Optional backward-compatible local year filter applied after Nature search. Use dateRange when possible."
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "published-desc",
              "published-asc"
            ],
            "type": "string",
            "description": "Use Nature's relevance, newest-first, or oldest-first order.",
            "default": "relevance"
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum unique Nature result records to write.",
            "default": 50
          },
          "maxResults": {
            "title": "Maximum records (legacy alias)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Backward-compatible alias for maxItems. maxItems takes precedence when both are provided."
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum 50-result Nature pages to inspect.",
            "default": 10
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Maximum simultaneous page or enrichment requests.",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Request retries",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Bounded retries for temporary network, rate-limit, and server errors.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time allowed for each Nature or Crossref request.",
            "default": 30
          },
          "includeCrossrefMetadata": {
            "title": "Include Crossref metadata",
            "type": "boolean",
            "description": "Enrich verified Nature article DOIs with citation, reference, issue, page, publisher, subject, license, and language metadata.",
            "default": true
          },
          "crossrefMailto": {
            "title": "Crossref contact email",
            "type": "string",
            "description": "Optional contact email for Crossref's polite pool. It is used only in requests and is never logged or stored."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy or custom proxy configuration. Credentials are never logged or stored."
          },
          "debug": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Enable additional non-sensitive diagnostic logging.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}