# Precios oficiales México PROFECO QQP (`tasavera/mexico-profeco-prices`) Actor

Precios oficiales de PROFECO por producto, marca, cadena y municipio en todo México. Modo resumen: más barato, promedio y cambio vs. quincena anterior. Official Mexico retail prices, bilingual.

- **URL**: https://apify.com/tasavera/mexico-profeco-prices.md
- **Developed by:** [Tasavera](https://apify.com/tasavera) (community)
- **Categories:** E-commerce, Business
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 price rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Precios oficiales México PROFECO (Quién es Quién en los Precios)

**English summary:** Official Mexican retail prices from PROFECO's "Quién es Quién en los Precios" survey (food, drinks, hygiene, home goods, medicines, appliances) by product, brand, store chain, state and municipality. Summary mode gives the lowest, average and highest price per product and city, the cheapest chain, and the change versus the previous half-month. Data: PROFECO via datos.gob.mx, license CC BY 4.0. Every row has a `fuente` credit. Not affiliated with PROFECO or the Government of Mexico.

### ¿Qué hace?

Descarga el archivo oficial de PROFECO, filtra por producto, estado, municipio, cadena y categoría, y entrega:

- **Modo resumen (predeterminado):** un renglón por producto + presentación + marca + municipio con precio mínimo, promedio y máximo, cadena más barata, número de tiendas y cambio en % contra la quincena anterior.
- **Modo precios:** cada precio capturado por PROFECO en cada tienda.

### Para quién

Marcas y distribuidores que revisan precios de anaquel, analistas de inflación, fintechs, medios, exportadores que entran a México y agentes de IA que necesitan "¿cuánto cuesta X en Monterrey?".

### Entrada

| Campo | Ejemplo | Nota |
|---|---|---|
| modo | resumen | resumen o precios |
| periodo | ultimo | o 2026-08-Q2 (Q1 = días 1 a 15, Q2 = 16 a fin de mes) |
| productos | Tortilla, Huevo, Leche | busca en producto, presentación y marca; sin acentos funciona |
| estados | Ciudad de México | vacío = todo el país |
| municipios | Benito Juárez | opcional |
| cadenas | Walmart, Soriana | opcional |
| categorias | Medicamentos | opcional |
| compararAnterior | true | solo en resumen |
| maxItems | 50 | tope de renglones |

### Ejemplo de renglón (resumen)

```json
{ "producto": "Tortilla de Maíz", "presentacion": "1 Kg. Granel", "marca": "S/M", "estado": "Ciudad de México",
  "municipio": "Benito Juárez", "precio_min": 13, "precio_promedio": 17.13, "precio_max": 23,
  "cadena_mas_barata": "Chedraui Selecto", "n_tiendas": 19, "periodo": "2026-08-Q2",
  "precio_promedio_anterior": 16.96, "cambio_pct": 1, "moneda": "MXN", "licencia": "CC BY 4.0",
  "fuente": "Fuente: PROFECO, Programa Quién es Quién en los Precios (QQP), quincena 2026-08-Q2 ..." }
```

### Precio

Pago por renglón entregado. El precio se muestra en la página de Apify.

### Qué cambiamos (aviso de transformación)

Tasavera filtra, normaliza fechas (AAAA-MM-DD), calcula mínimos, promedios, máximos y cambios en %, y elige la cadena más barata. Esos cálculos son nuestros, no de PROFECO. PROFECO publica datos por quincena y avisa que la información histórica puede cambiar en actualizaciones posteriores. El muestreo de PROFECO no cubre todas las tiendas del país.

### Fuente y licencia

Fuente: Procuraduría Federal del Consumidor (PROFECO), Programa Quién es Quién en los Precios. https://www.datos.gob.mx/dataset/programa_quien_es_quien_precios_2026 y https://datos.profeco.gob.mx/datos_abiertos/qqp.php. Licencia: Creative Commons Attribution 4.0 (https://creativecommons.org/licenses/by/4.0/). Esta herramienta no está afiliada a PROFECO ni al Gobierno de México, y PROFECO no la respalda.

### Privacidad

Solo precios y datos de establecimientos comerciales. No hay datos de personas.

### Preguntas frecuentes

- **¿Qué tan actual es?** PROFECO publica cada mes; la quincena más reciente al 19/10/2026 es 2026-08-Q2.
- **¿Puedo usarlo con un agente de IA?** Sí: una entrada clara y una tabla clara.
- **¿Es precio oficial obligatorio?** No. Es el precio observado por PROFECO en tiendas visitadas.

# Actor input Schema

## `modo` (type: `string`):

Resumen: un renglón por producto + presentación + marca + municipio, con precio mínimo, promedio, máximo, cadena más barata y cambio contra la quincena anterior. Precios: cada precio capturado por PROFECO.

## `periodo` (type: `string`):

"ultimo" = la quincena más reciente publicada. O escriba AAAA-MM-Q1 / AAAA-MM-Q2, por ejemplo 2026-08-Q2. Q1 = días 1 a 15, Q2 = días 16 a fin de mes.

## `productos` (type: `array`):

Busca en producto, presentación y marca. Vacío = todos. Sin acentos también funciona.

## `estados` (type: `array`):

Por ejemplo: Ciudad de México, Jalisco, Nuevo León. Vacío = todo el país.

## `municipios` (type: `array`):

Opcional. Por ejemplo: Guadalajara, Monterrey, Benito Juárez.

## `cadenas` (type: `array`):

Opcional. Por ejemplo: Walmart, Soriana, Chedraui, La Comer.

## `categorias` (type: `array`):

Opcional. Por ejemplo: Hortalizas Frescas, Leche, Medicamentos.

## `compararAnterior` (type: `boolean`):

Solo en modo resumen. Agrega precio promedio anterior y cambio en %.

## `maxItems` (type: `integer`):

Tope de renglones (cada renglón es un cobro).

## Actor input object example

```json
{
  "modo": "resumen",
  "periodo": "ultimo",
  "productos": [
    "Tortilla",
    "Huevo",
    "Leche"
  ],
  "estados": [
    "Ciudad de México"
  ],
  "compararAnterior": true,
  "maxItems": 50
}
```

# Actor output Schema

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

No description

## `resultsJson` (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 = {
    "productos": [
        "Tortilla",
        "Huevo",
        "Leche"
    ],
    "estados": [
        "Ciudad de México"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("tasavera/mexico-profeco-prices").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 = {
    "productos": [
        "Tortilla",
        "Huevo",
        "Leche",
    ],
    "estados": ["Ciudad de México"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("tasavera/mexico-profeco-prices").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 '{
  "productos": [
    "Tortilla",
    "Huevo",
    "Leche"
  ],
  "estados": [
    "Ciudad de México"
  ],
  "maxItems": 50
}' |
apify call tasavera/mexico-profeco-prices --silent --output-dataset

```

## MCP server setup

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

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/xlT2t6hxYVgEvRndl/builds/MrUHd4ex3Qk4PvSa1/openapi.json
