{
  "data": {
    "id": "XNYqy1kEmkdb2w3aL",
    "actId": "NvOnD7WXAJJki6UFA",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-11-14T10:42:46.061Z",
    "finishedAt": "2026-11-14T10:42:50.902Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 4777,
      "runTimeSecs": 4.777,
      "computeUnits": 0.005307777777777778,
      "imageSizeBytes": 371682816
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "6GwdnIcc2aWR7LzCS",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"eMAG Scraper Input\",\n  \"description\": \"Search eMAG products, browse a category, fetch one product, or list every seller offer. Romania, Bulgaria and Hungary storefronts; no account or cookies needed.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to scrape: a keyword search, a category page, one product, or the seller offers for one product.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"searchProducts\",\n        \"browseCategory\",\n        \"getProductDetails\",\n        \"getProductOffers\"\n      ],\n      \"enumTitles\": [\n        \"Search products by keyword\",\n        \"Browse a category URL\",\n        \"Get details for one product\",\n        \"Get every seller offer for one product\"\n      ],\n      \"default\": \"searchProducts\",\n      \"prefill\": \"searchProducts\",\n      \"sectionCaption\": \"What to scrape\"\n    },\n    \"query\": {\n      \"title\": \"Search query\",\n      \"type\": \"string\",\n      \"description\": \"Keyword or phrase to search for (mode=searchProducts). Use the market's language for the best results.\",\n      \"editor\": \"textfield\",\n      \"default\": \"laptop\",\n      \"prefill\": \"laptop\"\n    },\n    \"categoryUrl\": {\n      \"title\": \"Category URL\",\n      \"type\": \"string\",\n      \"description\": \"eMAG category URL or path, e.g. /laptopuri/c or https://www.emag.ro/laptopuri/c (mode=browseCategory). Use a path from the selected market.\",\n      \"editor\": \"textfield\",\n      \"default\": \"/laptopuri/c\",\n      \"prefill\": \"/laptopuri/c\"\n    },\n    \"productUrl\": {\n      \"title\": \"Product URL or code\",\n      \"type\": \"string\",\n      \"description\": \"Full eMAG product URL, a path containing /pd/, or a product code such as DR3HHTYBM (mode=getProductDetails or getProductOffers).\",\n      \"editor\": \"textfield\"\n    },\n    \"market\": {\n      \"title\": \"Market\",\n      \"type\": \"string\",\n      \"description\": \"Which eMAG storefront to use. A full product or category URL overrides this value.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"ro\",\n        \"bg\",\n        \"hu\"\n      ],\n      \"enumTitles\": [\n        \"Romania (emag.ro) - RON\",\n        \"Bulgaria (emag.bg) - EUR\",\n        \"Hungary (emag.hu) - HUF\"\n      ],\n      \"default\": \"ro\",\n      \"prefill\": \"ro\"\n    },\n    \"sortBy\": {\n      \"title\": \"Sort by\",\n      \"type\": \"string\",\n      \"description\": \"Result order for searchProducts and browseCategory. Reviews and discount are eMAG's own server-side sorts.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"relevance\",\n        \"price_asc\",\n        \"price_desc\",\n        \"reviews\",\n        \"discount\"\n      ],\n      \"enumTitles\": [\n        \"Relevance (default)\",\n        \"Price: low to high\",\n        \"Price: high to low\",\n        \"Number of reviews\",\n        \"Discount percentage\"\n      ],\n      \"default\": \"relevance\",\n      \"prefill\": \"relevance\"\n    },\n    \"minPrice\": {\n      \"title\": \"Minimum price\",\n      \"type\": \"number\",\n      \"description\": \"Keep products at or above this price in the market's currency (RON, EUR or HUF).\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 10000000,\n      \"sectionCaption\": \"Filters\"\n    },\n    \"maxPrice\": {\n      \"title\": \"Maximum price\",\n      \"type\": \"number\",\n      \"description\": \"Keep products at or below this price in the market's currency.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 10000000\n    },\n    \"minRating\": {\n      \"title\": \"Minimum rating\",\n      \"type\": \"string\",\n      \"description\": \"Keep products rated at least this many stars. Products with no rating are excluded when a minimum is set.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"0\",\n        \"1\",\n        \"2\",\n        \"3\",\n        \"4\",\n        \"5\"\n      ],\n      \"enumTitles\": [\n        \"Any rating\",\n        \"1+ stars\",\n        \"2+ stars\",\n        \"3+ stars\",\n        \"4+ stars\",\n        \"5 stars\"\n      ],\n      \"default\": \"0\",\n      \"prefill\": \"0\"\n    },\n    \"inStockOnly\": {\n      \"title\": \"In stock only\",\n      \"type\": \"boolean\",\n      \"description\": \"Keep only products that can be ordered right now.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includeOffers\": {\n      \"title\": \"Include seller offers\",\n      \"type\": \"boolean\",\n      \"description\": \"For mode=getProductDetails, add the buybox and competing seller offers to each product record. Ignored by the other modes.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum products to return for searchProducts and browseCategory (1-1000). Detail and offers modes return one product or all of its offers.\",\n      \"editor\": \"number\",\n      \"minimum\": 1,\n      \"maximum\": 1000,\n      \"default\": 30,\n      \"prefill\": 20,\n      \"sectionCaption\": \"Output limit\"\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# eMAG Multi-Market Product & Price Scraper\n\nMonitor eMAG across Romania, Bulgaria and Hungary without a login, cookie or API key. Search a keyword, walk a category, open one product, or compare every seller on a product page. The output is one clean dataset with local prices in RON, EUR or HUF, the 30-day lowest price, discount depth, rating, review count, stock wording, seller, offer counts, category, image and product URL.\n\n## Modes\n\n| Mode | What it returns | Required field |\n|---|---|---|\n| `searchProducts` | Paginated keyword results | `query` |\n| `browseCategory` | Paginated category or filtered listing | `categoryUrl` |\n| `getProductDetails` | One product with description, brand, specs and optional seller offers | `productUrl` |\n| `getProductOffers` | One row per seller offer: buybox and every competing marketplace seller | `productUrl` |\n\n`productUrl` accepts a full URL or a path containing `/pd/` for product details. Offers mode also accepts a bare product code such as `DR3HHTYBM`. A full eMAG URL also selects its own market, so a `emag.bg` link is read from Bulgaria even when `market` says `ro`.\n\n## Markets\n\n| Code | Storefront | Currency |\n|---|---|---|\n| `ro` | emag.ro | RON |\n| `bg` | emag.bg | EUR |\n| `hu` | emag.hu | HUF |\n\nPrices and price filters always use the storefront's live currency. Bulgaria switched to EUR in 2026, so the actor reads the currency from each response instead of assuming BGN.\n\n## Filters and sorting\n\n- `minPrice` / `maxPrice` in the local currency. An inverted range returns zero records with a clear status message instead of crashing.\n- `minRating` keeps products rated at least 1-5 stars; products without a rating are excluded when this is set.\n- `inStockOnly` keeps only records that can be ordered now. Filtering is applied on top of the source response, so the actor keeps paginating until it reaches `maxItems` or the source runs out.\n- `sortBy` supports relevance, price ascending, price descending, review count and discount percentage. eMAG has no server-side \"highest rating\" sort; the old `rating` value is accepted for saved tasks and mapped to review count in code.\n\n## Output fields\n\n- `productId`, `partNumberKey`, `mpn` - eMAG numeric ID and product codes\n- `name`, `brand`, `description`, `specifications`, `category`, `categoryPath`\n- `price`, `originalPrice`, `lowestPrice30Days`, `discountPercent`, `currency` - eMAG's published discount when no original price is visible\n- `rating`, `reviewCount`\n- `availability`, `availabilityCode`, `inStock`\n- `seller`, `sellerId`, `offerId`, `isBuybox`, `returnPeriodDays`\n- `offersCount`, `otherOffersCount`, `otherOffersMinPrice`, `offers`\n- `campaigns`, `imageUrl`, `url`, `market`, `scrapedAt`\n\nEmpty values are omitted. A field the source does not publish for a given product is absent, never `null` or a placeholder.\n\n## Examples\n\nSearch laptops and keep only 4-star products under 3,000 RON:\n\n```json\n{\n  \"mode\": \"searchProducts\",\n  \"query\": \"laptop\",\n  \"market\": \"ro\",\n  \"maxPrice\": 3000,\n  \"minRating\": 4,\n  \"sortBy\": \"price_asc\",\n  \"maxItems\": 100\n}\n```\n\nBrowse a Bulgarian category with a price band:\n\n```json\n{\n  \"mode\": \"browseCategory\",\n  \"categoryUrl\": \"/laptopi/c\",\n  \"market\": \"bg\",\n  \"minPrice\": 500,\n  \"maxPrice\": 1500,\n  \"sortBy\": \"reviews\",\n  \"maxItems\": 200\n}\n```\n\nCompare every seller on one product:\n\n```json\n{\n  \"mode\": \"getProductOffers\",\n  \"productUrl\": \"https://www.emag.ro/laptop-lenovo-v15/pd/DR3HHTYBM/\",\n  \"market\": \"ro\"\n}\n```\n\n## Pagination and limits\n\neMAG serves 60 products per listing page and caps a listing at 100 pages. The actor follows those pages, deduplicates by product code and stops at `maxItems` (1-1000) or when the source is exhausted. The default prefill is one small search with 20 products.\n\n## Data source\n\nThe actor reads eMAG's own public storefront endpoints: the JSON listing endpoint behind the search and category pages, the product page's structured data, and the multi-offer block shown on product pages. No account, cookie, credential or user proxy is required. A translation mirror is used only when a storefront blocks the direct request; the actor never needs a proxy configuration from the user.\n\n## Compatibility with saved tasks\n\nExisting tasks keep working. The old `searchQuery`, `categoryPath`, `productCode`, `maxResults`, `priceMin` / `priceMax`, `ratingMin`, `inStock` and `sort: \"rating\"` keys are read from the raw input and mapped in code even though they no longer appear in the input form. No output field was removed or renamed.\n\n## FAQ\n\n**Do I need an eMAG account?** No. Only public product, price and seller data is read.\n\n**Which currency will I get?** The currency eMAG shows for that storefront at run time: RON, EUR or HUF.\n\n**Why are some fields missing on a search row?** Listing pages expose card-level data. Brand, description, specifications and the full offer table live on the product page, so use `getProductDetails` or `getProductOffers` for those.\n\n**What does the 30-day low mean?** It is eMAG's own lowest-price-in-the-last-30-days figure, published under EU pricing rules. It is omitted when eMAG does not show it.\n\n**How fresh is the data?** Every run reads the live storefront; prices, stock and seller offers reflect the moment of the run.\n\n**Are reviews included?** The actor returns rating and review count, not review text.\n\n**What happened to eMAG Poland?** eMAG closed its Polish storefront: `emag.pl` now redirects to `emag.ro` and has no product catalogue. A saved task that still sends `market: \"pl\"` gets a clear status message instead of wrong-currency data; choose `ro`, `bg` or `hu`.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "emag-multi-market-product-and-price-scraper",
      "title": "eMAG Multi-Market Product & Price Scraper",
      "description": "Search, browse or fetch product details and seller offers across eMAG's Romania, Bulgaria and Hungary storefronts: local prices, 30-day low, discount, ratings, stock, seller and specifications.",
      "version": "1.1",
      "buildTag": "latest",
      "dockerfile": "./Dockerfile",
      "readme": "# eMAG Multi-Market Product & Price Scraper\n\nMonitor eMAG across Romania, Bulgaria and Hungary without a login, cookie or API key. Search a keyword, walk a category, open one product, or compare every seller on a product page. The output is one clean dataset with local prices in RON, EUR or HUF, the 30-day lowest price, discount depth, rating, review count, stock wording, seller, offer counts, category, image and product URL.\n\n## Modes\n\n| Mode | What it returns | Required field |\n|---|---|---|\n| `searchProducts` | Paginated keyword results | `query` |\n| `browseCategory` | Paginated category or filtered listing | `categoryUrl` |\n| `getProductDetails` | One product with description, brand, specs and optional seller offers | `productUrl` |\n| `getProductOffers` | One row per seller offer: buybox and every competing marketplace seller | `productUrl` |\n\n`productUrl` accepts a full URL or a path containing `/pd/` for product details. Offers mode also accepts a bare product code such as `DR3HHTYBM`. A full eMAG URL also selects its own market, so a `emag.bg` link is read from Bulgaria even when `market` says `ro`.\n\n## Markets\n\n| Code | Storefront | Currency |\n|---|---|---|\n| `ro` | emag.ro | RON |\n| `bg` | emag.bg | EUR |\n| `hu` | emag.hu | HUF |\n\nPrices and price filters always use the storefront's live currency. Bulgaria switched to EUR in 2026, so the actor reads the currency from each response instead of assuming BGN.\n\n## Filters and sorting\n\n- `minPrice` / `maxPrice` in the local currency. An inverted range returns zero records with a clear status message instead of crashing.\n- `minRating` keeps products rated at least 1-5 stars; products without a rating are excluded when this is set.\n- `inStockOnly` keeps only records that can be ordered now. Filtering is applied on top of the source response, so the actor keeps paginating until it reaches `maxItems` or the source runs out.\n- `sortBy` supports relevance, price ascending, price descending, review count and discount percentage. eMAG has no server-side \"highest rating\" sort; the old `rating` value is accepted for saved tasks and mapped to review count in code.\n\n## Output fields\n\n- `productId`, `partNumberKey`, `mpn` - eMAG numeric ID and product codes\n- `name`, `brand`, `description`, `specifications`, `category`, `categoryPath`\n- `price`, `originalPrice`, `lowestPrice30Days`, `discountPercent`, `currency` - eMAG's published discount when no original price is visible\n- `rating`, `reviewCount`\n- `availability`, `availabilityCode`, `inStock`\n- `seller`, `sellerId`, `offerId`, `isBuybox`, `returnPeriodDays`\n- `offersCount`, `otherOffersCount`, `otherOffersMinPrice`, `offers`\n- `campaigns`, `imageUrl`, `url`, `market`, `scrapedAt`\n\nEmpty values are omitted. A field the source does not publish for a given product is absent, never `null` or a placeholder.\n\n## Examples\n\nSearch laptops and keep only 4-star products under 3,000 RON:\n\n```json\n{\n  \"mode\": \"searchProducts\",\n  \"query\": \"laptop\",\n  \"market\": \"ro\",\n  \"maxPrice\": 3000,\n  \"minRating\": 4,\n  \"sortBy\": \"price_asc\",\n  \"maxItems\": 100\n}\n```\n\nBrowse a Bulgarian category with a price band:\n\n```json\n{\n  \"mode\": \"browseCategory\",\n  \"categoryUrl\": \"/laptopi/c\",\n  \"market\": \"bg\",\n  \"minPrice\": 500,\n  \"maxPrice\": 1500,\n  \"sortBy\": \"reviews\",\n  \"maxItems\": 200\n}\n```\n\nCompare every seller on one product:\n\n```json\n{\n  \"mode\": \"getProductOffers\",\n  \"productUrl\": \"https://www.emag.ro/laptop-lenovo-v15/pd/DR3HHTYBM/\",\n  \"market\": \"ro\"\n}\n```\n\n## Pagination and limits\n\neMAG serves 60 products per listing page and caps a listing at 100 pages. The actor follows those pages, deduplicates by product code and stops at `maxItems` (1-1000) or when the source is exhausted. The default prefill is one small search with 20 products.\n\n## Data source\n\nThe actor reads eMAG's own public storefront endpoints: the JSON listing endpoint behind the search and category pages, the product page's structured data, and the multi-offer block shown on product pages. No account, cookie, credential or user proxy is required. A translation mirror is used only when a storefront blocks the direct request; the actor never needs a proxy configuration from the user.\n\n## Compatibility with saved tasks\n\nExisting tasks keep working. The old `searchQuery`, `categoryPath`, `productCode`, `maxResults`, `priceMin` / `priceMax`, `ratingMin`, `inStock` and `sort: \"rating\"` keys are read from the raw input and mapped in code even though they no longer appear in the input form. No output field was removed or renamed.\n\n## FAQ\n\n**Do I need an eMAG account?** No. Only public product, price and seller data is read.\n\n**Which currency will I get?** The currency eMAG shows for that storefront at run time: RON, EUR or HUF.\n\n**Why are some fields missing on a search row?** Listing pages expose card-level data. Brand, description, specifications and the full offer table live on the product page, so use `getProductDetails` or `getProductOffers` for those.\n\n**What does the 30-day low mean?** It is eMAG's own lowest-price-in-the-last-30-days figure, published under EU pricing rules. It is omitted when eMAG does not show it.\n\n**How fresh is the data?** Every run reads the live storefront; prices, stock and seller offers reflect the moment of the run.\n\n**Are reviews included?** The actor returns rating and review count, not review text.\n\n**What happened to eMAG Poland?** eMAG closed its Polish storefront: `emag.pl` now redirects to `emag.ro` and has no product catalogue. A saved task that still sends `market: \"pl\"` gets a clear status message instead of wrong-currency data; choose `ro`, `bg` or `hu`.\n",
      "input": {
        "title": "eMAG Scraper Input",
        "description": "Search eMAG products, browse a category, fetch one product, or list every seller offer. Romania, Bulgaria and Hungary storefronts; no account or cookies needed.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to scrape: a keyword search, a category page, one product, or the seller offers for one product.",
            "editor": "select",
            "enum": [
              "searchProducts",
              "browseCategory",
              "getProductDetails",
              "getProductOffers"
            ],
            "enumTitles": [
              "Search products by keyword",
              "Browse a category URL",
              "Get details for one product",
              "Get every seller offer for one product"
            ],
            "default": "searchProducts",
            "prefill": "searchProducts",
            "sectionCaption": "What to scrape"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword or phrase to search for (mode=searchProducts). Use the market's language for the best results.",
            "editor": "textfield",
            "default": "laptop",
            "prefill": "laptop"
          },
          "categoryUrl": {
            "title": "Category URL",
            "type": "string",
            "description": "eMAG category URL or path, e.g. /laptopuri/c or https://www.emag.ro/laptopuri/c (mode=browseCategory). Use a path from the selected market.",
            "editor": "textfield",
            "default": "/laptopuri/c",
            "prefill": "/laptopuri/c"
          },
          "productUrl": {
            "title": "Product URL or code",
            "type": "string",
            "description": "Full eMAG product URL, a path containing /pd/, or a product code such as DR3HHTYBM (mode=getProductDetails or getProductOffers).",
            "editor": "textfield"
          },
          "market": {
            "title": "Market",
            "type": "string",
            "description": "Which eMAG storefront to use. A full product or category URL overrides this value.",
            "editor": "select",
            "enum": [
              "ro",
              "bg",
              "hu"
            ],
            "enumTitles": [
              "Romania (emag.ro) - RON",
              "Bulgaria (emag.bg) - EUR",
              "Hungary (emag.hu) - HUF"
            ],
            "default": "ro",
            "prefill": "ro"
          },
          "sortBy": {
            "title": "Sort by",
            "type": "string",
            "description": "Result order for searchProducts and browseCategory. Reviews and discount are eMAG's own server-side sorts.",
            "editor": "select",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "reviews",
              "discount"
            ],
            "enumTitles": [
              "Relevance (default)",
              "Price: low to high",
              "Price: high to low",
              "Number of reviews",
              "Discount percentage"
            ],
            "default": "relevance",
            "prefill": "relevance"
          },
          "minPrice": {
            "title": "Minimum price",
            "type": "number",
            "description": "Keep products at or above this price in the market's currency (RON, EUR or HUF).",
            "editor": "number",
            "minimum": 0,
            "maximum": 10000000,
            "sectionCaption": "Filters"
          },
          "maxPrice": {
            "title": "Maximum price",
            "type": "number",
            "description": "Keep products at or below this price in the market's currency.",
            "editor": "number",
            "minimum": 0,
            "maximum": 10000000
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Keep products rated at least this many stars. Products with no rating are excluded when a minimum is set.",
            "editor": "select",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "enumTitles": [
              "Any rating",
              "1+ stars",
              "2+ stars",
              "3+ stars",
              "4+ stars",
              "5 stars"
            ],
            "default": "0",
            "prefill": "0"
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Keep only products that can be ordered right now.",
            "default": false,
            "prefill": false
          },
          "includeOffers": {
            "title": "Include seller offers",
            "type": "boolean",
            "description": "For mode=getProductDetails, add the buybox and competing seller offers to each product record. Ignored by the other modes.",
            "default": true,
            "prefill": true
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Maximum products to return for searchProducts and browseCategory (1-1000). Detail and offers modes return one product or all of its offers.",
            "editor": "number",
            "minimum": 1,
            "maximum": 1000,
            "default": 30,
            "prefill": 20,
            "sectionCaption": "Output limit"
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "eMAG Multi-Market Product & Price Scraper Output",
        "description": "One dataset of eMAG products, product details or seller offers. Records include the product code, local price and currency, original price, 30-day lowest price, discount, rating, review count, availability, seller, offers count, category, image, URL and market.",
        "properties": {
          "products": {
            "type": "string",
            "title": "eMAG products and offers",
            "description": "Default dataset with every scraped product, detail row or seller offer.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Products and offers",
              "transformation": {
                "fields": [
                  "productId",
                  "partNumberKey",
                  "name",
                  "price",
                  "currency",
                  "originalPrice",
                  "discountPercent",
                  "rating",
                  "reviewCount",
                  "seller",
                  "offersCount",
                  "availability",
                  "market",
                  "url"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.1.1",
    "imageDigest": "9cb76f44b3e8447990be72c8ecaae52bb1f7ef3a5340628c97a8e36f48bcbb45",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.1"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.005307777777777778
    }
  }
}