Count saved leads
count_saved_leadsFREE and exact. Counts leads THIS ACCOUNT has already searched and saved, matching any combination of filters, with a breakdown of how many are enriched, have an email, have a contact email, or have been relevance-checked. Use it to size a job over data the account already owns before spending: "how many of my saved roofers have no CRM and a verified email". CRITICAL: this is NOT an inventory of what Lyre Leads can find, and a small result here means the account has not searched much yet, nothing more. Never report this number to a user as the amount of data available, and never use it to answer "how many X do you have" — call estimate_list for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | Substring match on city | |
| type | No | Substring match on the Google Maps business category, e.g. "Dentist" | |
| query | No | Substring match on the search keyword that found the lead, e.g. "roofing" | |
| country | No | Substring match on country | |
| has_cms | No | true = a CMS was detected. false = enriched and none detected (custom/hand-built site). | |
| has_crm | No | true = a CRM was detected. false = enriched and none detected. This is the classic "they have no CRM, sell them one" filter. | |
| enrolled | No | true = enrolled in enrichment: re-checked about monthly at no charge. Every business a search found is enrolled. false = not enrolled (usually imported); enroll_leads enrolls it at two businesses per lead. | |
| has_email | No | true = has a business email. false = enriched and confirmed to have none (excludes never-checked rows). | |
| relevance | No | One of: yes, no, unclear. Did a model reading the business website judge it to be the kind of business this row's own search query asked for? Runs inside enrichment at no extra cost, and every verdict carries a verbatim quote from the page in relevance_evidence. Absent means never judged, which is not the same as "no". Filter on "yes" to drop the results Google Maps returned that are not the trade you searched for. | |
| search_id | No | Restrict to one batch from search_leads | |
| max_rating | No | Maximum Google star rating. Use with min_reviews to find well-reviewed but poorly-rated businesses. | |
| min_rating | No | Minimum Google star rating | |
| has_website | No | true = has a website. false = enriched and confirmed to have none. | |
| max_reviews | No | Maximum Google review count | |
| min_reviews | No | Minimum Google review count | |
| ai_crawler_access | No | One of: open, partial, blocked, unknown. "blocked" = the site is invisible to AI search engines. | |
| enrichment_status | No | One of: enriched, pending, unverifiable, no_website, failed | |
| has_contact_email | No | true = a named contact address is on file. | |
| email_verification_status | No | One of: verified, catch_all, unknown, invalid |