APIBusiness — Yellow PagesYellow Pages — Leads

Yellow Pages — Leads

Search + per-website contact enrichment.

GET/api/v1/ecommerce/yellowpages/leadsFreeraw=true
Runs a Yellow Pages search, then for each business attempts to find a real website (YP `/mip/` listing URLs don't count) and fetches its homepage (plus up to two contact-y follow-ups like /contact, /about) to extract emails, phones, and social profile URLs. Rows with no usable website fall back to a Google reverse-lookup of `"<name>" "<city>"`. Each contact carries a confidence label (high/medium/low). Empty contacts carry a `reason` (no-website, cloudflare-protected, js-rendered, contact-form-only, timeout, unreachable). Domain-deduped — chain locations share one enrichment.

Query / path parameters

url
url·queryrequired
Yellow Pages search URL.
Example: https://www.yellowpages.com/search?search_terms=Plumbers&geo_location_terms=Los+Angeles%2C+CA
pages
integer·query
Number of pages to scrape (1–10).
Default: 1
start_page
integer·query
Starting page number — use to resume from a specific page.
Default: 1
proxy
string·query
Full proxy URL (http://user:pass@host:port). Mutually exclusive with proxy_id / use_logpose_*.
proxy_id
string·query
ID of a saved proxy from /api/v1/proxies. Picks one of your stored proxies.
proxy_list_id
string·query
ID of a saved proxy list. The wrapper rotates through healthy proxies in the list and marks failures.
use_logpose_datacenter
boolean·query
Route through a datacenter proxy — supply your own via `proxy` / `proxy_id`. Best for easier targets.
Default: false
use_logpose_proxy
boolean·query
Route through a residential proxy — supply your own via `proxy` / `proxy_id`. Needed for hard-blocked targets.
Default: false
cookies
long_text·query
Optional cookies for the target. Accepts JSON object {name: value}, JSON array of {name, value, domain, …}, or a 'name=value; …' header string.
raw
boolean·query
When true, the executor captures the pre-parse scraper response alongside the typed result. Each platform captures its native shape: **Amazon / eBay / Etsy / Alibaba / Walmart / Realtor (browser path) / Zillow (property page)** = HTML; **Booking / TripAdvisor / Instagram / TikTok / Realtor (search) / Zillow (search)** = GraphQL/internal-API JSON. **Facebook** is the only exception — raw is not stored. Fetch via `GET /api/v1/jobs/:id/result?raw=true` or `GET /api/v1/results/:id?raw=true`.
Default: false
webhook_url
url·query
Optional callback URL. POSTed once when the job reaches a terminal status (completed / failed / paused). Independent of the global /webhooks subscriptions — set per submission.
webhook_secret
string·query
Optional HMAC-SHA256 secret. When set, the callback POST carries an `X-Webhook-Signature` header (sha256 hex digest of the body).

Response

placeholder inline shape — run scripts/dump_doc_samples.py on the server to populate real samples.
{
  "results": [
    {
      "name": "Acme Plumbing",
      "phone": "(323) 555-0100",
      "address": "1234 S Grand Ave, Los Angeles, CA, 90007",
      "city": "Los Angeles",
      "state": "CA",
      "postal_code": "90007",
      "url": "https://www.yellowpages.com/los-angeles-ca/mip/acme-plumbing-123456789",
      "contacts": {
        "website": "https://acmeplumbing.example",
        "emails": [
          {
            "value": "info@acmeplumbing.example",
            "confidence": "medium",
            "source": "https://acmeplumbing.example/contact"
          }
        ],
        "phones": [
          {
            "value": "+13235550100",
            "confidence": "high",
            "source": "https://acmeplumbing.example/"
          }
        ],
        "socials": {
          "facebook": "https://www.facebook.com/acmeplumbing",
          "instagram": "https://www.instagram.com/acmeplumbing"
        },
        "pages_crawled": [
          "https://acmeplumbing.example/",
          "https://acmeplumbing.example/contact"
        ],
        "method": "requests",
        "reason": null
      }
    }
  ],
  "pages_scraped": 1
}
API Key

Paste your full key once — cached in this browser for 7 days, then cleared.

const res = await fetch("https://api.logposervices.com/api/v1/ecommerce/yellowpages/leads", {
  method: "GET",
  headers: {
    "X-API-Key": "<YOUR_API_KEY>",
  },
});
const data = await res.json();
Try it
Base URL
https://api.logposervices.com
Query
urlurlrequired
pagesinteger
start_pageinteger
proxystring
proxy_idstring
proxy_list_idstring
use_logpose_datacenterboolean
use_logpose_proxyboolean
cookieslong_text
rawboolean
webhook_urlurl
webhook_secretstring
Response

Click Send Request above to try this endpoint.