{
  "openapi": "3.0.1",
  "info": {
    "title": "Nordic Swan Ecolabel Scraper - Products, GTIN & Licence Holders",
    "description": "Nordic Swan Ecolabel (Svanen) scraper and API: filter svanen.se by product group, company, brand or licence number. One row per product or licence holder: GTIN, licence number, company, brand, type, group, link, holder website. Only Nordic Swan actor on the Store. No login. $1.00 per 1,000.",
    "version": "1.0",
    "x-build-id": "zbPe8ina3Haa4VTNc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~nordic-swan-ecolabel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-nordic-swan-ecolabel-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/rel8ble~nordic-swan-ecolabel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-nordic-swan-ecolabel-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/rel8ble~nordic-swan-ecolabel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-nordic-swan-ecolabel-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": "Output mode",
            "enum": [
              "products",
              "licenceHolders"
            ],
            "type": "string",
            "description": "\"products\": one row per certified product (default). \"licenceHolders\": one row per licence-holding company with licence numbers, brands, product count, product types and website - a supplier list. Cost is per row in both modes.",
            "default": "products"
          },
          "productGroups": {
            "title": "Product groups",
            "type": "array",
            "description": "English product group names or paths as on svanen.se/en/products-and-services (1148 groups), e.g. \"Batteries\", \"Toner cartridges\", \"Electronics > Printers & copiers\", \"Building materials\". A sub-group, a group or a whole top-level group all work. Top-level groups: Building materials (13946), Car, boat & vehicle (1310), Children (2630), Clothing & textiles (5182), Company services & professional products (11870), E-commerce logistics (14), Electronics (4326), Events (2), Furniture & fittings (8010), Grocery stores (8), Home & household (9206), Hotel, restaurant & conference (1030), House & renovation (1345), Household services (38), Hygiene & beauty (3679), Investment funds (5), Other (135), Park & garden (1790). Leave empty for all groups.",
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Companies (licence holders)",
            "type": "array",
            "description": "Licence holder names, e.g. \"Dilling\", \"Lyreco\", \"Hilding Anders\". An exact name wins; otherwise every company whose name contains it.",
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Brand names, e.g. \"Energizer\", \"Turbon\", \"RAKO\". Exact name wins; otherwise every brand containing it.",
            "items": {
              "type": "string"
            }
          },
          "audience": {
            "title": "Audience",
            "type": "array",
            "description": "Keep products marked for consumers or for professional use (many products carry neither mark).",
            "items": {
              "type": "string",
              "enum": [
                "consumers",
                "professional"
              ],
              "enumTitles": [
                "Consumers",
                "Professional use"
              ]
            }
          },
          "productWords": {
            "title": "Product name words",
            "type": "string",
            "description": "Keep products whose name contains all these words (case and accent-insensitive), e.g. \"LR6\", \"mattress\", \"toner black\"."
          },
          "licenceNumbers": {
            "title": "Licence numbers",
            "type": "array",
            "description": "Keep products under these licences, e.g. \"3001 0037\", \"5112 0003\", \"DK/049/024\". Spaces and slashes are ignored when matching.",
            "items": {
              "type": "string"
            }
          },
          "includeProductUrls": {
            "title": "Product links and groups",
            "type": "boolean",
            "description": "Products mode: add the product page link and its English product group (one extra list request per 50 products). Off = much faster big runs.",
            "default": true
          },
          "includeWebsite": {
            "title": "Company websites",
            "type": "boolean",
            "description": "Licence holders mode: read each company page on svanen.se for the company website (one request per company).",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Rows to save (products, or companies in licenceHolders mode). 0 = all that match.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}