{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon FBA Fees Calculator: Profit, Margin & ROI per ASIN",
    "description": "Calculate Amazon FBA fees and profit per unit for ASINs at your cost price, e.g. a yoga mat or phone case. About $0.018 per ASIN. Referral, fulfillment, storage, net profit, margin, ROI and break-even from Amazon's public Revenue Calculator. US. No login.",
    "version": "1.0",
    "x-build-id": "iOlmF4oIeJTmayIQl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moggedhq~amazon-fba-calculator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moggedhq-amazon-fba-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/moggedhq~amazon-fba-calculator/runs": {
      "post": {
        "operationId": "runs-sync-moggedhq-amazon-fba-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/moggedhq~amazon-fba-calculator/run-sync": {
      "post": {
        "operationId": "run-sync-moggedhq-amazon-fba-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": {
          "asins": {
            "title": "ASINs",
            "type": "array",
            "description": "US Amazon ASINs to calculate, such as B0D5CLSMFB. Exact matches only. Duplicate ASINs and failures are free. Up to 1,000 unique ASINs.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Amazon product URLs (optional)",
            "type": "array",
            "description": "Alternative to ASINs. Paste amazon.com /dp/, /gp/product/ or /gp/aw/d/ product URLs. No account or cookies needed.",
            "items": {
              "type": "string"
            }
          },
          "costPerUnit": {
            "title": "Your cost per unit (USD)",
            "type": "number",
            "description": "What you pay for one unit, before inbound shipping. Required for a calculation; enter 0 only when the product costs you nothing. Use costPerUnitByAsin for different costs."
          },
          "costPerUnitByAsin": {
            "title": "Cost per ASIN (optional)",
            "type": "object",
            "description": "Overrides costPerUnit for listed ASINs, e.g. {\"B0D5CLSMFB\": 6, \"B002DYIZH6\": 18}. Values are USD per unit."
          },
          "sellingPrice": {
            "title": "Selling price override (USD, optional)",
            "type": "number",
            "description": "Your planned item selling price. Leave empty to use the current featured offer. Amazon fees and break-even use this price; shipping charged to an FBM buyer is not added."
          },
          "sellingPriceByAsin": {
            "title": "Selling price per ASIN (optional)",
            "type": "object",
            "description": "Planned selling prices in USD keyed by ASIN. Overrides the common sellingPrice."
          },
          "inboundShippingPerUnit": {
            "title": "Inbound shipping per unit (USD)",
            "type": "number",
            "description": "Your cost to send each unit to Amazon. Default 0. Add inbound placement charges here or to otherCostsPerUnit if relevant.",
            "default": 0
          },
          "otherCostsPerUnit": {
            "title": "Other costs per unit (USD)",
            "type": "number",
            "description": "Optional per-unit advertising, prep, returns, inbound placement, tax or other seller-specific costs. Default 0. None are guessed.",
            "default": 0
          },
          "unitsPerMonth": {
            "title": "Expected units sold per month",
            "type": "number",
            "description": "Used with averageInventoryUnits to allocate monthly storage. If averageInventoryUnits is omitted, one month of storage is assumed per unit sold.",
            "default": 1
          },
          "averageInventoryUnits": {
            "title": "Average units stored (optional)",
            "type": "number",
            "description": "Your average stock level. Storage per unit sold equals Amazon monthly storage per unit times this number divided by unitsPerMonth. Enter 0 only for a deliberate zero-storage scenario."
          },
          "feeDate": {
            "title": "Fee date (optional)",
            "type": "string",
            "description": "ISO date, such as 2026-10-15. Default today in US Eastern time. Future dates supported through 2027-01-14 using announced API rates. October-December storage and fulfillment peak dates are separate."
          },
          "marketplace": {
            "title": "Marketplace",
            "type": "string",
            "description": "US only. Prices and costs are US dollars. Other marketplaces return a free note.",
            "default": "US"
          },
          "includeProductDetails": {
            "title": "Also read product-page dimensions",
            "type": "boolean",
            "description": "Optional, slower. Reads public item/package dimensions, weight and browse path when available. Item dimensions are never treated as package measurements. The API fee calculation does not require these fields.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}