{
  "openapi": "3.0.1",
  "info": {
    "title": "Press Fit & Pressure Vessel Calculator (Lamé, ISO Fits, ASME)",
    "description": "Press and shrink fit, thick cylinder and pressure vessel calculator from plain text: contact pressure from an interference or ISO fit (H7/s6), stresses, holding torque, assembly temperature, Lamé wall stresses, and ASME VIII shell and head thickness and MAWP.",
    "version": "0.1",
    "x-build-id": "YQ4kUDwubvDF3AeLy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jumblemog~press-fit-vessel-calculator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jumblemog-press-fit-vessel-calculator",
        "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/jumblemog~press-fit-vessel-calculator/runs": {
      "post": {
        "operationId": "runs-sync-jumblemog-press-fit-vessel-calculator",
        "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/jumblemog~press-fit-vessel-calculator/run-sync": {
      "post": {
        "operationId": "run-sync-jumblemog-press-fit-vessel-calculator",
        "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": {
          "requests": {
            "title": "Requests",
            "type": "array",
            "description": "One request per entry, as a line of text or an object. Press or shrink fits: the fit diameter ('50 mm shaft'), the hub's outside diameter ('hub OD 100 mm'), the interference ('0.05 mm interference', '0.03 to 0.06 mm interference') or an ISO fit ('H7/s6', metric), the length ('40 mm long'), materials ('steel shaft in a cast iron hub', '1045', '4140', 'aluminum', 'bronze'), and optionally a hollow shaft's bore, 'friction 0.12' and 'torque 500 N·m' to check slip. Thick cylinders: 'ID 100 mm, OD 200 mm' (or a wall), 'internal pressure 50 MPa', 'external pressure 10 MPa', 'open ends'. ASME vessels: the design pressure ('1.5 MPa', '150 psi', '15 bar'), 'ID 1000 mm', the material ('SA-516-70', 'SA-240-304') or 'allowable stress 138 MPa', 'spot RT' / 'full RT' / 'no RT', 'corrosion 3 mm', the heads ('2:1 ellipsoidal', 'hemispherical', 'torispherical'), and a wall to check. Object fields: type (press fit, cylinder, vessel), diameter, fit, interference, radialInterference, hubDiameter, shaftBore, length, friction, torque, assemblyClearance, material, shaftMaterial, hubMaterial, yieldStrength, shaftYield, hubYield, insideDiameter, outsideDiameter, thickness, pressure, externalPressure, ends, asmeMaterial, allowableStress, jointEfficiency, corrosion, heads, units, title."
          },
          "material": {
            "title": "Default material",
            "enum": [
              "steel",
              "1018",
              "1020",
              "1045",
              "4140",
              "a36",
              "304",
              "316",
              "cast iron",
              "aluminum",
              "6061-t6",
              "7075-t6",
              "brass",
              "bronze",
              "copper",
              "titanium"
            ],
            "type": "string",
            "description": "For press fits and cylinders that name none (plain steel if unset, which has no yield strength)."
          },
          "friction": {
            "title": "Default friction coefficient",
            "type": "string",
            "description": "For a press fit's holding torque and force, such as '0.12'. 0.15 if unset."
          },
          "jointEfficiency": {
            "title": "Default joint efficiency",
            "enum": [
              "1.0",
              "0.85",
              "0.7"
            ],
            "type": "string",
            "description": "For ASME vessels that don't say. 1.0 if unset."
          },
          "units": {
            "title": "Units",
            "enum": [
              "mm",
              "in"
            ],
            "type": "string",
            "description": "For numbers written without a unit. Inches or psi in the text switch to inch units on their own.",
            "default": "mm"
          },
          "charts": {
            "title": "Draw charts",
            "type": "boolean",
            "description": "Stress through the parts and the safety factors, or the vessel's thicknesses and MAWP.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}