{
  "openapi": "3.0.1",
  "info": {
    "title": "Epithet Miner: Homeric formulas from Project Gutenberg",
    "description": "Crawls public-domain Homer translations on Project Gutenberg and mines the noun-epithet formulas the oral poets improvised with (\"aegis-bearing Zeus\", \"laughter-loving Aphrodite\"), each tagged with its beat count from the CMU Pronouncing Dictionary, themes, emotions, source and frequency.",
    "version": "0.1",
    "x-build-id": "6EGVHcQAl7Af7iEZU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/matusnator~epithet-miner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-matusnator-epithet-miner",
        "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/matusnator~epithet-miner/runs": {
      "post": {
        "operationId": "runs-sync-matusnator-epithet-miner",
        "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/matusnator~epithet-miner/run-sync": {
      "post": {
        "operationId": "run-sync-matusnator-epithet-miner",
        "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": {
          "gutenbergIds": {
            "title": "Project Gutenberg ebook IDs",
            "type": "array",
            "description": "Ebook IDs (or ebook URLs such as https://www.gutenberg.org/ebooks/3059). Defaults: 3059 Iliad (Lang, Leaf & Myers), 1728 Odyssey (Butcher & Lang), 2199 Iliad (Samuel Butler), 1727 Odyssey (Samuel Butler). Also public domain: 6130 Iliad and 3160 Odyssey (Alexander Pope, verse). A book is mined only if its Gutenberg record says \"Public domain in the USA.\"",
            "default": [
              "3059",
              "1728",
              "2199",
              "1727"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxFormulas": {
            "title": "Max formulas",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most formulas to output, best first. At most 15 of them, and never more than a fifth, are half-lines.",
            "default": 150
          },
          "minCount": {
            "title": "Minimum occurrences",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many times a formula must occur across all books. Homer's formulas recur; one-off phrases are not formulas. Plain adjectives (\"great\", \"old\") need twice this.",
            "default": 2
          },
          "maxPerHead": {
            "title": "Max formulas per name or noun",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Keeps the bank varied: at most this many formulas for one head (Zeus, ships, Troy).",
            "default": 4
          },
          "includeHalfLines": {
            "title": "Include half-lines",
            "type": "boolean",
            "description": "Also mine prepositional half-lines such as \"over the wine-dark sea\" (kind half_line).",
            "default": true
          },
          "modernizeNames": {
            "title": "Use familiar Greek names",
            "type": "boolean",
            "description": "Write names the way players say them: Jove and Minerva (Butler) become Zeus and Athena; Athene, Achaians and Aias (Lang) become Athena, Achaeans and Ajax. Off keeps each translator's spelling.",
            "default": true
          },
          "existingBankUrl": {
            "title": "Existing bank URL",
            "type": "string",
            "description": "URL of the formula bank to dedupe against (a JSON array like MeNIN's content/formulas.json). Formulas already in it, or variants of them (\"fleet-footed Achilles\" for \"swift-footed Achilles\"), are dropped."
          },
          "existingBank": {
            "title": "Existing bank (JSON)",
            "type": "array",
            "description": "The bank pasted as a JSON array of {id, text, ...} entries. Used when no URL is given."
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Politeness cap for gutenberg.org. Requests are always made one at a time.",
            "default": 10
          },
          "useCache": {
            "title": "Cache downloaded books",
            "type": "boolean",
            "description": "Keep downloaded books in the named key-value store epithet-miner-pg-cache, so later runs don't download them again.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}