Skip to content
NewIntroducing lobstr.io API v2: Web Data for AI Agents
Leboncoin: Get a seller's phone numberTry it

Leboncoin: Get a seller's phone number

The phone number a seller shows on one leboncoin.fr listing, read with a connected Leboncoin account.

6 creditsa callDown today, being fixed
1Request
The listing's id, or its URL as it appears in the browser.
The connected Leboncoin account to read with (GET /v2/accounts).
6 credits a call
Code, from the fields above
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "leboncoin",
    "operation": "phones/get",
    "options": {
      "listing": "3000000001",
      "account": "acc_7Hq2Kd"
    }
  }'
2Response

An example answer, from the contract. Run it on your own input with your API key.

{
  "object": "run",
  "id": "run_ruf5tk7vipix34vusie5coqwum",
  "livemode": true,
  "source": "leboncoin",
  "operation": "phones/get",
  "version": "1.0.3",
  "schema_url": "https://api.lobstr.io/v2/catalog/leboncoin/phones/get",
  "options": {
    "listing": "3000000001",
    "account": "acc_7Hq2Kd"
  },
  "fields": null,
  "status": "succeeded",
  "count": 1,
  "has_more": false,
  "next": null,
  "cost": {
    "credits": 6
  },
  "results": [
    {
      "object": "phone",
      "listing_id": "3000000001",
      "listing_url": "https://www.leboncoin.fr/ad/locations/3000000001",
      "phone": {
        "status": "found",
        "number": "+33600000000",
        "tracking_number": null,
        "is_mobile": true
      },
      "account": "acc_7Hq2Kd",
      "source_url": "https://www.leboncoin.fr/ad/locations/3000000001",
      "observed_at": "2026-11-09T09:12:44Z"
    }
  ]
}

10 fields per phone

Every call returns them for each record, in the results of its JSON answer.

Get a seller's phone number

10 fields
object
text
phone
listing_id
id
Leboncoin's listing id.
3000000001
listing_url
link
The listing's address when it was given as a URL; null for an id alone (it does not say the category).
leboncoin.fr/ad/locations/3000000001
phone.status
text
found; none when Leboncoin gave no number: the listing has no "Voir le numéro" button (a seller who does not want calls shows none, `has_phone` false), or it is no longer online. Leboncoin answers both the same way; whether a listing is still online is leboncoin/listings/check's question.
found
phone.number
id
The seller's own number, E.164 (+33...).
+33600000000

What it costs

Billed by the call: 6 credits. Pick how many calls a month.

Every plan

6 credits a call

Calls a month

100

Per 100 calls

$1.20

On Starter, $20 a month for up to 1,666 calls.

Live

Built to run

Every call counts; a day is green at 99.5% successful.

Successful calls
88.14%
Median call
1.8 s
90 days agoToday
99.5% or more (SLA)98 to 99.5%95 to 98%Under 95%

A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.

Frequently asked questions

What people ask before calling leboncoin/phones/get.

Get a seller's phone number

When do I use it?

You have a listing that shows a phone (has_phone in leboncoin/listings/search) and need the seller's number. A listing without the "Voir le numéro" button has none: do not ask for it. One call reads one listing, and each connected account reads about one number a minute: a busy account answers at once with retry_after, the seconds until its next slot.

What do I give it?
  • listing (required): The listing's id, or its URL as it appears in the browser.
  • account: The connected Leboncoin account to read with (GET /v2/accounts). Left out, the platform takes the first of your Leboncoin accounts with a free slot.
What does it return?

The phone number a seller shows on one leboncoin.fr listing, read with a connected Leboncoin account. Every record has the same fields, empty ones included: they are all listed above.

Can I run it on a list?

Yes: call it once per item, or run it as a batch, on a list and every day if you like, from the button at the top of this page.

Pricing

What does a call cost?

6 credits a call that finds a number. A listing that shows none, a call your accounts' pace or daily quota holds back, and a failed call are free.

When is a call free?
  • an answer with nothing to read (no number shown)
  • a call that fails
  • a call the account is too busy for (it answers with retry_after)
  • a call past the account’s daily quota
  • a call the site challenged

Errors

What can go wrong?
  • invalid_listing (422): The value is neither a leboncoin.fr listing id nor a listing URL.
  • account_required (422): You have no connected Leboncoin account. Connect one with POST /v2/accounts {"site": "leboncoin", "cookies": ...}, the cookies of a browser where you are logged in to Leboncoin (https://docs.lobstr.io/accounts).
  • account_rate_limited (429, retry): Your Leboncoin accounts are paced at about one call a minute; retry_after says when the next slot opens. Retrying before then gets this same answer: nothing is queued.
  • account_quota_exceeded (429, retry): Your Leboncoin accounts reached their calls for today; retry_after says when the day starts over (midnight UTC).
  • account_unusable (409): Leboncoin logged this account out. Connect it again with POST /v2/accounts and fresh cookies from a browser where you are logged in (the same login keeps its id).
  • site_challenge (503, retry): Leboncoin asked this account to prove it is a person. Open leboncoin.fr in the browser the account syncs from, then retry (not charged).
  • site_unavailable (503, retry): Leboncoin did not answer in time; retry later (not charged).
How long can a call take?

15 seconds at most by default, up to 30 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.

API and agents

Can my AI agent run it?

Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs leboncoin/phones/get. Its page for agents, in Markdown: leboncoin/phones/get.md.

Where is its full description?

The contract, as JSON: https://api.lobstr.io/v2/catalog/leboncoin/phones/get: every option, every field, the price and the errors. This page is drawn from it.

Ready to call it?

An API key in a minute, then the call above, from your code or your agent.