leboncoin

leboncoin is a skill for Claude Code, Codex from agentproto/ts. It costs 55 tokens per session (922 once invoked), scanned B, original, Apache-2.0.

A browser-based assistant for Leboncoin, a French online marketplace for classified advertisements. It searches listings, opens ad details, reviews a seller's other listings, and can send messages when logged in.

In plain words
What is it for?
Use it to find ads, inspect listing details and images, review seller inventories and ratings, scan prices across a market, and message sellers with permission.
Why use it?
It reduces the work of searching marketplace listings and comparing sellers, prices, locations, and attributes. It also works within a real browsing session when the site uses anti-bot protection.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/agentproto/ts/leboncoin
Any agent
npx skills add agentproto/ts --skill leboncoin
Clone the repo
git clone --depth 1 https://github.com/agentproto/ts

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for leboncoin

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/leboncoin.svg)](https://agentmods.dev/skills/agentproto/ts/leboncoin)
Your own site
<a href="https://agentmods.dev/skills/agentproto/ts/leboncoin"><img src="https://agentmods.dev/badge/skills/agentproto/ts/leboncoin.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 922 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00055 $0.00922
Opus 5 $0.00028 $0.00461
Sonnet 5 $0.00011 $0.00184
Haiku 4.5 $0.00006 $0.00092

Measured 4d ago against content hash 44d94f99fe48, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

leboncoin scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const r = await fetch("https://api.leboncoin.fr/finder/search", { method: "POST",
packages/skill-pack-bureau/src/skills/leboncoin/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Leboncoin — recon plan (FR marketplace)

Not a social graph — a marketplace: the "nodes" are Ads and Sellers, the edges are seller↔listings, category/location facets, and messaging. Same recon method (find the API → auth from cookies → typed queries → playbooks).

Internal API: https://api.leboncoin.fr/... (the web app calls it directly):

  • Search: POST https://api.leboncoin.fr/finder/search — JSON body with filters (category, location {region/department/city}, keywords, price range, attributes), limit, offset, sort_by. Returns ads[] + facets.
  • Ad detail: GET https://api.leboncoin.fr/api/adview/v1/public/<listId> (or the listing page hydration) — price, description, images, attributes, seller.
  • Seller: the seller's other listings (search by owner/user_id), pro/private, ratings.
  • Messaging: the conversation API (login required).

Auth (from the page)

  • api_key header — a public web key Leboncoin's JS sends on every call (capture from a request header).
  • cookies ride same-origin, including the datadome cookie — Leboncoin is behind DataDome anti-bot (like a WAF). Because we run in the REAL browsing session, the valid datadome cookie is already present → page-context fetch passes. (This is the gate, analogous to TikTok's signing.)

In-page fetch:

async body => {
  const r = await fetch("https://api.leboncoin.fr/finder/search", {
    method: "POST",
    headers: {
      "content-type": "application/json",
      api_key: "<captured web api_key>",
    },
    body: JSON.stringify(body),
  })
  return await r.json()
}

Entity model

Ad{ list_id, subject, body, price, category, location{city,zipcode,lat,lng}, images[], attributes[], owner:Seller, index_date } · Seller{ user_id, name, type: private|pro, siret?, no_of_ads, ratings? } · Category{ id, name }.

Recipes (read-first; writes gated)

  • Search listings: finder/search with filters → ads (price, location, seller).
  • Ad detail: adview → full ad + seller + images.
  • Seller's listings: search filtered by the owner/user_id → their inventory (the "persona" of a seller = their listings + pricing + activity).
  • Market scan / price graph: search a category+area → aggregate prices, freshness, sellers → a market view (the marketplace analog of the social graph).
  • Discovery → outreach: find matching ads → (gated) message the seller.

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 89 lines · 55 tokens per session scan B 44d94f99fe48

Subscribe to this mod's changes

leboncoin is a skill published in the GitHub repository agentproto/ts (5 stars, last pushed today), licensed Apache-2.0. It adds 55 tokens to every session and 922 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.