{
  "data": {
    "id": "FhQ1acdEgUfCDnzDl",
    "actId": "69XojcyFd1KyjmKNq",
    "userId": "IYgBDiXtHOijAaUel",
    "startedAt": "2026-11-20T15:05:22.132Z",
    "finishedAt": "2026-11-20T15:05:56.352Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 34124,
      "runTimeSecs": 34.124,
      "computeUnits": 0.037915555555555557,
      "imageSizeBytes": 3166858240
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "QYo53EZkJk0prePWY",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"Eniro Scraper Input\",\n  \"description\": \"Search Eniro.se (Sweden's business & phone directory) by keyword/category and city (or nationwide), fetch full company profiles from URLs/IDs, or scrape a list of Eniro search/profile URLs.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to scrape: keyword/category searches, direct company profiles, or a list of Eniro search/profile URLs.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"detail\",\n        \"urls\"\n      ],\n      \"enumTitles\": [\n        \"Search by keyword/category & city\",\n        \"Fetch company profiles by URL/ID\",\n        \"Scrape Eniro search/profile URLs\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\"\n    },\n    \"query\": {\n      \"title\": \"Category / keyword\",\n      \"type\": \"string\",\n      \"description\": \"Business category or keyword to search for (mode=search). Pick a common category from the list, or choose 'Custom' and type your own in the field below. Ignored when 'Search terms' is filled.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"custom\",\n        \"pizzeria\",\n        \"restaurang\",\n        \"frisör\",\n        \"tandläkare\",\n        \"advokat\",\n        \"elektriker\",\n        \"rörmokare\",\n        \"målare\",\n        \"snickare\",\n        \"bilverkstad\",\n        \"hotell\",\n        \"blomsterhandlare\",\n        \"revisor\",\n        \"fastighetsmäklare\",\n        \"veterinär\",\n        \"optiker\",\n        \"apotek\",\n        \"gym\",\n        \"massage\",\n        \"byggföretag\",\n        \"taxi\",\n        \"flyttfirma\",\n        \"trädgårdsanläggning\",\n        \"försäkringsmäklare\",\n        \"hundfrisör\",\n        \"glasmästare\",\n        \"låssmed\",\n        \"redovisningsbyrå\",\n        \"kafé\",\n        \"bageri\"\n      ],\n      \"enumTitles\": [\n        \"Custom category/keyword (type below)\",\n        \"Pizzeria\",\n        \"Restaurang (Restaurant)\",\n        \"Frisör (Hairdresser)\",\n        \"Tandläkare (Dentist)\",\n        \"Advokat (Lawyer)\",\n        \"Elektriker (Electrician)\",\n        \"Rörmokare (Plumber)\",\n        \"Målare (Painter)\",\n        \"Snickare (Carpenter)\",\n        \"Bilverkstad (Car repair)\",\n        \"Hotell (Hotel)\",\n        \"Blomsterhandlare (Florist)\",\n        \"Revisor (Accountant)\",\n        \"Fastighetsmäklare (Real estate agent)\",\n        \"Veterinär (Veterinarian)\",\n        \"Optiker (Optician)\",\n        \"Apotek (Pharmacy)\",\n        \"Gym (Gym)\",\n        \"Massage\",\n        \"Byggföretag (Construction company)\",\n        \"Taxi\",\n        \"Flyttfirma (Moving company)\",\n        \"Trädgårdsanläggning (Landscaping)\",\n        \"Försäkringsmäklare (Insurance broker)\",\n        \"Hundfrisör (Dog groomer)\",\n        \"Glasmästare (Glazier)\",\n        \"Låssmed (Locksmith)\",\n        \"Redovisningsbyrå (Accounting firm)\",\n        \"Kafé (Cafe)\",\n        \"Bageri (Bakery)\"\n      ],\n      \"default\": \"pizzeria\",\n      \"prefill\": \"pizzeria\"\n    },\n    \"customQuery\": {\n      \"title\": \"Custom category/keyword (overrides selection above)\",\n      \"type\": \"string\",\n      \"description\": \"Free-text category or keyword not in the curated list above, e.g. 'skorstensfejare' or 'IT-konsult' (mode=search). Takes priority over 'Category / keyword' when set. Use correct Swedish spelling with å/ä/ö -- Eniro's search does not fuzzy-match ASCII-folded keywords.\",\n      \"editor\": \"textfield\"\n    },\n    \"searchTerms\": {\n      \"title\": \"Search terms (one or more)\",\n      \"type\": \"array\",\n      \"description\": \"One or more categories/keywords (mode=search). Every term is combined with every city below, so ['rörmokare', 'elektriker'] x ['Stockholm', 'Göteborg'] covers four searches. Leave empty to use the single 'Category / keyword' selection above.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      },\n      \"default\": []\n    },\n    \"city\": {\n      \"title\": \"City\",\n      \"type\": \"string\",\n      \"description\": \"Swedish city or town to search in, e.g. 'Stockholm', 'Göteborg', 'Malmö' (mode=search). Leave empty to search all of Sweden. Ignored when 'Cities' is filled.\",\n      \"editor\": \"textfield\",\n      \"default\": \"Stockholm\",\n      \"prefill\": \"Stockholm\"\n    },\n    \"locations\": {\n      \"title\": \"Cities (one or more)\",\n      \"type\": \"array\",\n      \"description\": \"One or more Swedish cities/towns (mode=search), used with every search term. Leave empty to use the single 'City' field above, or to search nationwide when both are empty.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      },\n      \"default\": []\n    },\n    \"searchCoordinates\": {\n      \"title\": \"Search around coordinates (optional)\",\n      \"type\": \"string\",\n      \"description\": \"Optional 'latitude,longitude' point for a nearby search, e.g. '57.6346,12.8574' (mode=search). Uses Eniro's own coordinates filter; leave empty for a normal city/nationwide search.\",\n      \"editor\": \"textfield\"\n    },\n    \"sortBy\": {\n      \"title\": \"Sort order\",\n      \"type\": \"string\",\n      \"description\": \"How to order the returned results (search modes). Applied after fetching, since Eniro's own listing order is relevance-based.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"relevance\",\n        \"rating\",\n        \"name\"\n      ],\n      \"enumTitles\": [\n        \"Relevance (Eniro's default order)\",\n        \"Rating (highest rated first)\",\n        \"Name (A-Z)\"\n      ],\n      \"default\": \"relevance\",\n      \"prefill\": \"relevance\"\n    },\n    \"ratedOnly\": {\n      \"title\": \"Only companies with ratings\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return companies that have at least one customer rating. Ratings are read from Eniro search cards when present and from the profile page when 'Fetch full company profiles' is enabled.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"minRating\": {\n      \"title\": \"Minimum rating\",\n      \"type\": \"string\",\n      \"description\": \"Only return companies rated at least this many stars, e.g. '4' for 4.0+ (search modes). Unrated companies are excluded when a minimum is set.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"1\",\n        \"2\",\n        \"3\",\n        \"4\",\n        \"5\"\n      ],\n      \"enumTitles\": [\n        \"No minimum (all ratings)\",\n        \"1+ stars\",\n        \"2+ stars\",\n        \"3+ stars\",\n        \"4+ stars\",\n        \"5 stars only\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"hasWebsiteOnly\": {\n      \"title\": \"Only companies with a website\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return companies that list a website (search modes). Websites appear on profile pages, so enable 'Fetch full company profiles' for this filter to find any matches.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"hasPhoneOnly\": {\n      \"title\": \"Only companies with a phone number\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return companies that publish at least one phone number (search modes).\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"hasEmailOnly\": {\n      \"title\": \"Only companies with an email\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return companies that publish an email address (search modes). Emails appear on profile pages, so enable 'Fetch full company profiles' for this filter to find any matches.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includeSoleTraders\": {\n      \"title\": \"Include sole traders\",\n      \"type\": \"boolean\",\n      \"description\": \"Keep one-person firms that Eniro lists under the owner's personal name (e.g. 'Anders Svensson'). Turn this off for company-only lead lists; names carrying a company suffix (AB, HB, KB, förening) are always kept.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"fetchDetails\": {\n      \"title\": \"Fetch full company profiles\",\n      \"type\": \"boolean\",\n      \"description\": \"For each search result, also visit its company profile page to collect multiple phone numbers, email, rating counts, all opening-hours groups, category codes, promotional links, cover photo, coordinates, description, images and organization number. Slower, but far richer output (search modes).\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"businessUrls\": {\n      \"title\": \"Company profile URLs or IDs (mode=detail)\",\n      \"type\": \"array\",\n      \"description\": \"Direct Eniro company URLs (e.g. https://www.eniro.se/<name>/<id>/firma) or bare numeric company IDs to fetch, one per line. Use the 'sourceUrl' or 'businessId' field from search results.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      },\n      \"default\": [],\n      \"prefill\": [\n        \"14839034\"\n      ]\n    },\n    \"startUrls\": {\n      \"title\": \"Eniro search or profile URLs (mode=urls)\",\n      \"type\": \"array\",\n      \"description\": \"Eniro search URLs (e.g. https://www.eniro.se/rörmokare+stockholm/företag) and/or company profile URLs (e.g. https://www.eniro.se/<name>/<id>/firma). Search URLs paginate automatically; profile URLs are fetched directly.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      },\n      \"default\": []\n    },\n    \"maxPagesPerSearch\": {\n      \"title\": \"Max pages per search\",\n      \"type\": \"integer\",\n      \"description\": \"Stop each search term/city after this many result pages (25 companies per page). Keeps large categories bounded.\",\n      \"minimum\": 1,\n      \"maximum\": 100,\n      \"default\": 20,\n      \"prefill\": 1\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on the number of company records to return across all terms, cities and URLs.\",\n      \"minimum\": 1,\n      \"maximum\": 1000,\n      \"default\": 50,\n      \"prefill\": 50\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# Eniro.se Company Directory & Contact Finder\n\nEniro.se is Sweden's largest public business and phone directory. This actor turns it into a structured lead source: search one or many categories across one or many Swedish cities, scrape Eniro search/profile URLs directly, and optionally open every company's own profile page for the contact and trust details that only live there.\n\nNo login, cookie, API key or proxy setup is needed. The actor handles Eniro's bot protection itself.\n\n## What you can do\n\n- **Multi-term, multi-city searches.** Cross every `searchTerms` entry with every `locations` entry in one run (e.g. `rörmokare` + `elektriker` in Stockholm + Göteborg = four searches), or use the single `query` + `city` pair.\n- **Nationwide or nearby.** Leave the city list empty for all of Sweden, or pass a `latitude,longitude` point to use Eniro's own nearby filter.\n- **Scrape URLs.** Paste Eniro search URLs (`/rörmokare+stockholm/företag`) and/or company profile URLs (`/<name>/<id>/firma`) into `startUrls`.\n- **Enrich each hit.** Turn on `fetchDetails` to add multiple phone numbers, email, full rating counts, every opening-hours group, category codes, promotional links, cover photo, free text, coordinates, images and organization number.\n- **Filter for usable leads.** Keep only companies with a phone, an email, a website, a rating, a minimum rating, or exclude one-person sole traders.\n- **Sort and cap.** Order by Eniro relevance, rating or name, and stop each search after a configurable number of pages.\n\nEvery output field is omitted when Eniro does not publish it. Nothing is emitted as `null`, `\"\"` or an empty list.\n\n## Output per company\n\n| Field | Description |\n|---|---|\n| `businessId` | Eniro's internal company ID |\n| `slug` | Human-readable Eniro URL slug |\n| `name` | Company name |\n| `businessType` | schema.org type, e.g. `Restaurant`, `HairSalon`, `Dentist` |\n| `category` / `categories` | Primary category and the full category chain |\n| `categoryCodes` | Eniro category codes matching `categories` |\n| `street`, `postalCode`, `city` | Postal address |\n| `municipality`, `province`, `region`, `urbanArea`, `district`, `country` | Administrative area fields, when Eniro publishes them |\n| `phone` | Primary phone number |\n| `phones` | Every published number as `{number, label?}` |\n| `email` | Published company email |\n| `website` | Company website |\n| `organizationNumber` | Swedish organization number, `NNNNNN-NNNN` |\n| `facebookUrl`, `instagramUrl`, `linkedinUrl`, `twitterUrl`, `youtubeUrl`, `tiktokUrl`, `snapchatUrl`, `whatsappUrl` | Social profiles Eniro has on file |\n| `description` | Short company description |\n| `freeText` | Longer promotional text, when different from `description` |\n| `keywords` | Services, brands or tags attached to the listing |\n| `rating` | Average rating (1-5) |\n| `ratingCount` | Number of ratings behind `rating` |\n| `reviewCount` | Eniro's rating count, kept for existing integrations (same value as `ratingCount`) |\n| `openingHours` | Main weekly schedule as `{day, opens, closes}` entries with Swedish day names |\n| `openingHoursText` | One-line summary of the main schedule |\n| `openingHoursGroups` | All schedule groups (e.g. main + seasonal), each `{title, hours}` |\n| `latitude`, `longitude` | Coordinates |\n| `mapUrl` | Eniro map/directions link |\n| `logoUrl` / `logoUrlOriginal` | Logo re-hosted for a stable public link, plus the original Eniro URL |\n| `images` / `imagesOriginal` | Photo gallery re-hosted the same way |\n| `coverImageUrl` / `coverImageUrlOriginal` | Cover photo, re-hosted the same way |\n| `links` | Promotional links from the profile, e.g. `{label: \"Meny\", url: ...}` |\n| `searchQuery`, `searchCity` | The term and city that produced the record |\n| `sourceUrl` | Canonical Eniro company page |\n| `lastUpdated` | When Eniro last changed the listing |\n| `recordType` | Always `\"business\"` |\n| `scrapedAt` | UTC timestamp of the scrape |\n\nSearch results without `fetchDetails` contain the fields Eniro puts on the result card (name, address, phone, type, and any rating/description/logo the card carries). Profile-only fields fill in when you enable enrichment or use `mode=detail` / profile URLs.\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `search` | `search` (terms + cities), `detail` (profile URLs/IDs), or `urls` (a mixed list of Eniro search and profile URLs). |\n| `query` | string | `pizzeria` | Single category/keyword from the curated list, or `custom` to use `customQuery`. |\n| `customQuery` | string | – | Free-text category/keyword, overriding `query` when set. Use correct å/ä/ö spelling. |\n| `searchTerms` | array | – | One or more categories/keywords; each is combined with every city. Overrides `query`/`customQuery`. |\n| `city` | string | `Stockholm` | Single Swedish city; leave empty for nationwide. Overridden by `locations`. |\n| `locations` | array | – | One or more Swedish cities; each is combined with every search term. |\n| `searchCoordinates` | string | – | Optional `\"lat,lon\"` point for Eniro's nearby search. |\n| `sortBy` | string | `relevance` | Result order: `relevance`, `rating`, or `name`. |\n| `ratedOnly` | boolean | `false` | Keep only companies with at least one rating. |\n| `minRating` | string | – (no minimum) | Keep only companies rated at least `1`-`5` stars. |\n| `hasWebsiteOnly` | boolean | `false` | Keep only companies with a published website (requires `fetchDetails`). |\n| `hasPhoneOnly` | boolean | `false` | Keep only companies with a published phone number. |\n| `hasEmailOnly` | boolean | `false` | Keep only companies with a published email (requires `fetchDetails`). |\n| `includeSoleTraders` | boolean | `true` | Keep person-named one-person firms; turn off for company-only lists. |\n| `fetchDetails` | boolean | `false` | Open each search hit's profile page for the full field set. |\n| `businessUrls` | array | – | Eniro profile URLs or numeric IDs for `mode=detail`. |\n| `startUrls` | array | – | Eniro search and/or profile URLs for `mode=urls`. |\n| `maxPagesPerSearch` | integer | `20` | Stop each term/city after this many 25-result pages. |\n| `maxItems` | integer | `50` | Hard cap across all searches and URLs. |\n\n### Example: one trade in one city\n\n```json\n{\n  \"mode\": \"search\",\n  \"query\": \"frisör\",\n  \"city\": \"Göteborg\",\n  \"maxItems\": 50\n}\n```\n\n### Example: several trades and cities, enriched and filtered\n\n```json\n{\n  \"mode\": \"search\",\n  \"searchTerms\": [\"rörmokare\", \"elektriker\"],\n  \"locations\": [\"Stockholm\", \"Göteborg\"],\n  \"fetchDetails\": true,\n  \"hasEmailOnly\": true,\n  \"minRating\": \"3\",\n  \"includeSoleTraders\": false,\n  \"maxPagesPerSearch\": 5,\n  \"maxItems\": 200\n}\n```\n\n### Example: nationwide category with full profiles\n\n```json\n{\n  \"mode\": \"search\",\n  \"customQuery\": \"veterinär\",\n  \"city\": \"\",\n  \"fetchDetails\": true,\n  \"maxItems\": 100\n}\n```\n\n### Example: paste Eniro URLs\n\n```json\n{\n  \"mode\": \"urls\",\n  \"startUrls\": [\n    \"https://www.eniro.se/rörmokare+i+stockholm/företag\",\n    \"https://www.eniro.se/pizzeria+florida+viskafors/14839034/firma\"\n  ],\n  \"maxItems\": 100\n}\n```\n\n### Example: direct profile lookup\n\n```json\n{\n  \"mode\": \"detail\",\n  \"businessUrls\": [\n    \"https://www.eniro.se/pizzeria+florida+viskafors/14839034/firma\",\n    \"14839034\"\n  ]\n}\n```\n\n## Use cases\n\n- **B2B lead generation** - build contact lists for one or many trades in one or many Swedish cities.\n- **Local SEO auditing** - compare a client's or competitor's categories, rating, hours and profile links.\n- **Market mapping** - measure how a category is distributed across cities or nationwide.\n- **CRM enrichment** - look up phone numbers, addresses, emails and organization numbers for companies you already know.\n- **Franchise research** - survey existing competitors in a category before opening a new location.\n\n## FAQ\n\n**Where does the data come from?**\nThe public Eniro.se business directory.\n\n**Why are some fields missing on search-only runs?**\nEniro puts contact and trust details on each company's profile page, not on the search card. Enable `fetchDetails` (or use profile URLs) to collect them.\n\n**How many results can I get?**\nEniro returns 25 companies per result page. `maxPagesPerSearch` bounds each term/city, and `maxItems` caps the whole run at 1,000 records. Split very broad categories by city or search term to reach deeper than one run's cap.\n\n**Can I search by coordinates?**\nYes. Set `searchCoordinates` to `\"latitude,longitude\"`; the actor passes it to Eniro's own nearby filter.\n\n**Can I search for private persons or reverse-lookup a phone number?**\nNo. Eniro's person search and \"who called\" service are separate products and are not part of this company-directory actor.\n\n**Are written reviews included?**\nNo. Eniro exposes an aggregate rating and rating count, not review text.\n\n**Why do some companies lack an email, website or social link?**\nThose fields exist only when the company published them with Eniro.\n\n**Do I need a proxy or an Eniro API key?**\nNo. The actor handles Eniro's bot protection and any proxy choice automatically.\n\n## Limitations\n\n- Company data only; no person records and no reverse phone lookup.\n- Written review text is not exposed by Eniro; only the aggregate rating and rating count are available.\n- `lastUpdated` is emitted when Eniro publishes its `tracestamps.clusterWrite` change stamp. It was present on 35/35 sampled 2024-2025 profile pages and 30/36 sampled 2026 profile pages; some listings publish no stamp, so the field stays omitted for those.\n- Search-card fields are limited to what Eniro renders on the card; profile-only fields require `fetchDetails` or profile URLs.\n- Eniro fronts the site with a JavaScript challenge. Plain HTTP clients, including current browser TLS fingerprints, are rejected; the actor uses its browser tier automatically, so no proxy or API key is required.\n- A run is capped at 1,000 records. Split very broad nationwide categories by city or term to collect more.\n- The browser tier runs at 2,048 MB of memory. This is the tested configuration for Chromium under xvfb; it is not a user input.\n- Eniro's directory contents and markup can change; the actor falls back from enriched server data to the page's structured data so a partial page still yields a record.\n- Logos, gallery images and cover photos are re-hosted for stable public links. If a re-host fetch fails, the original URL is kept as the fallback.\n\n## Data source\n\nEniro.se, Sweden's public business directory. This actor is independent and is not affiliated with, endorsed by, or sponsored by Eniro AB. Users are responsible for ensuring their use complies with Eniro's terms and applicable data-protection law.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "eniro-se-company-directory-and-contact-finder",
      "title": "Eniro.se Company Directory & Contact Finder",
      "description": "Search Sweden's Eniro.se business directory by category and city, or nationwide, and optionally pull each company's rating, hours, website, organization number, and social links.",
      "version": "1.0",
      "buildTag": "latest",
      "defaultRunOptions": {
        "build": "latest",
        "timeoutSecs": 3600,
        "memoryMbytes": 2048
      },
      "dockerfile": "./Dockerfile",
      "readme": "# Eniro.se Company Directory & Contact Finder\n\nEniro.se is Sweden's largest public business and phone directory. This actor turns it into a structured lead source: search one or many categories across one or many Swedish cities, scrape Eniro search/profile URLs directly, and optionally open every company's own profile page for the contact and trust details that only live there.\n\nNo login, cookie, API key or proxy setup is needed. The actor handles Eniro's bot protection itself.\n\n## What you can do\n\n- **Multi-term, multi-city searches.** Cross every `searchTerms` entry with every `locations` entry in one run (e.g. `rörmokare` + `elektriker` in Stockholm + Göteborg = four searches), or use the single `query` + `city` pair.\n- **Nationwide or nearby.** Leave the city list empty for all of Sweden, or pass a `latitude,longitude` point to use Eniro's own nearby filter.\n- **Scrape URLs.** Paste Eniro search URLs (`/rörmokare+stockholm/företag`) and/or company profile URLs (`/<name>/<id>/firma`) into `startUrls`.\n- **Enrich each hit.** Turn on `fetchDetails` to add multiple phone numbers, email, full rating counts, every opening-hours group, category codes, promotional links, cover photo, free text, coordinates, images and organization number.\n- **Filter for usable leads.** Keep only companies with a phone, an email, a website, a rating, a minimum rating, or exclude one-person sole traders.\n- **Sort and cap.** Order by Eniro relevance, rating or name, and stop each search after a configurable number of pages.\n\nEvery output field is omitted when Eniro does not publish it. Nothing is emitted as `null`, `\"\"` or an empty list.\n\n## Output per company\n\n| Field | Description |\n|---|---|\n| `businessId` | Eniro's internal company ID |\n| `slug` | Human-readable Eniro URL slug |\n| `name` | Company name |\n| `businessType` | schema.org type, e.g. `Restaurant`, `HairSalon`, `Dentist` |\n| `category` / `categories` | Primary category and the full category chain |\n| `categoryCodes` | Eniro category codes matching `categories` |\n| `street`, `postalCode`, `city` | Postal address |\n| `municipality`, `province`, `region`, `urbanArea`, `district`, `country` | Administrative area fields, when Eniro publishes them |\n| `phone` | Primary phone number |\n| `phones` | Every published number as `{number, label?}` |\n| `email` | Published company email |\n| `website` | Company website |\n| `organizationNumber` | Swedish organization number, `NNNNNN-NNNN` |\n| `facebookUrl`, `instagramUrl`, `linkedinUrl`, `twitterUrl`, `youtubeUrl`, `tiktokUrl`, `snapchatUrl`, `whatsappUrl` | Social profiles Eniro has on file |\n| `description` | Short company description |\n| `freeText` | Longer promotional text, when different from `description` |\n| `keywords` | Services, brands or tags attached to the listing |\n| `rating` | Average rating (1-5) |\n| `ratingCount` | Number of ratings behind `rating` |\n| `reviewCount` | Eniro's rating count, kept for existing integrations (same value as `ratingCount`) |\n| `openingHours` | Main weekly schedule as `{day, opens, closes}` entries with Swedish day names |\n| `openingHoursText` | One-line summary of the main schedule |\n| `openingHoursGroups` | All schedule groups (e.g. main + seasonal), each `{title, hours}` |\n| `latitude`, `longitude` | Coordinates |\n| `mapUrl` | Eniro map/directions link |\n| `logoUrl` / `logoUrlOriginal` | Logo re-hosted for a stable public link, plus the original Eniro URL |\n| `images` / `imagesOriginal` | Photo gallery re-hosted the same way |\n| `coverImageUrl` / `coverImageUrlOriginal` | Cover photo, re-hosted the same way |\n| `links` | Promotional links from the profile, e.g. `{label: \"Meny\", url: ...}` |\n| `searchQuery`, `searchCity` | The term and city that produced the record |\n| `sourceUrl` | Canonical Eniro company page |\n| `lastUpdated` | When Eniro last changed the listing |\n| `recordType` | Always `\"business\"` |\n| `scrapedAt` | UTC timestamp of the scrape |\n\nSearch results without `fetchDetails` contain the fields Eniro puts on the result card (name, address, phone, type, and any rating/description/logo the card carries). Profile-only fields fill in when you enable enrichment or use `mode=detail` / profile URLs.\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `search` | `search` (terms + cities), `detail` (profile URLs/IDs), or `urls` (a mixed list of Eniro search and profile URLs). |\n| `query` | string | `pizzeria` | Single category/keyword from the curated list, or `custom` to use `customQuery`. |\n| `customQuery` | string | – | Free-text category/keyword, overriding `query` when set. Use correct å/ä/ö spelling. |\n| `searchTerms` | array | – | One or more categories/keywords; each is combined with every city. Overrides `query`/`customQuery`. |\n| `city` | string | `Stockholm` | Single Swedish city; leave empty for nationwide. Overridden by `locations`. |\n| `locations` | array | – | One or more Swedish cities; each is combined with every search term. |\n| `searchCoordinates` | string | – | Optional `\"lat,lon\"` point for Eniro's nearby search. |\n| `sortBy` | string | `relevance` | Result order: `relevance`, `rating`, or `name`. |\n| `ratedOnly` | boolean | `false` | Keep only companies with at least one rating. |\n| `minRating` | string | – (no minimum) | Keep only companies rated at least `1`-`5` stars. |\n| `hasWebsiteOnly` | boolean | `false` | Keep only companies with a published website (requires `fetchDetails`). |\n| `hasPhoneOnly` | boolean | `false` | Keep only companies with a published phone number. |\n| `hasEmailOnly` | boolean | `false` | Keep only companies with a published email (requires `fetchDetails`). |\n| `includeSoleTraders` | boolean | `true` | Keep person-named one-person firms; turn off for company-only lists. |\n| `fetchDetails` | boolean | `false` | Open each search hit's profile page for the full field set. |\n| `businessUrls` | array | – | Eniro profile URLs or numeric IDs for `mode=detail`. |\n| `startUrls` | array | – | Eniro search and/or profile URLs for `mode=urls`. |\n| `maxPagesPerSearch` | integer | `20` | Stop each term/city after this many 25-result pages. |\n| `maxItems` | integer | `50` | Hard cap across all searches and URLs. |\n\n### Example: one trade in one city\n\n```json\n{\n  \"mode\": \"search\",\n  \"query\": \"frisör\",\n  \"city\": \"Göteborg\",\n  \"maxItems\": 50\n}\n```\n\n### Example: several trades and cities, enriched and filtered\n\n```json\n{\n  \"mode\": \"search\",\n  \"searchTerms\": [\"rörmokare\", \"elektriker\"],\n  \"locations\": [\"Stockholm\", \"Göteborg\"],\n  \"fetchDetails\": true,\n  \"hasEmailOnly\": true,\n  \"minRating\": \"3\",\n  \"includeSoleTraders\": false,\n  \"maxPagesPerSearch\": 5,\n  \"maxItems\": 200\n}\n```\n\n### Example: nationwide category with full profiles\n\n```json\n{\n  \"mode\": \"search\",\n  \"customQuery\": \"veterinär\",\n  \"city\": \"\",\n  \"fetchDetails\": true,\n  \"maxItems\": 100\n}\n```\n\n### Example: paste Eniro URLs\n\n```json\n{\n  \"mode\": \"urls\",\n  \"startUrls\": [\n    \"https://www.eniro.se/rörmokare+i+stockholm/företag\",\n    \"https://www.eniro.se/pizzeria+florida+viskafors/14839034/firma\"\n  ],\n  \"maxItems\": 100\n}\n```\n\n### Example: direct profile lookup\n\n```json\n{\n  \"mode\": \"detail\",\n  \"businessUrls\": [\n    \"https://www.eniro.se/pizzeria+florida+viskafors/14839034/firma\",\n    \"14839034\"\n  ]\n}\n```\n\n## Use cases\n\n- **B2B lead generation** - build contact lists for one or many trades in one or many Swedish cities.\n- **Local SEO auditing** - compare a client's or competitor's categories, rating, hours and profile links.\n- **Market mapping** - measure how a category is distributed across cities or nationwide.\n- **CRM enrichment** - look up phone numbers, addresses, emails and organization numbers for companies you already know.\n- **Franchise research** - survey existing competitors in a category before opening a new location.\n\n## FAQ\n\n**Where does the data come from?**\nThe public Eniro.se business directory.\n\n**Why are some fields missing on search-only runs?**\nEniro puts contact and trust details on each company's profile page, not on the search card. Enable `fetchDetails` (or use profile URLs) to collect them.\n\n**How many results can I get?**\nEniro returns 25 companies per result page. `maxPagesPerSearch` bounds each term/city, and `maxItems` caps the whole run at 1,000 records. Split very broad categories by city or search term to reach deeper than one run's cap.\n\n**Can I search by coordinates?**\nYes. Set `searchCoordinates` to `\"latitude,longitude\"`; the actor passes it to Eniro's own nearby filter.\n\n**Can I search for private persons or reverse-lookup a phone number?**\nNo. Eniro's person search and \"who called\" service are separate products and are not part of this company-directory actor.\n\n**Are written reviews included?**\nNo. Eniro exposes an aggregate rating and rating count, not review text.\n\n**Why do some companies lack an email, website or social link?**\nThose fields exist only when the company published them with Eniro.\n\n**Do I need a proxy or an Eniro API key?**\nNo. The actor handles Eniro's bot protection and any proxy choice automatically.\n\n## Limitations\n\n- Company data only; no person records and no reverse phone lookup.\n- Written review text is not exposed by Eniro; only the aggregate rating and rating count are available.\n- `lastUpdated` is emitted when Eniro publishes its `tracestamps.clusterWrite` change stamp. It was present on 35/35 sampled 2024-2025 profile pages and 30/36 sampled 2026 profile pages; some listings publish no stamp, so the field stays omitted for those.\n- Search-card fields are limited to what Eniro renders on the card; profile-only fields require `fetchDetails` or profile URLs.\n- Eniro fronts the site with a JavaScript challenge. Plain HTTP clients, including current browser TLS fingerprints, are rejected; the actor uses its browser tier automatically, so no proxy or API key is required.\n- A run is capped at 1,000 records. Split very broad nationwide categories by city or term to collect more.\n- The browser tier runs at 2,048 MB of memory. This is the tested configuration for Chromium under xvfb; it is not a user input.\n- Eniro's directory contents and markup can change; the actor falls back from enriched server data to the page's structured data so a partial page still yields a record.\n- Logos, gallery images and cover photos are re-hosted for stable public links. If a re-host fetch fails, the original URL is kept as the fallback.\n\n## Data source\n\nEniro.se, Sweden's public business directory. This actor is independent and is not affiliated with, endorsed by, or sponsored by Eniro AB. Users are responsible for ensuring their use complies with Eniro's terms and applicable data-protection law.\n",
      "input": {
        "title": "Eniro Scraper Input",
        "description": "Search Eniro.se (Sweden's business & phone directory) by keyword/category and city (or nationwide), fetch full company profiles from URLs/IDs, or scrape a list of Eniro search/profile URLs.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to scrape: keyword/category searches, direct company profiles, or a list of Eniro search/profile URLs.",
            "editor": "select",
            "enum": [
              "search",
              "detail",
              "urls"
            ],
            "enumTitles": [
              "Search by keyword/category & city",
              "Fetch company profiles by URL/ID",
              "Scrape Eniro search/profile URLs"
            ],
            "default": "search",
            "prefill": "search"
          },
          "query": {
            "title": "Category / keyword",
            "type": "string",
            "description": "Business category or keyword to search for (mode=search). Pick a common category from the list, or choose 'Custom' and type your own in the field below. Ignored when 'Search terms' is filled.",
            "editor": "select",
            "enum": [
              "custom",
              "pizzeria",
              "restaurang",
              "frisör",
              "tandläkare",
              "advokat",
              "elektriker",
              "rörmokare",
              "målare",
              "snickare",
              "bilverkstad",
              "hotell",
              "blomsterhandlare",
              "revisor",
              "fastighetsmäklare",
              "veterinär",
              "optiker",
              "apotek",
              "gym",
              "massage",
              "byggföretag",
              "taxi",
              "flyttfirma",
              "trädgårdsanläggning",
              "försäkringsmäklare",
              "hundfrisör",
              "glasmästare",
              "låssmed",
              "redovisningsbyrå",
              "kafé",
              "bageri"
            ],
            "enumTitles": [
              "Custom category/keyword (type below)",
              "Pizzeria",
              "Restaurang (Restaurant)",
              "Frisör (Hairdresser)",
              "Tandläkare (Dentist)",
              "Advokat (Lawyer)",
              "Elektriker (Electrician)",
              "Rörmokare (Plumber)",
              "Målare (Painter)",
              "Snickare (Carpenter)",
              "Bilverkstad (Car repair)",
              "Hotell (Hotel)",
              "Blomsterhandlare (Florist)",
              "Revisor (Accountant)",
              "Fastighetsmäklare (Real estate agent)",
              "Veterinär (Veterinarian)",
              "Optiker (Optician)",
              "Apotek (Pharmacy)",
              "Gym (Gym)",
              "Massage",
              "Byggföretag (Construction company)",
              "Taxi",
              "Flyttfirma (Moving company)",
              "Trädgårdsanläggning (Landscaping)",
              "Försäkringsmäklare (Insurance broker)",
              "Hundfrisör (Dog groomer)",
              "Glasmästare (Glazier)",
              "Låssmed (Locksmith)",
              "Redovisningsbyrå (Accounting firm)",
              "Kafé (Cafe)",
              "Bageri (Bakery)"
            ],
            "default": "pizzeria",
            "prefill": "pizzeria"
          },
          "customQuery": {
            "title": "Custom category/keyword (overrides selection above)",
            "type": "string",
            "description": "Free-text category or keyword not in the curated list above, e.g. 'skorstensfejare' or 'IT-konsult' (mode=search). Takes priority over 'Category / keyword' when set. Use correct Swedish spelling with å/ä/ö -- Eniro's search does not fuzzy-match ASCII-folded keywords.",
            "editor": "textfield"
          },
          "searchTerms": {
            "title": "Search terms (one or more)",
            "type": "array",
            "description": "One or more categories/keywords (mode=search). Every term is combined with every city below, so ['rörmokare', 'elektriker'] x ['Stockholm', 'Göteborg'] covers four searches. Leave empty to use the single 'Category / keyword' selection above.",
            "editor": "stringList",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Swedish city or town to search in, e.g. 'Stockholm', 'Göteborg', 'Malmö' (mode=search). Leave empty to search all of Sweden. Ignored when 'Cities' is filled.",
            "editor": "textfield",
            "default": "Stockholm",
            "prefill": "Stockholm"
          },
          "locations": {
            "title": "Cities (one or more)",
            "type": "array",
            "description": "One or more Swedish cities/towns (mode=search), used with every search term. Leave empty to use the single 'City' field above, or to search nationwide when both are empty.",
            "editor": "stringList",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "searchCoordinates": {
            "title": "Search around coordinates (optional)",
            "type": "string",
            "description": "Optional 'latitude,longitude' point for a nearby search, e.g. '57.6346,12.8574' (mode=search). Uses Eniro's own coordinates filter; leave empty for a normal city/nationwide search.",
            "editor": "textfield"
          },
          "sortBy": {
            "title": "Sort order",
            "type": "string",
            "description": "How to order the returned results (search modes). Applied after fetching, since Eniro's own listing order is relevance-based.",
            "editor": "select",
            "enum": [
              "relevance",
              "rating",
              "name"
            ],
            "enumTitles": [
              "Relevance (Eniro's default order)",
              "Rating (highest rated first)",
              "Name (A-Z)"
            ],
            "default": "relevance",
            "prefill": "relevance"
          },
          "ratedOnly": {
            "title": "Only companies with ratings",
            "type": "boolean",
            "description": "Only return companies that have at least one customer rating. Ratings are read from Eniro search cards when present and from the profile page when 'Fetch full company profiles' is enabled.",
            "default": false,
            "prefill": false
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Only return companies rated at least this many stars, e.g. '4' for 4.0+ (search modes). Unrated companies are excluded when a minimum is set.",
            "editor": "select",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "enumTitles": [
              "No minimum (all ratings)",
              "1+ stars",
              "2+ stars",
              "3+ stars",
              "4+ stars",
              "5 stars only"
            ],
            "default": "",
            "prefill": ""
          },
          "hasWebsiteOnly": {
            "title": "Only companies with a website",
            "type": "boolean",
            "description": "Only return companies that list a website (search modes). Websites appear on profile pages, so enable 'Fetch full company profiles' for this filter to find any matches.",
            "default": false,
            "prefill": false
          },
          "hasPhoneOnly": {
            "title": "Only companies with a phone number",
            "type": "boolean",
            "description": "Only return companies that publish at least one phone number (search modes).",
            "default": false,
            "prefill": false
          },
          "hasEmailOnly": {
            "title": "Only companies with an email",
            "type": "boolean",
            "description": "Only return companies that publish an email address (search modes). Emails appear on profile pages, so enable 'Fetch full company profiles' for this filter to find any matches.",
            "default": false,
            "prefill": false
          },
          "includeSoleTraders": {
            "title": "Include sole traders",
            "type": "boolean",
            "description": "Keep one-person firms that Eniro lists under the owner's personal name (e.g. 'Anders Svensson'). Turn this off for company-only lead lists; names carrying a company suffix (AB, HB, KB, förening) are always kept.",
            "default": true,
            "prefill": true
          },
          "fetchDetails": {
            "title": "Fetch full company profiles",
            "type": "boolean",
            "description": "For each search result, also visit its company profile page to collect multiple phone numbers, email, rating counts, all opening-hours groups, category codes, promotional links, cover photo, coordinates, description, images and organization number. Slower, but far richer output (search modes).",
            "default": false,
            "prefill": false
          },
          "businessUrls": {
            "title": "Company profile URLs or IDs (mode=detail)",
            "type": "array",
            "description": "Direct Eniro company URLs (e.g. https://www.eniro.se/<name>/<id>/firma) or bare numeric company IDs to fetch, one per line. Use the 'sourceUrl' or 'businessId' field from search results.",
            "editor": "stringList",
            "items": {
              "type": "string"
            },
            "default": [],
            "prefill": [
              "14839034"
            ]
          },
          "startUrls": {
            "title": "Eniro search or profile URLs (mode=urls)",
            "type": "array",
            "description": "Eniro search URLs (e.g. https://www.eniro.se/rörmokare+stockholm/företag) and/or company profile URLs (e.g. https://www.eniro.se/<name>/<id>/firma). Search URLs paginate automatically; profile URLs are fetched directly.",
            "editor": "stringList",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "type": "integer",
            "description": "Stop each search term/city after this many result pages (25 companies per page). Keeps large categories bounded.",
            "minimum": 1,
            "maximum": 100,
            "default": 20,
            "prefill": 1
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on the number of company records to return across all terms, cities and URLs.",
            "minimum": 1,
            "maximum": 1000,
            "default": 50,
            "prefill": 50
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Eniro.se Company Directory & Contact Finder Output",
        "description": "Swedish business records from Eniro.se with contact details, multiple phone numbers, address and administrative areas, category codes, rating counts, all opening-hours groups, website, email, organization number, social links, promotional links, images and last-updated date.",
        "properties": {
          "businesses": {
            "type": "string",
            "title": "Eniro businesses",
            "description": "Dataset containing all scraped Eniro business listings.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Businesses",
              "transformation": {
                "fields": [
                  "name",
                  "category",
                  "city",
                  "municipality",
                  "street",
                  "phone",
                  "email",
                  "website",
                  "organizationNumber",
                  "rating",
                  "ratingCount",
                  "openingHoursText",
                  "lastUpdated",
                  "sourceUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "imageDigest": "f6b9e37fc9aa46e67cd0bdd9e8aa9028e8a69d35308b3656aadf7fee201d3de3",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.037915555555555557
    }
  }
}