Skip to main content
POST
Search for a person in the Les Pages Rouges directory (OpenSearch). Matching records are deduplicated via Golden Record logic (pivot on name + postal code + city).
Address, email, phone, and location (postal code / department) search are restricted. Accounts need config.allowed_services.address_search: true to include an address, code_postal, or dept field, config.allowed_services.email_search: true to include an email field, and config.allowed_services.phone_search: true to include a phone field. Requests that include a restricted field without the matching flag return 403 Forbidden. Name search (first_name + last_name) remains available to everyone.

Search modes

At least one mode must be provided. You can send any combination — name, address, email, phone, location, or all together. code_postal and dept also act as filters when combined with a name/address/email search: results are narrowed to that exact postal code (or department).

Request Body

object

Permissions

Address and email search are each gated by their own flag on the user document. They are independent — a user can have one, both, or neither.
Name search (first_name + last_name) requires no permission and is always available.

Credit Cost

The charge is a flat rate per search — not per person returned. The number of matching records makes no difference; the cost depends only on whether any result in the set contains a phone and/or an email. The cost is charged only once, on page 1. Subsequent pages (2, 3, …) re-run the same search and are free (credits_charged is 0). The response echoes both values so billing is transparent:
  • search_cost — the flat cost of the search (always returned, on every page).
  • credits_charged — what was actually deducted on this request (equals search_cost on page 1, 0 on later pages).
When a year filter is applied, the cost reflects the filtered results the user actually receives — if filtering removes every record that had a contact, the search can cost less (or 0).

Request examples

Response

Response fields