# Firmy Scraper 2.0 (`jupri/firmy`) Actor

💼 Scrape Firmy.cz Business data

- **URL**: https://apify.com/jupri/firmy.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** Lead generation
- **Stats:** 278 total users, 2 monthly users, 100.0% runs succeeded, 10 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$30.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Welcome To Firmy Scraper

![dont be sad readme is here](https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png)

### 💼 About Firmy.cz

<img src="https://www.firmy.cz/img/svg/logoFirmy.svg" width="320">

**Seznam.cz** (or just *Seznam*, which means *list* in English) is a [web portal](https://en.wikipedia.org/wiki/Web_portal "Web portal") and [search engine](https://en.wikipedia.org/wiki/Search_engine "Search engine") in the [Czech Republic](https://en.wikipedia.org/wiki/Czech_Republic "Czech Republic"). Founded in 1996 by [Ivo Lukačovič](https://en.wikipedia.org/wiki/Ivo_Luka%C4%8Dovi%C4%8D "Ivo Lukačovič") in [Prague](https://en.wikipedia.org/wiki/Prague "Prague") as the first web portal in the Czech Republic. Seznam started with a [search engine](https://en.wikipedia.org/wiki/Search_engine "Search engine") and an internet version of [yellow pages](https://en.wikipedia.org/wiki/Yellow_pages "Yellow pages"). Today, Seznam runs almost 30 different web services and associated brands. Seznam had more than 6 million real users per month at the end of 2014.[\[4\]](https://en.wikipedia.org/wiki/Seznam.cz#cite_note-4) Among the most popular services, according to NetMonitor, are its homepage seznam.cz, email.cz, search.seznam.cz and its yellow pages firmy.cz.

### 💼 Tutorial

#### 👉 Parameters

| Input| Type |  Description |
|-|-|-|
| `query` | ***string*** | Query, Search Terms or URL |
| `limit` | ***integer*** | Number of results (per-query)|

#### 👉 Basic Usage

Search business

```yaml
{ "query": "massage", "limit": 10 } 
```

Autodetect Firmy URL for possible contents

```yaml
{ "query": "https://www.firmy.com/?q=sponge%20bobs", "limit": 10 } 
```

#### 👉 Advanced Usage

***FIRMY Query Language (FQL) :***

```html
[ [ <COMMAND:> | # | @ ] [ <NAME> | <ID> | <KEYWORD> ] [ / <SECTION> ] | <URL> ] 
```

***Possible QUERY  values***

| Format | Example | Description |
|-|-|-|
| **KEYWORD** | `square pants` | ***Search Anything*** |
| **<*LISTING\_ID*>** | `13471952` | ***Scrape Listing Data*** |
| `/info` | `13471952/info` | Business detail info
| `/reviews` | `13471952/reviews` | Business reviews
| `/branches` | `13471952/branches` | Business branches
| **https:<*URL*>** | `https://en.firmy.cz` | ***Start URL***
| | `https://en.firmy.cz/?q=massage` |

### 💼 Input Examples

`... almost there ...`

### 💼 Output Examples

#### 👉 Business

```yaml
{
    "addr_city": "Karviná, Staré Město",
    "addr_house_num": "373/7",
    "addr_street": "Bohumínská",
    "addr_zip": "73301",
    "address": "Bohumínská 373/7, 733 01  Karviná, Staré Město",
    "anonymized": false,
    "average_review_percentage": 84.198,
    "can_have_request": true,
    "categoryWeights": [],
    "delivery_networks_data": {},
    "description": "Car and commercial vehicle service, body shop, tire shop, car rental, auto glass replacement, towing service, 3D geometry, air conditioning repair, chiptuning, insurance claim settlement, accident service. Inspections without loss of warranty. Sale of original BMW, Audi, VW parts, OZONE disinfection.",
    "enabled": true,
    "exact_match": false,
    "filters_name": [
        "Card payment",
        "Nonstop emergency"
    ],
    "gps_encode": "9q55IxWiOH",
    "gps_latitude": 49.86497497558594,
    "gps_longitude": 18.515583038330078,
    "has_opening_time": true,
    "id": 12845783,
    "images": [
        {
            "big": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg",
            "description": {
                "id": 991135,
                "metadata": {
                    "size": [
                        2592,
                        1726
                    ]
                },
                "source": "firmy_userweb",
                "type": "mphoto",
                "visits": 2055
            },
            "full": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,600,400,3,ffffff",
            "gallery": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,250,167,3,ffffff",
            "half": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,300,200,3,ffffff",
            "hintGallery": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,1200,900,1",
            "hintThumbMedium": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,600,400,3",
            "hintThumbSmall": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,300,200,3",
            "list": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,220,147,3,ffffff",
            "mapcircle": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,59,59,3,ffffff",
            "medium": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,600,450,1,ffffff",
            "noborder": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,600,450,3,ffffff",
            "orig": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg",
            "small": "https://d48-a.sdn.cz/d_48/c_img_H_D/4nhn51.jpeg?fl=res,112,84,1,ffffff"
        }
    ],
    "imported_data": null,
    "is_paid": true,
    "is_paid_or_noncom": true,
    "logos_url": [
        {
            "big": "https://d48-a.sdn.cz/d_48/c_img_H_D/jcgBX65.png?fl=res,140,140,3,ffffff",
            "description": {
                "id": 1446349,
                "metadata": {
                    "size": [
                        140,
                        140
                    ]
                },
                "source": "firmy_adminweb",
                "type": "logo"
            },
            "email": "https://d48-a.sdn.cz/d_48/c_img_H_D/jcgBX65.png",
            "form": "https://d48-a.sdn.cz/d_48/c_img_H_D/jcgBX65.png",
            "medium": "https://d48-a.sdn.cz/d_48/c_img_H_D/jcgBX65.png?fl=res,120,120,1,ffffff",
            "orig": "https://d48-a.sdn.cz/d_48/c_img_H_D/jcgBX65.png",
            "small": "https://d48-a.sdn.cz/d_48/c_img_H_D/jcgBX65.png?fl=res,70,70,1,ffffff"
        }
    ],
    "main_offer_type": "",
    "offers": [],
    "opening_time_additional_info": "Sobota pro firemní zákazníky po dohodě.",
    "opening_time_today": {
        "additional_info": "Sobota pro firemní zákazníky po dohodě.",
        "amEnd": {
            "hour": 16,
            "minute": 45
        },
        "amStart": {
            "hour": 7,
            "minute": 45
        },
        "date": "2022-10-21",
        "day": "friday",
        "exception_id": "",
        "nonstop": false,
        "relative_sort": 0,
        "specification_id": "open"
    },
    "phone": {
        "country_code": "420",
        "number": "596322020",
        "role": "Phone"
    },
    "region_district_name": "Karviná",
    "review_count": 9,
    "seo_name": "bosch-car-service-cru-servis-karvina-karvina-stare-mesto",
    "stars": 4,
    "subject_id": 3835170,
    "title": "CRU Servis",
    "title_addition": ", s.r.o.",
    "title_alternative": "BOSCH CAR SERVICE - CRU Servis Karviná",
    "title_alternative_web": "",
    "title_use_alternative": true,
    "title_web": "BOSCH CAR SERVICE - CRU Servis Karviná",
    "url": "http://www.cruservis.cz/",
    "zbozi_premise_id": 0
}
```

### 💼  Support

⚡️ Feel free to [reach out](https://console.apify.com/actors/N3tfo0ZvLIcrOSSAA/issues) to the developer for any issues or suggestions for improvement.

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/5SxZhwYwpknFk8ek9-cat.gif" width="240">

# Actor input Schema

## `query` (type: `string`):

💡 Search term, URL or Listing-ID

## `location` (type: `string`):

No description

## `language` (type: `string`):

No description

## `limit` (type: `integer`):

💡 Number of results

## `include_detail` (type: `boolean`):

💡 Get more detailed information <code>(email, gallery, tags, etc.)</code>

## `review_num` (type: `integer`):

💡 Number of reviews to fetch

## `review_sort` (type: `string`):

💡 Sort reviews

## `load_filters` (type: `boolean`):

💡 Get available categories & filters. (The results will show up in Logs)

## `category` (type: `string`):

💡 Category <b>ID</b> or <b>Path</b>. (example: Automotive/Automotive-services/Auto-service-and-repair)<br><br>Use <b>Show Filters</b> to show available <b>Filters</b> and <b>Related Categories</b>

## `filters` (type: `array`):

💡 List of filters <i><b>example</b>: <code>foto-provozovny</code></i>

## `dev_proxy_config` (type: `object`):

💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## Actor input object example

```json
{
  "query": "Car Service",
  "limit": 5
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "Car Service",
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/firmy").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "Car Service",
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("jupri/firmy").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "Car Service",
  "limit": 5
}' |
apify call jupri/firmy --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jupri/firmy"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/N3tfo0ZvLIcrOSSAA/builds/vPBLUoozIdx7dDk4c/openapi.json
