{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Market Analyser: Prices, Competition & Profit",
    "description": "Keywords in, the live eBay market out: price range with postage, seller concentration, China competition, optional real sold data and your profit per sale. 8 eBay sites. Pay only for keywords with real data.",
    "version": "0.1",
    "x-build-id": "FW60MBowYBnPttKfP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/best_actors~ebay-market-analyser/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-best_actors-ebay-market-analyser",
        "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/best_actors~ebay-market-analyser/runs": {
      "post": {
        "operationId": "runs-sync-best_actors-ebay-market-analyser",
        "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/best_actors~ebay-market-analyser/run-sync": {
      "post": {
        "operationId": "run-sync-best_actors-ebay-market-analyser",
        "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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "One product per line, as a buyer would search it, e.g. 'logitech g305' or 'vacuum storage bags'. Up to 100.",
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "eBay site",
            "enum": [
              "EBAY_GB",
              "EBAY_US",
              "EBAY_DE",
              "EBAY_FR",
              "EBAY_IT",
              "EBAY_ES",
              "EBAY_AU",
              "EBAY_CA"
            ],
            "type": "string",
            "description": "Which eBay to analyse. Prices come back in that site's currency.",
            "default": "EBAY_GB"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Which listings (and sales) to include.",
            "default": "any"
          },
          "buyItNowOnly": {
            "title": "Buy It Now only",
            "type": "boolean",
            "description": "Leave out auctions, whose current bid is not a selling price.",
            "default": true
          },
          "strictTitleMatch": {
            "title": "Only listings that name every keyword word",
            "type": "boolean",
            "description": "Drops accessories and near-misses (a 'G304' when you searched 'G305', a cable 'for' your product). Turn off for broad category keywords.",
            "default": true
          },
          "listingsPerKeyword": {
            "title": "Listings to sample per keyword",
            "minimum": 10,
            "maximum": 200,
            "type": "integer",
            "description": "Best-match listings eBay returns, used for the statistics. The total count on eBay is reported separately.",
            "default": 100
          },
          "yourCost": {
            "title": "Your cost per item (optional)",
            "type": "number",
            "description": "What one unit costs you, in the site's currency. Adds profit, margin, break-even price and a verdict."
          },
          "yourShippingCost": {
            "title": "Your shipping cost per order",
            "type": "number",
            "description": "What you pay to post one order. Prices are compared including postage.",
            "default": 0
          },
          "feePercent": {
            "title": "Selling fees, %",
            "type": "number",
            "description": "eBay final value fee plus payment fees, as a percentage. Around 13% for most UK and US categories.",
            "default": 13
          },
          "feeFixed": {
            "title": "Fixed fee per order",
            "type": "number",
            "description": "The fixed per-order fee, e.g. 0.30.",
            "default": 0.3
          },
          "includeSoldData": {
            "title": "Add real sold data",
            "type": "boolean",
            "description": "Adds real completed sales: sales per month and sold price range. Uses the caffein.dev eBay Sold Listings Actor, which Apify bills to your account at its own price (about $0.0035 per sale fetched, so about $0.09 per keyword at 25 sales). Nothing to set up.",
            "default": false
          },
          "soldDays": {
            "title": "Sold data: days back",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "How far back to look for sales.",
            "default": 30
          },
          "soldRowsPerKeyword": {
            "title": "Sold data: sales per keyword",
            "minimum": 10,
            "maximum": 200,
            "type": "integer",
            "description": "More sales gives a steadier median but costs more (about $0.0035 per sale).",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}