# Samsung Brazil Price Scraper (`barefoot_grade/samsungbr-scraper`) Actor

Product price search on Samsung Brazil, Samsung's official Brazilian store. Search by keyword and get structured records: model, category, price, list price, stock and product URLs.

- **URL**: https://apify.com/barefoot\_grade/samsungbr-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/barefoot_grade) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

## Samsungbr Brazil (brand store) — product search & price scraper

Search Samsung Brazil's official catalog for structured electronics prices in BRL — smartphones, TVs, appliances and monitors with models, stock and URLs.

🇧🇷 **Brazil** · storefront: `samsung.com.br` · prices in **BRL** (BR)

Every run returns normalized product records — name, brand, current and list price in BRL, per-kilogram price, stock level, product and image URLs — ready for datasets, spreadsheets or dashboards. Fast, structured results: no manual copy-paste.

### Use cases

- **First-party electronics pricing** — official Samsung Brazil prices, no marketplace markup.
- **Model-line tracking** — complete Galaxy/TV/lineup sweeps by series.
- **Promo detection** — brand-direct `listPrice` moves ahead of retail chains.
- **Spec feeds** — model numbers and structured fields for electronics catalogs.

### What it returns

- `productKey` — stable unique product ID for this store; join and dedupe on this, never the bare `id`
- `name` / `brand` — product display name and brand
- `price` / `listPrice` / `currency` — current and list price; the currency for this store is always BRL
- `unitMultiplier` / `measurementUnit` — pack size (a 5 kg bag → multiplier 5, unit kg)
- `pricePerKg` — normalized per-kilogram price when the weight is known, `null` otherwise
- `availableQuantity` / `inStock` — stock count (99999 means effectively unlimited) and availability flag
- `url` / `imageUrl` — product page and product image
- `store` / `searchQuery` / `categoryResolved` — run provenance: store slug, the query used, and whether the optional category filter resolved

### Input

- `search` — **required**; free-text product search, e.g. `arroz`
- `category` — optional; free-text category to scope the search against the store's own category tree (e.g. `huevos`)
- `maxPages` — 1–5 result pages (default 1; 24 products per page)
- `maxResults` — cap on returned products (default 50, max 200)
- `requestDelaySecs` — politeness delay between result pages (default 1.0 s)

This record always searches `samsung.com.br` — no store selection is needed (or offered); every record of this family is fixed to one storefront.

### Example queries

{"store": "samsungbr", "search": "galaxy", "maxResults": 10}
{"store": "samsungbr", "search": "smart tv", "maxResults": 10}
{"store": "samsungbr", "search": "geladeira", "maxResults": 5}
{"store": "samsungbr", "search": "monitor", "maxResults": 20}

### Output example

```json
[
  {
    "productKey": "samsung.com.br:34075",
    "name": "Arroz Extra 5 kg",
    "brand": "Marca Blanca",
    "price": 26.9,
    "listPrice": 29.9,
    "currency": "BRL",
    "unitMultiplier": 5,
    "measurementUnit": "kg",
    "availableQuantity": 147,
    "pricePerKg": 5.38,
    "inStock": true,
    "url": "https://samsung.com.br/arroz-extra-5kg/p",
    "imageUrl": "https://samsung.com.br/arquivos/ids/34075/arroz-extra.jpg",
    "store": "samsungbr",
    "searchQuery": "arroz",
    "categoryResolved": true
  }
]
```

### Quirks

1. Narrow single-brand catalog — some queries return only a handful of results; that's completeness, not failure.
2. Model codes (e.g. "SM-S92") give exact matches.
3. First-party vs marketplace price gaps are common — pair with a marketplace actor for arbitrage views.

# Actor input Schema

## `search` (type: `string`):

Required product search term (e.g. 'arroz'), sent as the storefront's full-text query. Exactly the inputs listed here are implemented; there is no detail-enrichment flag in v1.

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

Optional free-text category to scope the search (e.g. 'huevos'). Matched case-insensitively (accent-insensitive) against the store's own category tree; on a unique match the search is restricted to that category, which removes off-topic hits such as egg cutters for 'huevos'. If nothing or several categories match, the run falls back to the plain full-text search and every record carries categoryResolved=false.

## `maxPages` (type: `integer`):

Search-result pages to fetch (24 products per page).

## `maxResults` (type: `integer`):

Stop after this many products.

## `requestDelaySecs` (type: `number`):

Minimum 0.5 seconds.

## Actor input object example

```json
{
  "search": "galaxy tv",
  "maxPages": 1,
  "maxResults": 50,
  "requestDelaySecs": 1
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "search": "galaxy tv"
};

// Run the Actor and wait for it to finish
const run = await client.actor("barefoot_grade/samsungbr-scraper").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 = { "search": "galaxy tv" }

# Run the Actor and wait for it to finish
run = client.actor("barefoot_grade/samsungbr-scraper").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 '{
  "search": "galaxy tv"
}' |
apify call barefoot_grade/samsungbr-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/IfYzGVWzyJRajJnJU/builds/rADxGnReEgWRn5005/openapi.json
