CooperLabs B2B API Reference & Schema Guide

Production documentation for our RapidAPI Hub and direct K3s edge endpoints. Every endpoint is backed by a background-warmed Redis cache cluster on Kubernetes and returns enriched sales intelligence, executive summary analytics, and ready-to-send outbound hooks.

Base URLs & Redis Cache Control

Requests can be routed either through the RapidAPI Hub Proxy (for managed billing, rate limiting, and team keys) or directly via our Cloudflare Zero Trust Kubernetes ingress. Every endpoint accepts an optional bypass_cache query parameter: when false (default), cached responses return in <25ms; when true, the engine performs a fresh live crawl and updates Redis.

RapidAPI Base URL: https://cooperlabs-b2b-lead-municipal-permit-api.p.rapidapi.com Direct Edge URL: https://api-foundry.cooperlabs.app

RapidAPI Authentication Headers

Include your RapidAPI subscription key and host header on every request:

HTTP Request Headers
X-RapidAPI-Key: YOUR_RAPIDAPI_KEY
X-RapidAPI-Host: cooperlabs-b2b-lead-municipal-permit-api.p.rapidapi.com
Accept: application/json

GET /v1/enrich/domain

Crawls a target company domain (plus high-value internal subpages like /about, /contact, /pricing, /careers) concurrently with Cloudflare DNS-over-HTTPS (DoH) MX/SPF/DMARC inspection. Extracts departmental emails, email pattern templates, E.164 phones, social profiles, 50+ enterprise SaaS signatures, JSON-LD organization metadata, a deterministic 0–100 B2B Lead Score, and a personalized outbound sales icebreaker.

DNS MX / SPF / DMARC Inspection Departmental Email Classification 50+ SaaS & Pixel Signatures 0-100 B2B Lead Score Tailored Outbound Icebreaker
Parameter Type Default Description
domainREQUIRED string apify.com Target company domain or URL (e.g., apify.com, cal.com, linear.app).
max_subpages integer (0-8) 3 Maximum internal high-value contact/about/pricing/careers subpages to crawl concurrently.
bypass_cache boolean false Set true to force a live multi-page crawl and DNS lookup instead of serving from Redis.
cURL Request Example
curl --request GET \
  --url 'https://cooperlabs-b2b-lead-municipal-permit-api.p.rapidapi.com/v1/enrich/domain?domain=apify.com&max_subpages=3' \
  --header 'X-RapidAPI-Host: cooperlabs-b2b-lead-municipal-permit-api.p.rapidapi.com' \
  --header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY'
200 OK Enriched JSON Response
{
  "status": "ok",
  "cached": true,
  "response_time_ms": 0.42,
  "data": {
    "domain": "apify.com",
    "company_name": "Apify",
    "meta_title": "Apify: Full-stack web scraping and data extraction platform",
    "meta_description": "Cloud platform for web scraping, browser automation, and data for AI.",
    "b2b_lead_score": 95,
    "outbound_icebreaker": "Hi Apify team: noticed apify.com is running Google Tag Manager, HubSpot, Intercom (Google Workspace) with an opportunity around instant booking workflows.",
    "contacts": {
      "emails": ["[email protected]", "[email protected]", "[email protected]"],
      "primary_email": "[email protected]",
      "emails_by_department": {
        "sales_and_inquiries": ["[email protected]"],
        "support_and_success": ["[email protected]"],
        "general": ["[email protected]"]
      },
      "inferred_email_patterns": [
        "{first}.{last}@apify.com",
        "{first}@apify.com",
        "{f}{last}@apify.com"
      ],
      "phones": ["(415) 555-0192"]
    },
    "social_links": {
      "linkedin": "https://www.linkedin.com/company/apifytech",
      "twitter_x": "https://x.com/apify",
      "github": "https://github.com/apify",
      "youtube": "https://www.youtube.com/@apify"
    },
    "dns_and_email_security": {
      "has_mx_records": true,
      "email_provider": "Google Workspace",
      "has_spf": true,
      "authorized_esp_senders_in_dns": ["Google Workspace", "SendGrid", "HubSpot Email"],
      "has_dmarc": true,
      "dmarc_policy": "reject"
    },
    "tech_stack_by_category": {
      "analytics_and_telemetry": ["Google Tag Manager", "PostHog", "Segment"],
      "crm_and_marketing": ["HubSpot", "Intercom"],
      "frontend_and_cms": ["Next.js", "React"],
      "ecommerce_and_payments": ["Stripe"],
      "infrastructure_and_cdn": ["Cloudflare"]
    },
    "all_detected_technologies": [
      "Cloudflare",
      "Google Tag Manager",
      "HubSpot",
      "Intercom",
      "Next.js",
      "PostHog",
      "React",
      "Segment",
      "Stripe"
    ],
    "key_pages": {
      "pricing_page_url": "https://apify.com/pricing",
      "contact_page_url": "https://apify.com/contact",
      "careers_page_url": "https://apify.com/jobs"
    },
    "crawl_metadata": {
      "pages_crawled": 4,
      "urls_visited": ["https://apify.com", "https://apify.com/about", "https://apify.com/contact", "https://apify.com/pricing"]
    }
  }
}