{
  "openapi": "3.0.1",
  "info": {
    "title": "Desktop & Laptop RAM Deals",
    "description": "Find deals on desktop and laptop RAM — DDR4, DDR5, ECC, SODIMM — from top retailers worldwide with country and delivery/pickup filters.",
    "version": "0.1",
    "x-build-id": "1nWo13TJAzYfRQ8cp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shiftyllama~ram-deals-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shiftyllama-ram-deals-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/shiftyllama~ram-deals-scraper/runs": {
      "post": {
        "operationId": "runs-sync-shiftyllama-ram-deals-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/shiftyllama~ram-deals-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-shiftyllama-ram-deals-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",
        "properties": {
          "mode": {
            "title": "Search Mode",
            "enum": [
              "ram_deals",
              "brand_search",
              "custom_site"
            ],
            "type": "string",
            "description": "How to search for deals. 'ram_deals' (default) scrapes known AU stores for RAM clearance. 'brand_search' searches across AU stores for any product. 'custom_site' scrapes any website URL you provide.",
            "default": "ram_deals"
          },
          "search_query": {
            "title": "Brand/Model Search",
            "type": "string",
            "description": "Product name, brand, or model to search for. Used in brand_search and custom_site modes. Examples: 'Samsung 990 Pro', 'RTX 5090', 'DDR5 32GB', 'Corsair Vengeance'",
            "default": ""
          },
          "custom_url": {
            "title": "Website URL",
            "type": "string",
            "description": "Full URL to scrape for deals. Used in custom_site mode. Must start with http:// or https://. Example: 'https://www.ple.com.au/Products/Ram' or 'https://www.amazon.com.au/s?k=ddr5+ram'",
            "default": ""
          },
          "stores": {
            "title": "Stores to Scrape",
            "type": "array",
            "description": "Select which stores to search. Unselect all to use default set. Only applies to ram_deals mode.",
            "items": {
              "type": "string",
              "enum": [
                "PLE Computers",
                "Scorptec",
                "Centre Com",
                "JW Computers",
                "Austin Computers",
                "Shopping Express"
              ],
              "enumTitles": [
                "PLE Computers (WA - AU)",
                "Scorptec (VIC/QLD/NSW - AU)",
                "Centre Com (NSW - AU)",
                "JW Computers (NSW - AU)",
                "Austin Computers (VIC - AU)",
                "Shopping Express (AU)"
              ]
            }
          },
          "countries": {
            "title": "Ship To Country",
            "type": "array",
            "description": "Filter deals by which countries the store ships to. Default: AU only.",
            "items": {
              "type": "string",
              "enum": [
                "AU"
              ],
              "enumTitles": [
                "Australia"
              ]
            }
          },
          "shipping_method": {
            "title": "Shipping Method",
            "enum": [
              "both",
              "delivery",
              "pickup"
            ],
            "type": "string",
            "description": "Filter by delivery method. 'delivery' (ship to you), 'pickup' (in-store pickup only), or 'both' (no filter).",
            "default": "both"
          },
          "ddr_types": {
            "title": "DDR Type",
            "type": "array",
            "description": "Filter by DDR generation. Only applies to ram_deals mode. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "DDR5",
                "DDR4",
                "DDR3"
              ],
              "enumTitles": [
                "DDR5",
                "DDR4",
                "DDR3"
              ]
            }
          },
          "form_factors": {
            "title": "Form Factor",
            "type": "array",
            "description": "Filter by DIMM (desktop) or SO-DIMM (laptop). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "DIMM",
                "SO-DIMM"
              ],
              "enumTitles": [
                "DIMM (Desktop)",
                "SO-DIMM (Laptop)"
              ]
            }
          },
          "min_capacity_gb": {
            "title": "Minimum Capacity (GB)",
            "type": "integer",
            "description": "Only show RAM modules with at least this capacity. 0 = no filter.",
            "default": 0
          },
          "min_discount_percent": {
            "title": "Minimum Discount %",
            "type": "integer",
            "description": "Only show deals with at least this % discount. 0 = show everything.",
            "default": 0
          },
          "max_results": {
            "title": "Maximum Results",
            "type": "integer",
            "description": "Max deals to return. Sorted by biggest discount first.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}