Find a Leboncoin category
find_categoryRank Leboncoin categories for a French text query and return numeric IDs and full paths. It flags leaf categories that hold ads, and shows close matches so users don't pick a wrong section.
Instructions
Ranks Leboncoin categories against free text and returns their numeric ids with full paths. Only a category with isLeaf: true can hold an ad - the others are search sections. If the top two scores are close, show both and let the user pick: a wrong category buries the ad where nobody browses. Purely local - no request to Leboncoin, so it works even when the site is blocking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | What the item is, in French, e.g. "disque dur", "canapé d'angle", "iphone". | |
| leafOnly | No | Only return categories that can actually hold an ad. |