# French Repairability & Durability Index Audit (`arum-99/fr-repairability-audit`) Actor

Audit Electro Dépôt France repairability and durability scores against calculation PDFs. Read scanned documents with OCR and export CSV and JSON reports.

- **URL**: https://apify.com/arum-99/fr-repairability-audit.md
- **Developed by:** [Andrei Rumeantev](https://apify.com/arum-99) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 score compareds

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?

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

## French Repairability & Durability Index Audit

Apify Actor for checking Electro Dépôt France product pages against their linked index calculation PDFs. The results describe differences between two published sources and are intended for catalog review.

### Input and output

Provide `startUrls` as an array of objects with an HTTPS product URL in `url`. For example:

```json
{
  "startUrls": [
    {
      "url": "https://www.electrodepot.fr/lave-linge-frontal-valberg-wf-1214-a-20-f-w566c.html"
    }
  ]
}
```

The default Dataset contains one row per product and detected index. The default Key-value store contains equivalent downloads under `audit-json` (JSON) and `audit-csv` (CSV).

| Status | Meaning |
| --- | --- |
| `discrepancy` | The score differs for the same index type, or the Actor flags a difference in product identifiers or models. Review the evidence before acting on an identifier flag. |
| `manual_review` | Results need inspection, for example when a calculation is unlinked or unavailable, a value cannot be extracted, or the model notation differs with the same SKU. |
| `match` | The score, SKU, and normalized model agree. |

Each row includes the product URL, the calculation URL when available, the extracted values, and flags. Rows with a discrepancy can also have `reviewReasons`. The `documentSku` field is a numeric code extracted from the printed model reference. A manufacturer can assign its own product code, while Electro Dépôt uses a separate retailer SKU. The same product can therefore have two different codes. If the model and score agree, verify the source and meaning of each code before treating a SKU flag as a catalog issue. Filename digits and labelled EANs are excluded from this comparison. The output retains the reference as extracted from the PDF and separates any labelled EAN. The model from the product title is extracted using the brand on the product page.

The Actor reads HTML and the first PDF page. It uses French Tesseract OCR when the page has no text layer, and records `extractionMethod` in the output. An OCR-only difference goes to manual review. Unrecognized fields, unavailable OCR tools and documents hosted outside Electro Dépôt can also require review.

Model comparisons use normalized exact strings, exact manufacturer references present as a complete token in the title, and documented manufacturer aliases. The output carries the method and the manufacturer evidence where available. Ambiguous variants and suffixes remain for manual review. A matched model does not verify a SKU missing from the PDF.

### Pricing

The `score-comparison` event costs $0.01 per distinct product in a run when the listing and its calculation PDF provide comparable scores for the same index type. Matches and differences both count. Rows without a comparable score remain in the report at no event charge. When the event budget is reached, the Actor exports the rows it has processed so far.

### Run locally

Use Node.js 24. For local OCR install Poppler and Tesseract with French language data. Set `AUDIT_TESSDATA_DIR` when the French language data is installed outside Tesseract’s default search directory. The Dockerfile installs Poppler, Tesseract and French language data.

```sh
npm ci
mkdir -p storage/key_value_stores/default
cp examples/electro-depot.json storage/key_value_stores/default/INPUT.json
npm start
```

Use the Apify Console run's Dataset and Key-value store for hosted results. For the local example, the [JSON](examples/audit-results.json) and [CSV](examples/audit-results.csv) record the four-product verification.

# Actor input Schema

## `startUrls` (type: `array`):

Enter HTTPS product page URLs from www.electrodepot.fr.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.electrodepot.fr/lave-linge-frontal-valberg-wf-1214-a-20-f-w566c.html"
    }
  ]
}
```

# Actor output Schema

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

No description

## `csv` (type: `string`):

No description

## `json` (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 = {
    "startUrls": [
        {
            "url": "https://www.electrodepot.fr/lave-linge-frontal-valberg-wf-1214-a-20-f-w566c.html"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("arum-99/fr-repairability-audit").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 = { "startUrls": [{ "url": "https://www.electrodepot.fr/lave-linge-frontal-valberg-wf-1214-a-20-f-w566c.html" }] }

# Run the Actor and wait for it to finish
run = client.actor("arum-99/fr-repairability-audit").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 '{
  "startUrls": [
    {
      "url": "https://www.electrodepot.fr/lave-linge-frontal-valberg-wf-1214-a-20-f-w566c.html"
    }
  ]
}' |
apify call arum-99/fr-repairability-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,arum-99/fr-repairability-audit"
        }
    }
}
```

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/5i03ttkgLrlG8yLby/builds/eLEeubedNpOnqDhRg/openapi.json
