cernisdata 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cernisdata/__init__.py +65 -0
- cernisdata/_client.py +975 -0
- cernisdata/_errors.py +132 -0
- cernisdata/_generated.py +2935 -0
- cernisdata/_types.py +100 -0
- cernisdata/_version.py +1 -0
- cernisdata/_webhooks.py +46 -0
- cernisdata/py.typed +0 -0
- cernisdata-0.1.0.dist-info/METADATA +127 -0
- cernisdata-0.1.0.dist-info/RECORD +11 -0
- cernisdata-0.1.0.dist-info/WHEEL +4 -0
cernisdata/_generated.py
ADDED
|
@@ -0,0 +1,2935 @@
|
|
|
1
|
+
# Generated by scripts/build-openapi.ts from the registry and the API input schemas. Do not edit by hand.
|
|
2
|
+
# ruff: noqa: E501
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING, Any, AsyncIterator, Iterator, Literal, Required, Sequence, TypedDict
|
|
6
|
+
|
|
7
|
+
from ._types import Envelope, IncludeExclude, Range
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ._client import AsyncJob, Job
|
|
11
|
+
|
|
12
|
+
__all__ = ["PeopleFilters", "CompanyFilters"]
|
|
13
|
+
|
|
14
|
+
#: Fallback API base URL, from APP_URL in wrangler.jsonc at build time. Empty until a domain is set.
|
|
15
|
+
DEFAULT_BASE_URL = "https://cernisdata.io"
|
|
16
|
+
|
|
17
|
+
#: Fields of each filters object, and which of them are include/exclude lists.
|
|
18
|
+
FILTERS: dict[str, dict[str, tuple[str, ...]]] = {
|
|
19
|
+
"PeopleFilters": {"fields": ("first_names", "last_names", "job_titles", "past_job_titles", "keywords", "locations", "languages", "schools", "skills", "company_names", "company_domains", "company_linkedin_urls", "company_industries", "company_locations", "company_keywords", "company_headcount", "years_of_experience", ), "lists": ("first_names", "last_names", "job_titles", "past_job_titles", "keywords", "locations", "languages", "schools", "skills", "company_names", "company_domains", "company_linkedin_urls", "company_industries", "company_locations", "company_keywords", )},
|
|
20
|
+
"CompanyFilters": {"fields": ("names", "domains", "industries", "locations", "keywords", "types", "headcount", ), "lists": ("names", "domains", "industries", "locations", "keywords", "types", )},
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
ENDPOINTS: list[dict[str, Any]] = [
|
|
24
|
+
{"id": "people.search", "name": "People Search", "category": "people", "method": "POST", "path": "/v1/people/search", "mode": "sync", "status": "live", "typed": True, "paginated": True, "filters": "PeopleFilters", "lists": ()},
|
|
25
|
+
{"id": "people.search_count", "name": "People Search Count", "category": "people", "method": "POST", "path": "/v1/people/search/count", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": "PeopleFilters", "lists": ()},
|
|
26
|
+
{"id": "people.decision_makers", "name": "Decision-Maker Search", "category": "people", "method": "POST", "path": "/v1/people/decision-makers", "mode": "sync", "status": "live", "typed": True, "paginated": True, "filters": None, "lists": ("locations", )},
|
|
27
|
+
{"id": "people.employees", "name": "Employee Finder", "category": "people", "method": "POST", "path": "/v1/people/employees", "mode": "sync", "status": "live", "typed": True, "paginated": True, "filters": None, "lists": ("job_titles", "locations", )},
|
|
28
|
+
{"id": "people.profile_basic", "name": "Basic Professional Profile", "category": "people", "method": "GET", "path": "/v1/people/profile/basic", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
29
|
+
{"id": "people.profile", "name": "Full Professional Profile", "category": "people", "method": "GET", "path": "/v1/people/profile", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
30
|
+
{"id": "people.employment_history", "name": "Employment History", "category": "people", "method": "GET", "path": "/v1/people/employment-history", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
31
|
+
{"id": "people.profile_url", "name": "Professional Profile URL Finder", "category": "people", "method": "POST", "path": "/v1/people/profile-url", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
32
|
+
{"id": "people.current_role", "name": "Current Role", "category": "people", "method": "GET", "path": "/v1/people/current-role", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
33
|
+
{"id": "people.seniority", "name": "Seniority Classification", "category": "people", "method": "POST", "path": "/v1/people/seniority", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
34
|
+
{"id": "company.search", "name": "Company Search", "category": "company", "method": "POST", "path": "/v1/companies/search", "mode": "sync", "status": "live", "typed": True, "paginated": True, "filters": "CompanyFilters", "lists": ()},
|
|
35
|
+
{"id": "company.search_count", "name": "Company Search Count", "category": "company", "method": "POST", "path": "/v1/companies/search/count", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": "CompanyFilters", "lists": ()},
|
|
36
|
+
{"id": "company.enrich", "name": "Company Enrichment", "category": "company", "method": "POST", "path": "/v1/companies/enrich", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
37
|
+
{"id": "company.domain", "name": "Company Domain Finder", "category": "company", "method": "POST", "path": "/v1/companies/domain", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
38
|
+
{"id": "company.linkedin", "name": "LinkedIn Company Profile", "category": "company", "method": "GET", "path": "/v1/companies/linkedin", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
39
|
+
{"id": "company.profile_url", "name": "Company Profile URL Finder", "category": "company", "method": "POST", "path": "/v1/companies/profile-url", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
40
|
+
{"id": "company.firmographics", "name": "Company Firmographics", "category": "company", "method": "GET", "path": "/v1/companies/firmographics", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
41
|
+
{"id": "company.headcount", "name": "Company Headcount", "category": "company", "method": "GET", "path": "/v1/companies/headcount", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
42
|
+
{"id": "company.funding", "name": "Company Funding", "category": "company", "method": "GET", "path": "/v1/companies/funding", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
43
|
+
{"id": "company.technographics", "name": "Technographics", "category": "company", "method": "GET", "path": "/v1/companies/technographics", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
44
|
+
{"id": "company.similar", "name": "Similar Companies", "category": "company", "method": "POST", "path": "/v1/companies/similar", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
45
|
+
{"id": "company.website_metadata", "name": "Website Metadata", "category": "company", "method": "GET", "path": "/v1/companies/website-metadata", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
46
|
+
{"id": "contact.email", "name": "Work Email Finder", "category": "contact", "method": "POST", "path": "/v1/contacts/email", "mode": "async", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
47
|
+
{"id": "contact.email_bulk", "name": "Bulk Email Finder", "category": "contact", "method": "POST", "path": "/v1/contacts/email/bulk", "mode": "job", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
48
|
+
{"id": "contact.verify", "name": "Email Verification", "category": "contact", "method": "POST", "path": "/v1/contacts/verify", "mode": "async", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
49
|
+
{"id": "contact.verify_bulk", "name": "Bulk Email Verification", "category": "contact", "method": "POST", "path": "/v1/contacts/verify/bulk", "mode": "job", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
50
|
+
{"id": "contact.reverse", "name": "Reverse Email Lookup", "category": "contact", "method": "GET", "path": "/v1/contacts/reverse", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
51
|
+
{"id": "contact.phone", "name": "Mobile Phone Finder", "category": "contact", "method": "POST", "path": "/v1/contacts/phone", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
52
|
+
{"id": "contact.domain_emails", "name": "Domain Email Discovery", "category": "contact", "method": "GET", "path": "/v1/contacts/domain-emails", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
53
|
+
{"id": "contact.linkedin_email", "name": "LinkedIn to Work Email", "category": "contact", "method": "POST", "path": "/v1/contacts/linkedin-email", "mode": "async", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
54
|
+
{"id": "contact.waterfall", "name": "Email Waterfall", "category": "contact", "method": "POST", "path": "/v1/contacts/email/waterfall", "mode": "async", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
55
|
+
{"id": "contact.validate_syntax", "name": "Email Syntax Validation", "category": "contact", "method": "POST", "path": "/v1/contacts/validate/syntax", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
56
|
+
{"id": "contact.validate_mx", "name": "MX Record Validation", "category": "contact", "method": "GET", "path": "/v1/contacts/validate/mx", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
57
|
+
{"id": "signals.jobs_search", "name": "Job Search", "category": "signals", "method": "POST", "path": "/v1/signals/jobs/search", "mode": "sync", "status": "live", "typed": True, "paginated": True, "filters": None, "lists": ()},
|
|
58
|
+
{"id": "signals.job", "name": "Job Details", "category": "signals", "method": "GET", "path": "/v1/signals/jobs", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
59
|
+
{"id": "signals.hiring", "name": "Company Hiring Activity", "category": "signals", "method": "GET", "path": "/v1/signals/hiring", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
60
|
+
{"id": "signals.job_changes", "name": "Job Change Detector", "category": "signals", "method": "POST", "path": "/v1/signals/job-changes", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
61
|
+
{"id": "signals.funding", "name": "Funding Lookup", "category": "signals", "method": "GET", "path": "/v1/signals/funding", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
62
|
+
{"id": "signals.funding_recent", "name": "Recent Funding Events", "category": "signals", "method": "POST", "path": "/v1/signals/funding/recent", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
63
|
+
{"id": "signals.leadership", "name": "Leadership Changes", "category": "signals", "method": "GET", "path": "/v1/signals/leadership", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
64
|
+
{"id": "signals.news", "name": "Company News", "category": "signals", "method": "GET", "path": "/v1/signals/news", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
65
|
+
{"id": "signals.website_changes", "name": "Website Change Detection", "category": "signals", "method": "POST", "path": "/v1/signals/website-changes", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
66
|
+
{"id": "signals.custom", "name": "Custom Buying Signals", "category": "signals", "method": "POST", "path": "/v1/signals/custom", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
67
|
+
{"id": "signals.linkedin_posts_search", "name": "LinkedIn Post Search", "category": "signals", "method": "POST", "path": "/v1/signals/linkedin/posts/search", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
68
|
+
{"id": "signals.linkedin_posts", "name": "LinkedIn Posts by Profile or Company", "category": "signals", "method": "GET", "path": "/v1/signals/linkedin/posts", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
69
|
+
{"id": "signals.linkedin_post_engagers", "name": "LinkedIn Post Engagers", "category": "signals", "method": "GET", "path": "/v1/signals/linkedin/posts/engagers", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
70
|
+
{"id": "web.search", "name": "Google Search", "category": "web", "method": "POST", "path": "/v1/web/search", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
71
|
+
{"id": "web.semantic_search", "name": "Semantic Search", "category": "web", "method": "POST", "path": "/v1/web/semantic-search", "mode": "sync", "status": "coming_soon", "typed": False, "paginated": False, "filters": None, "lists": ()},
|
|
72
|
+
{"id": "web.news", "name": "News Search", "category": "web", "method": "POST", "path": "/v1/web/news", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
73
|
+
{"id": "web.scrape", "name": "Web Scraping", "category": "web", "method": "POST", "path": "/v1/web/scrape", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
74
|
+
{"id": "web.markdown", "name": "Website to Markdown", "category": "web", "method": "POST", "path": "/v1/web/markdown", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
75
|
+
{"id": "web.extract", "name": "Structured Data Extraction", "category": "web", "method": "POST", "path": "/v1/web/extract", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
76
|
+
{"id": "web.sitemap", "name": "Website Sitemap", "category": "web", "method": "GET", "path": "/v1/web/sitemap", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
77
|
+
{"id": "web.crawl", "name": "Website Crawling", "category": "web", "method": "POST", "path": "/v1/web/crawl", "mode": "job", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
78
|
+
{"id": "web.research_company", "name": "Company Research", "category": "web", "method": "POST", "path": "/v1/web/research/company", "mode": "async", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
79
|
+
{"id": "web.research", "name": "Deep Research", "category": "web", "method": "POST", "path": "/v1/web/research", "mode": "async", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
80
|
+
{"id": "web.qualify", "name": "ICP Qualification", "category": "web", "method": "POST", "path": "/v1/web/qualify", "mode": "sync", "status": "live", "typed": True, "paginated": False, "filters": None, "lists": ()},
|
|
81
|
+
]
|
|
82
|
+
|
|
83
|
+
class PeopleFilters(TypedDict, total=False):
|
|
84
|
+
first_names: IncludeExclude
|
|
85
|
+
last_names: IncludeExclude
|
|
86
|
+
job_titles: IncludeExclude
|
|
87
|
+
past_job_titles: IncludeExclude
|
|
88
|
+
keywords: IncludeExclude
|
|
89
|
+
locations: IncludeExclude
|
|
90
|
+
languages: IncludeExclude
|
|
91
|
+
schools: IncludeExclude
|
|
92
|
+
skills: IncludeExclude
|
|
93
|
+
company_names: IncludeExclude
|
|
94
|
+
company_domains: IncludeExclude
|
|
95
|
+
company_linkedin_urls: IncludeExclude
|
|
96
|
+
company_industries: IncludeExclude
|
|
97
|
+
company_locations: IncludeExclude
|
|
98
|
+
company_keywords: IncludeExclude
|
|
99
|
+
company_headcount: Range
|
|
100
|
+
years_of_experience: Range
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class CompanyFilters(TypedDict, total=False):
|
|
104
|
+
names: IncludeExclude
|
|
105
|
+
domains: IncludeExclude
|
|
106
|
+
industries: IncludeExclude
|
|
107
|
+
locations: IncludeExclude
|
|
108
|
+
keywords: IncludeExclude
|
|
109
|
+
types: IncludeExclude
|
|
110
|
+
headcount: Range
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
class ContactsEmailBulkItem(TypedDict, total=False):
|
|
114
|
+
first_name: Required[str]
|
|
115
|
+
last_name: Required[str]
|
|
116
|
+
company: Required[str]
|
|
117
|
+
external_id: str
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class SignalsJobChangesPrevious(TypedDict, total=False):
|
|
121
|
+
company: str
|
|
122
|
+
company_domain: str
|
|
123
|
+
title: str
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
class WebQualifyLead(TypedDict, total=False):
|
|
127
|
+
name: str
|
|
128
|
+
email: str
|
|
129
|
+
title: str
|
|
130
|
+
company: str
|
|
131
|
+
message: str
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
class WebQualifyIcp(TypedDict, total=False):
|
|
135
|
+
description: str
|
|
136
|
+
industries: Sequence[str]
|
|
137
|
+
exclude_industries: Sequence[str]
|
|
138
|
+
headcount: Range
|
|
139
|
+
geos: Sequence[str]
|
|
140
|
+
required_signals: Sequence[str]
|
|
141
|
+
disqualifiers: Sequence[str]
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class _Resource:
|
|
145
|
+
def __init__(self, client: Any) -> None:
|
|
146
|
+
self._client = client
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class _AsyncResource:
|
|
150
|
+
def __init__(self, client: Any) -> None:
|
|
151
|
+
self._client = client
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
class People(_Resource):
|
|
155
|
+
"""client.people: 10 endpoints."""
|
|
156
|
+
|
|
157
|
+
def search(
|
|
158
|
+
self,
|
|
159
|
+
*,
|
|
160
|
+
first_names: IncludeExclude | None = None,
|
|
161
|
+
last_names: IncludeExclude | None = None,
|
|
162
|
+
job_titles: IncludeExclude | None = None,
|
|
163
|
+
past_job_titles: IncludeExclude | None = None,
|
|
164
|
+
keywords: IncludeExclude | None = None,
|
|
165
|
+
locations: IncludeExclude | None = None,
|
|
166
|
+
languages: IncludeExclude | None = None,
|
|
167
|
+
schools: IncludeExclude | None = None,
|
|
168
|
+
skills: IncludeExclude | None = None,
|
|
169
|
+
company_names: IncludeExclude | None = None,
|
|
170
|
+
company_domains: IncludeExclude | None = None,
|
|
171
|
+
company_linkedin_urls: IncludeExclude | None = None,
|
|
172
|
+
company_industries: IncludeExclude | None = None,
|
|
173
|
+
company_locations: IncludeExclude | None = None,
|
|
174
|
+
company_keywords: IncludeExclude | None = None,
|
|
175
|
+
company_headcount: Range | None = None,
|
|
176
|
+
years_of_experience: Range | None = None,
|
|
177
|
+
limit: int | None = None,
|
|
178
|
+
cursor: str | None = None,
|
|
179
|
+
filters: PeopleFilters | None = None,
|
|
180
|
+
idempotency_key: str | None = None,
|
|
181
|
+
timeout: float | None = None,
|
|
182
|
+
max_retries: int | None = None,
|
|
183
|
+
) -> Envelope:
|
|
184
|
+
"""People Search.
|
|
185
|
+
|
|
186
|
+
Find professionals by title, location, skills, schools and employer. Send at least one filter.
|
|
187
|
+
|
|
188
|
+
From $0.00035 per person.
|
|
189
|
+
50 free requests on the free tier.
|
|
190
|
+
Main fields: total, first_name, last_name, headline, current_role, company, location.
|
|
191
|
+
|
|
192
|
+
Args:
|
|
193
|
+
limit: Default: 25.
|
|
194
|
+
filters: The same filters as one dict. Flat keyword filters are merged into it.
|
|
195
|
+
"""
|
|
196
|
+
return self._client._invoke("people.search", {"first_names": first_names, "last_names": last_names, "job_titles": job_titles, "past_job_titles": past_job_titles, "keywords": keywords, "locations": locations, "languages": languages, "schools": schools, "skills": skills, "company_names": company_names, "company_domains": company_domains, "company_linkedin_urls": company_linkedin_urls, "company_industries": company_industries, "company_locations": company_locations, "company_keywords": company_keywords, "company_headcount": company_headcount, "years_of_experience": years_of_experience, "limit": limit, "cursor": cursor, "filters": filters}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
197
|
+
|
|
198
|
+
def iter_search(
|
|
199
|
+
self,
|
|
200
|
+
*,
|
|
201
|
+
first_names: IncludeExclude | None = None,
|
|
202
|
+
last_names: IncludeExclude | None = None,
|
|
203
|
+
job_titles: IncludeExclude | None = None,
|
|
204
|
+
past_job_titles: IncludeExclude | None = None,
|
|
205
|
+
keywords: IncludeExclude | None = None,
|
|
206
|
+
locations: IncludeExclude | None = None,
|
|
207
|
+
languages: IncludeExclude | None = None,
|
|
208
|
+
schools: IncludeExclude | None = None,
|
|
209
|
+
skills: IncludeExclude | None = None,
|
|
210
|
+
company_names: IncludeExclude | None = None,
|
|
211
|
+
company_domains: IncludeExclude | None = None,
|
|
212
|
+
company_linkedin_urls: IncludeExclude | None = None,
|
|
213
|
+
company_industries: IncludeExclude | None = None,
|
|
214
|
+
company_locations: IncludeExclude | None = None,
|
|
215
|
+
company_keywords: IncludeExclude | None = None,
|
|
216
|
+
company_headcount: Range | None = None,
|
|
217
|
+
years_of_experience: Range | None = None,
|
|
218
|
+
limit: int | None = None,
|
|
219
|
+
cursor: str | None = None,
|
|
220
|
+
filters: PeopleFilters | None = None,
|
|
221
|
+
max_items: int | None = None,
|
|
222
|
+
max_pages: int | None = None,
|
|
223
|
+
timeout: float | None = None,
|
|
224
|
+
max_retries: int | None = None,
|
|
225
|
+
) -> Iterator[dict[str, Any]]:
|
|
226
|
+
"""Every item of people search across pages. Each page is a billed request, so set max_items."""
|
|
227
|
+
return self._client._paginate("people.search", {"first_names": first_names, "last_names": last_names, "job_titles": job_titles, "past_job_titles": past_job_titles, "keywords": keywords, "locations": locations, "languages": languages, "schools": schools, "skills": skills, "company_names": company_names, "company_domains": company_domains, "company_linkedin_urls": company_linkedin_urls, "company_industries": company_industries, "company_locations": company_locations, "company_keywords": company_keywords, "company_headcount": company_headcount, "years_of_experience": years_of_experience, "limit": limit, "cursor": cursor, "filters": filters}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
228
|
+
|
|
229
|
+
def search_count(
|
|
230
|
+
self,
|
|
231
|
+
*,
|
|
232
|
+
first_names: IncludeExclude | None = None,
|
|
233
|
+
last_names: IncludeExclude | None = None,
|
|
234
|
+
job_titles: IncludeExclude | None = None,
|
|
235
|
+
past_job_titles: IncludeExclude | None = None,
|
|
236
|
+
keywords: IncludeExclude | None = None,
|
|
237
|
+
locations: IncludeExclude | None = None,
|
|
238
|
+
languages: IncludeExclude | None = None,
|
|
239
|
+
schools: IncludeExclude | None = None,
|
|
240
|
+
skills: IncludeExclude | None = None,
|
|
241
|
+
company_names: IncludeExclude | None = None,
|
|
242
|
+
company_domains: IncludeExclude | None = None,
|
|
243
|
+
company_linkedin_urls: IncludeExclude | None = None,
|
|
244
|
+
company_industries: IncludeExclude | None = None,
|
|
245
|
+
company_locations: IncludeExclude | None = None,
|
|
246
|
+
company_keywords: IncludeExclude | None = None,
|
|
247
|
+
company_headcount: Range | None = None,
|
|
248
|
+
years_of_experience: Range | None = None,
|
|
249
|
+
filters: PeopleFilters | None = None,
|
|
250
|
+
idempotency_key: str | None = None,
|
|
251
|
+
timeout: float | None = None,
|
|
252
|
+
max_retries: int | None = None,
|
|
253
|
+
) -> Envelope:
|
|
254
|
+
"""People Search Count.
|
|
255
|
+
|
|
256
|
+
Count matching people before you pull a list. Takes the same filters as People Search.
|
|
257
|
+
|
|
258
|
+
Free.
|
|
259
|
+
Main fields: total.
|
|
260
|
+
|
|
261
|
+
Args:
|
|
262
|
+
filters: The same filters as one dict. Flat keyword filters are merged into it.
|
|
263
|
+
"""
|
|
264
|
+
return self._client._invoke("people.search_count", {"first_names": first_names, "last_names": last_names, "job_titles": job_titles, "past_job_titles": past_job_titles, "keywords": keywords, "locations": locations, "languages": languages, "schools": schools, "skills": skills, "company_names": company_names, "company_domains": company_domains, "company_linkedin_urls": company_linkedin_urls, "company_industries": company_industries, "company_locations": company_locations, "company_keywords": company_keywords, "company_headcount": company_headcount, "years_of_experience": years_of_experience, "filters": filters}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
265
|
+
|
|
266
|
+
def decision_makers(
|
|
267
|
+
self,
|
|
268
|
+
*,
|
|
269
|
+
company: str,
|
|
270
|
+
functions: Sequence[Literal["executive", "sales", "marketing", "engineering", "product", "design", "data", "it", "security", "finance", "operations", "hr", "legal", "customer_success", "procurement"]],
|
|
271
|
+
seniority: Sequence[Literal["c_suite", "founder", "vp", "head", "director", "manager", "senior", "entry", "intern"]] | None = None,
|
|
272
|
+
locations: IncludeExclude | None = None,
|
|
273
|
+
limit: int | None = None,
|
|
274
|
+
cursor: str | None = None,
|
|
275
|
+
idempotency_key: str | None = None,
|
|
276
|
+
timeout: float | None = None,
|
|
277
|
+
max_retries: int | None = None,
|
|
278
|
+
) -> Envelope:
|
|
279
|
+
"""Decision-Maker Search.
|
|
280
|
+
|
|
281
|
+
The likely buyers for a function at a company.
|
|
282
|
+
|
|
283
|
+
From $0.00035 per person.
|
|
284
|
+
50 free requests on the free tier.
|
|
285
|
+
Main fields: full_name, title, function, seniority, confidence.
|
|
286
|
+
|
|
287
|
+
Args:
|
|
288
|
+
company: Company domain or LinkedIn company URL.
|
|
289
|
+
functions: Departments to find leaders in.
|
|
290
|
+
seniority: Levels to include. Default: ["c_suite","founder","vp","head","director"].
|
|
291
|
+
limit: Default: 25.
|
|
292
|
+
"""
|
|
293
|
+
return self._client._invoke("people.decision_makers", {"company": company, "functions": functions, "seniority": seniority, "locations": locations, "limit": limit, "cursor": cursor}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
294
|
+
|
|
295
|
+
def iter_decision_makers(
|
|
296
|
+
self,
|
|
297
|
+
*,
|
|
298
|
+
company: str,
|
|
299
|
+
functions: Sequence[Literal["executive", "sales", "marketing", "engineering", "product", "design", "data", "it", "security", "finance", "operations", "hr", "legal", "customer_success", "procurement"]],
|
|
300
|
+
seniority: Sequence[Literal["c_suite", "founder", "vp", "head", "director", "manager", "senior", "entry", "intern"]] | None = None,
|
|
301
|
+
locations: IncludeExclude | None = None,
|
|
302
|
+
limit: int | None = None,
|
|
303
|
+
cursor: str | None = None,
|
|
304
|
+
max_items: int | None = None,
|
|
305
|
+
max_pages: int | None = None,
|
|
306
|
+
timeout: float | None = None,
|
|
307
|
+
max_retries: int | None = None,
|
|
308
|
+
) -> Iterator[dict[str, Any]]:
|
|
309
|
+
"""Every item of decision-maker search across pages. Each page is a billed request, so set max_items."""
|
|
310
|
+
return self._client._paginate("people.decision_makers", {"company": company, "functions": functions, "seniority": seniority, "locations": locations, "limit": limit, "cursor": cursor}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
311
|
+
|
|
312
|
+
def employees(
|
|
313
|
+
self,
|
|
314
|
+
*,
|
|
315
|
+
company: str,
|
|
316
|
+
job_titles: IncludeExclude | None = None,
|
|
317
|
+
locations: IncludeExclude | None = None,
|
|
318
|
+
limit: int | None = None,
|
|
319
|
+
cursor: str | None = None,
|
|
320
|
+
idempotency_key: str | None = None,
|
|
321
|
+
timeout: float | None = None,
|
|
322
|
+
max_retries: int | None = None,
|
|
323
|
+
) -> Envelope:
|
|
324
|
+
"""Employee Finder.
|
|
325
|
+
|
|
326
|
+
Current employees at a company, filtered by title and location.
|
|
327
|
+
|
|
328
|
+
From $0.00035 per employee.
|
|
329
|
+
50 free requests on the free tier.
|
|
330
|
+
Main fields: total, first_name, last_name, headline, current_role, location.
|
|
331
|
+
|
|
332
|
+
Args:
|
|
333
|
+
company: Company domain or LinkedIn company URL.
|
|
334
|
+
limit: Default: 25.
|
|
335
|
+
"""
|
|
336
|
+
return self._client._invoke("people.employees", {"company": company, "job_titles": job_titles, "locations": locations, "limit": limit, "cursor": cursor}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
337
|
+
|
|
338
|
+
def iter_employees(
|
|
339
|
+
self,
|
|
340
|
+
*,
|
|
341
|
+
company: str,
|
|
342
|
+
job_titles: IncludeExclude | None = None,
|
|
343
|
+
locations: IncludeExclude | None = None,
|
|
344
|
+
limit: int | None = None,
|
|
345
|
+
cursor: str | None = None,
|
|
346
|
+
max_items: int | None = None,
|
|
347
|
+
max_pages: int | None = None,
|
|
348
|
+
timeout: float | None = None,
|
|
349
|
+
max_retries: int | None = None,
|
|
350
|
+
) -> Iterator[dict[str, Any]]:
|
|
351
|
+
"""Every item of employee finder across pages. Each page is a billed request, so set max_items."""
|
|
352
|
+
return self._client._paginate("people.employees", {"company": company, "job_titles": job_titles, "locations": locations, "limit": limit, "cursor": cursor}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
353
|
+
|
|
354
|
+
def profile_basic(
|
|
355
|
+
self,
|
|
356
|
+
*,
|
|
357
|
+
url: str,
|
|
358
|
+
idempotency_key: str | None = None,
|
|
359
|
+
timeout: float | None = None,
|
|
360
|
+
max_retries: int | None = None,
|
|
361
|
+
) -> Envelope:
|
|
362
|
+
"""Basic Professional Profile.
|
|
363
|
+
|
|
364
|
+
Name, headline, current role, location and recent activity from a profile URL.
|
|
365
|
+
|
|
366
|
+
From $0.00075 per profile.
|
|
367
|
+
50 free requests on the free tier.
|
|
368
|
+
Main fields: name, headline, current_title, current_company, location.
|
|
369
|
+
"""
|
|
370
|
+
return self._client._invoke("people.profile_basic", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
371
|
+
|
|
372
|
+
def profile(
|
|
373
|
+
self,
|
|
374
|
+
*,
|
|
375
|
+
url: str,
|
|
376
|
+
idempotency_key: str | None = None,
|
|
377
|
+
timeout: float | None = None,
|
|
378
|
+
max_retries: int | None = None,
|
|
379
|
+
) -> Envelope:
|
|
380
|
+
"""Full Professional Profile.
|
|
381
|
+
|
|
382
|
+
The complete profile: every current and past role, education, skills and languages.
|
|
383
|
+
|
|
384
|
+
From $0.0022 per profile.
|
|
385
|
+
5 free requests on the free tier.
|
|
386
|
+
Main fields: first_name, last_name, headline, current_roles[], past_roles[], education[], skills[].
|
|
387
|
+
"""
|
|
388
|
+
return self._client._invoke("people.profile", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
389
|
+
|
|
390
|
+
def employment_history(
|
|
391
|
+
self,
|
|
392
|
+
*,
|
|
393
|
+
url: str,
|
|
394
|
+
idempotency_key: str | None = None,
|
|
395
|
+
timeout: float | None = None,
|
|
396
|
+
max_retries: int | None = None,
|
|
397
|
+
) -> Envelope:
|
|
398
|
+
"""Employment History.
|
|
399
|
+
|
|
400
|
+
Past and current positions with dates.
|
|
401
|
+
|
|
402
|
+
From $0.0022 per profile.
|
|
403
|
+
Main fields: positions[], company, title, start_date, end_date.
|
|
404
|
+
"""
|
|
405
|
+
return self._client._invoke("people.employment_history", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
406
|
+
|
|
407
|
+
def profile_url(
|
|
408
|
+
self,
|
|
409
|
+
*,
|
|
410
|
+
first_name: str,
|
|
411
|
+
last_name: str,
|
|
412
|
+
company: str | None = None,
|
|
413
|
+
title: str | None = None,
|
|
414
|
+
idempotency_key: str | None = None,
|
|
415
|
+
timeout: float | None = None,
|
|
416
|
+
max_retries: int | None = None,
|
|
417
|
+
) -> Envelope:
|
|
418
|
+
"""Professional Profile URL Finder.
|
|
419
|
+
|
|
420
|
+
Find a profile URL from a name and company.
|
|
421
|
+
|
|
422
|
+
From $0.001 per match.
|
|
423
|
+
Main fields: profile_url, full_name, company, confidence.
|
|
424
|
+
|
|
425
|
+
Args:
|
|
426
|
+
company: Company domain (preferred) or name.
|
|
427
|
+
title: Job title, to tell people with the same name apart.
|
|
428
|
+
"""
|
|
429
|
+
return self._client._invoke("people.profile_url", {"first_name": first_name, "last_name": last_name, "company": company, "title": title}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
430
|
+
|
|
431
|
+
def current_role(
|
|
432
|
+
self,
|
|
433
|
+
*,
|
|
434
|
+
url: str,
|
|
435
|
+
idempotency_key: str | None = None,
|
|
436
|
+
timeout: float | None = None,
|
|
437
|
+
max_retries: int | None = None,
|
|
438
|
+
) -> Envelope:
|
|
439
|
+
"""Current Role.
|
|
440
|
+
|
|
441
|
+
A person’s current title and employer.
|
|
442
|
+
|
|
443
|
+
From $0.0022 per profile.
|
|
444
|
+
Main fields: title, company, start_date, seniority.
|
|
445
|
+
"""
|
|
446
|
+
return self._client._invoke("people.current_role", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
447
|
+
|
|
448
|
+
def seniority(
|
|
449
|
+
self,
|
|
450
|
+
*,
|
|
451
|
+
title: str,
|
|
452
|
+
idempotency_key: str | None = None,
|
|
453
|
+
timeout: float | None = None,
|
|
454
|
+
max_retries: int | None = None,
|
|
455
|
+
) -> Envelope:
|
|
456
|
+
"""Seniority Classification.
|
|
457
|
+
|
|
458
|
+
Turn a job title into a seniority level and function.
|
|
459
|
+
|
|
460
|
+
From $0.001 per classification.
|
|
461
|
+
Main fields: title, seniority, function, confidence.
|
|
462
|
+
"""
|
|
463
|
+
return self._client._invoke("people.seniority", {"title": title}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
class AsyncPeople(_AsyncResource):
|
|
467
|
+
"""client.people: 10 endpoints."""
|
|
468
|
+
|
|
469
|
+
async def search(
|
|
470
|
+
self,
|
|
471
|
+
*,
|
|
472
|
+
first_names: IncludeExclude | None = None,
|
|
473
|
+
last_names: IncludeExclude | None = None,
|
|
474
|
+
job_titles: IncludeExclude | None = None,
|
|
475
|
+
past_job_titles: IncludeExclude | None = None,
|
|
476
|
+
keywords: IncludeExclude | None = None,
|
|
477
|
+
locations: IncludeExclude | None = None,
|
|
478
|
+
languages: IncludeExclude | None = None,
|
|
479
|
+
schools: IncludeExclude | None = None,
|
|
480
|
+
skills: IncludeExclude | None = None,
|
|
481
|
+
company_names: IncludeExclude | None = None,
|
|
482
|
+
company_domains: IncludeExclude | None = None,
|
|
483
|
+
company_linkedin_urls: IncludeExclude | None = None,
|
|
484
|
+
company_industries: IncludeExclude | None = None,
|
|
485
|
+
company_locations: IncludeExclude | None = None,
|
|
486
|
+
company_keywords: IncludeExclude | None = None,
|
|
487
|
+
company_headcount: Range | None = None,
|
|
488
|
+
years_of_experience: Range | None = None,
|
|
489
|
+
limit: int | None = None,
|
|
490
|
+
cursor: str | None = None,
|
|
491
|
+
filters: PeopleFilters | None = None,
|
|
492
|
+
idempotency_key: str | None = None,
|
|
493
|
+
timeout: float | None = None,
|
|
494
|
+
max_retries: int | None = None,
|
|
495
|
+
) -> Envelope:
|
|
496
|
+
"""People Search.
|
|
497
|
+
|
|
498
|
+
Find professionals by title, location, skills, schools and employer. Send at least one filter.
|
|
499
|
+
|
|
500
|
+
From $0.00035 per person.
|
|
501
|
+
50 free requests on the free tier.
|
|
502
|
+
Main fields: total, first_name, last_name, headline, current_role, company, location.
|
|
503
|
+
|
|
504
|
+
Args:
|
|
505
|
+
limit: Default: 25.
|
|
506
|
+
filters: The same filters as one dict. Flat keyword filters are merged into it.
|
|
507
|
+
"""
|
|
508
|
+
return await self._client._invoke("people.search", {"first_names": first_names, "last_names": last_names, "job_titles": job_titles, "past_job_titles": past_job_titles, "keywords": keywords, "locations": locations, "languages": languages, "schools": schools, "skills": skills, "company_names": company_names, "company_domains": company_domains, "company_linkedin_urls": company_linkedin_urls, "company_industries": company_industries, "company_locations": company_locations, "company_keywords": company_keywords, "company_headcount": company_headcount, "years_of_experience": years_of_experience, "limit": limit, "cursor": cursor, "filters": filters}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
509
|
+
|
|
510
|
+
def iter_search(
|
|
511
|
+
self,
|
|
512
|
+
*,
|
|
513
|
+
first_names: IncludeExclude | None = None,
|
|
514
|
+
last_names: IncludeExclude | None = None,
|
|
515
|
+
job_titles: IncludeExclude | None = None,
|
|
516
|
+
past_job_titles: IncludeExclude | None = None,
|
|
517
|
+
keywords: IncludeExclude | None = None,
|
|
518
|
+
locations: IncludeExclude | None = None,
|
|
519
|
+
languages: IncludeExclude | None = None,
|
|
520
|
+
schools: IncludeExclude | None = None,
|
|
521
|
+
skills: IncludeExclude | None = None,
|
|
522
|
+
company_names: IncludeExclude | None = None,
|
|
523
|
+
company_domains: IncludeExclude | None = None,
|
|
524
|
+
company_linkedin_urls: IncludeExclude | None = None,
|
|
525
|
+
company_industries: IncludeExclude | None = None,
|
|
526
|
+
company_locations: IncludeExclude | None = None,
|
|
527
|
+
company_keywords: IncludeExclude | None = None,
|
|
528
|
+
company_headcount: Range | None = None,
|
|
529
|
+
years_of_experience: Range | None = None,
|
|
530
|
+
limit: int | None = None,
|
|
531
|
+
cursor: str | None = None,
|
|
532
|
+
filters: PeopleFilters | None = None,
|
|
533
|
+
max_items: int | None = None,
|
|
534
|
+
max_pages: int | None = None,
|
|
535
|
+
timeout: float | None = None,
|
|
536
|
+
max_retries: int | None = None,
|
|
537
|
+
) -> AsyncIterator[dict[str, Any]]:
|
|
538
|
+
"""Every item of people search across pages. Each page is a billed request, so set max_items."""
|
|
539
|
+
return self._client._paginate("people.search", {"first_names": first_names, "last_names": last_names, "job_titles": job_titles, "past_job_titles": past_job_titles, "keywords": keywords, "locations": locations, "languages": languages, "schools": schools, "skills": skills, "company_names": company_names, "company_domains": company_domains, "company_linkedin_urls": company_linkedin_urls, "company_industries": company_industries, "company_locations": company_locations, "company_keywords": company_keywords, "company_headcount": company_headcount, "years_of_experience": years_of_experience, "limit": limit, "cursor": cursor, "filters": filters}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
540
|
+
|
|
541
|
+
async def search_count(
|
|
542
|
+
self,
|
|
543
|
+
*,
|
|
544
|
+
first_names: IncludeExclude | None = None,
|
|
545
|
+
last_names: IncludeExclude | None = None,
|
|
546
|
+
job_titles: IncludeExclude | None = None,
|
|
547
|
+
past_job_titles: IncludeExclude | None = None,
|
|
548
|
+
keywords: IncludeExclude | None = None,
|
|
549
|
+
locations: IncludeExclude | None = None,
|
|
550
|
+
languages: IncludeExclude | None = None,
|
|
551
|
+
schools: IncludeExclude | None = None,
|
|
552
|
+
skills: IncludeExclude | None = None,
|
|
553
|
+
company_names: IncludeExclude | None = None,
|
|
554
|
+
company_domains: IncludeExclude | None = None,
|
|
555
|
+
company_linkedin_urls: IncludeExclude | None = None,
|
|
556
|
+
company_industries: IncludeExclude | None = None,
|
|
557
|
+
company_locations: IncludeExclude | None = None,
|
|
558
|
+
company_keywords: IncludeExclude | None = None,
|
|
559
|
+
company_headcount: Range | None = None,
|
|
560
|
+
years_of_experience: Range | None = None,
|
|
561
|
+
filters: PeopleFilters | None = None,
|
|
562
|
+
idempotency_key: str | None = None,
|
|
563
|
+
timeout: float | None = None,
|
|
564
|
+
max_retries: int | None = None,
|
|
565
|
+
) -> Envelope:
|
|
566
|
+
"""People Search Count.
|
|
567
|
+
|
|
568
|
+
Count matching people before you pull a list. Takes the same filters as People Search.
|
|
569
|
+
|
|
570
|
+
Free.
|
|
571
|
+
Main fields: total.
|
|
572
|
+
|
|
573
|
+
Args:
|
|
574
|
+
filters: The same filters as one dict. Flat keyword filters are merged into it.
|
|
575
|
+
"""
|
|
576
|
+
return await self._client._invoke("people.search_count", {"first_names": first_names, "last_names": last_names, "job_titles": job_titles, "past_job_titles": past_job_titles, "keywords": keywords, "locations": locations, "languages": languages, "schools": schools, "skills": skills, "company_names": company_names, "company_domains": company_domains, "company_linkedin_urls": company_linkedin_urls, "company_industries": company_industries, "company_locations": company_locations, "company_keywords": company_keywords, "company_headcount": company_headcount, "years_of_experience": years_of_experience, "filters": filters}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
577
|
+
|
|
578
|
+
async def decision_makers(
|
|
579
|
+
self,
|
|
580
|
+
*,
|
|
581
|
+
company: str,
|
|
582
|
+
functions: Sequence[Literal["executive", "sales", "marketing", "engineering", "product", "design", "data", "it", "security", "finance", "operations", "hr", "legal", "customer_success", "procurement"]],
|
|
583
|
+
seniority: Sequence[Literal["c_suite", "founder", "vp", "head", "director", "manager", "senior", "entry", "intern"]] | None = None,
|
|
584
|
+
locations: IncludeExclude | None = None,
|
|
585
|
+
limit: int | None = None,
|
|
586
|
+
cursor: str | None = None,
|
|
587
|
+
idempotency_key: str | None = None,
|
|
588
|
+
timeout: float | None = None,
|
|
589
|
+
max_retries: int | None = None,
|
|
590
|
+
) -> Envelope:
|
|
591
|
+
"""Decision-Maker Search.
|
|
592
|
+
|
|
593
|
+
The likely buyers for a function at a company.
|
|
594
|
+
|
|
595
|
+
From $0.00035 per person.
|
|
596
|
+
50 free requests on the free tier.
|
|
597
|
+
Main fields: full_name, title, function, seniority, confidence.
|
|
598
|
+
|
|
599
|
+
Args:
|
|
600
|
+
company: Company domain or LinkedIn company URL.
|
|
601
|
+
functions: Departments to find leaders in.
|
|
602
|
+
seniority: Levels to include. Default: ["c_suite","founder","vp","head","director"].
|
|
603
|
+
limit: Default: 25.
|
|
604
|
+
"""
|
|
605
|
+
return await self._client._invoke("people.decision_makers", {"company": company, "functions": functions, "seniority": seniority, "locations": locations, "limit": limit, "cursor": cursor}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
606
|
+
|
|
607
|
+
def iter_decision_makers(
|
|
608
|
+
self,
|
|
609
|
+
*,
|
|
610
|
+
company: str,
|
|
611
|
+
functions: Sequence[Literal["executive", "sales", "marketing", "engineering", "product", "design", "data", "it", "security", "finance", "operations", "hr", "legal", "customer_success", "procurement"]],
|
|
612
|
+
seniority: Sequence[Literal["c_suite", "founder", "vp", "head", "director", "manager", "senior", "entry", "intern"]] | None = None,
|
|
613
|
+
locations: IncludeExclude | None = None,
|
|
614
|
+
limit: int | None = None,
|
|
615
|
+
cursor: str | None = None,
|
|
616
|
+
max_items: int | None = None,
|
|
617
|
+
max_pages: int | None = None,
|
|
618
|
+
timeout: float | None = None,
|
|
619
|
+
max_retries: int | None = None,
|
|
620
|
+
) -> AsyncIterator[dict[str, Any]]:
|
|
621
|
+
"""Every item of decision-maker search across pages. Each page is a billed request, so set max_items."""
|
|
622
|
+
return self._client._paginate("people.decision_makers", {"company": company, "functions": functions, "seniority": seniority, "locations": locations, "limit": limit, "cursor": cursor}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
623
|
+
|
|
624
|
+
async def employees(
|
|
625
|
+
self,
|
|
626
|
+
*,
|
|
627
|
+
company: str,
|
|
628
|
+
job_titles: IncludeExclude | None = None,
|
|
629
|
+
locations: IncludeExclude | None = None,
|
|
630
|
+
limit: int | None = None,
|
|
631
|
+
cursor: str | None = None,
|
|
632
|
+
idempotency_key: str | None = None,
|
|
633
|
+
timeout: float | None = None,
|
|
634
|
+
max_retries: int | None = None,
|
|
635
|
+
) -> Envelope:
|
|
636
|
+
"""Employee Finder.
|
|
637
|
+
|
|
638
|
+
Current employees at a company, filtered by title and location.
|
|
639
|
+
|
|
640
|
+
From $0.00035 per employee.
|
|
641
|
+
50 free requests on the free tier.
|
|
642
|
+
Main fields: total, first_name, last_name, headline, current_role, location.
|
|
643
|
+
|
|
644
|
+
Args:
|
|
645
|
+
company: Company domain or LinkedIn company URL.
|
|
646
|
+
limit: Default: 25.
|
|
647
|
+
"""
|
|
648
|
+
return await self._client._invoke("people.employees", {"company": company, "job_titles": job_titles, "locations": locations, "limit": limit, "cursor": cursor}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
649
|
+
|
|
650
|
+
def iter_employees(
|
|
651
|
+
self,
|
|
652
|
+
*,
|
|
653
|
+
company: str,
|
|
654
|
+
job_titles: IncludeExclude | None = None,
|
|
655
|
+
locations: IncludeExclude | None = None,
|
|
656
|
+
limit: int | None = None,
|
|
657
|
+
cursor: str | None = None,
|
|
658
|
+
max_items: int | None = None,
|
|
659
|
+
max_pages: int | None = None,
|
|
660
|
+
timeout: float | None = None,
|
|
661
|
+
max_retries: int | None = None,
|
|
662
|
+
) -> AsyncIterator[dict[str, Any]]:
|
|
663
|
+
"""Every item of employee finder across pages. Each page is a billed request, so set max_items."""
|
|
664
|
+
return self._client._paginate("people.employees", {"company": company, "job_titles": job_titles, "locations": locations, "limit": limit, "cursor": cursor}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
665
|
+
|
|
666
|
+
async def profile_basic(
|
|
667
|
+
self,
|
|
668
|
+
*,
|
|
669
|
+
url: str,
|
|
670
|
+
idempotency_key: str | None = None,
|
|
671
|
+
timeout: float | None = None,
|
|
672
|
+
max_retries: int | None = None,
|
|
673
|
+
) -> Envelope:
|
|
674
|
+
"""Basic Professional Profile.
|
|
675
|
+
|
|
676
|
+
Name, headline, current role, location and recent activity from a profile URL.
|
|
677
|
+
|
|
678
|
+
From $0.00075 per profile.
|
|
679
|
+
50 free requests on the free tier.
|
|
680
|
+
Main fields: name, headline, current_title, current_company, location.
|
|
681
|
+
"""
|
|
682
|
+
return await self._client._invoke("people.profile_basic", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
683
|
+
|
|
684
|
+
async def profile(
|
|
685
|
+
self,
|
|
686
|
+
*,
|
|
687
|
+
url: str,
|
|
688
|
+
idempotency_key: str | None = None,
|
|
689
|
+
timeout: float | None = None,
|
|
690
|
+
max_retries: int | None = None,
|
|
691
|
+
) -> Envelope:
|
|
692
|
+
"""Full Professional Profile.
|
|
693
|
+
|
|
694
|
+
The complete profile: every current and past role, education, skills and languages.
|
|
695
|
+
|
|
696
|
+
From $0.0022 per profile.
|
|
697
|
+
5 free requests on the free tier.
|
|
698
|
+
Main fields: first_name, last_name, headline, current_roles[], past_roles[], education[], skills[].
|
|
699
|
+
"""
|
|
700
|
+
return await self._client._invoke("people.profile", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
701
|
+
|
|
702
|
+
async def employment_history(
|
|
703
|
+
self,
|
|
704
|
+
*,
|
|
705
|
+
url: str,
|
|
706
|
+
idempotency_key: str | None = None,
|
|
707
|
+
timeout: float | None = None,
|
|
708
|
+
max_retries: int | None = None,
|
|
709
|
+
) -> Envelope:
|
|
710
|
+
"""Employment History.
|
|
711
|
+
|
|
712
|
+
Past and current positions with dates.
|
|
713
|
+
|
|
714
|
+
From $0.0022 per profile.
|
|
715
|
+
Main fields: positions[], company, title, start_date, end_date.
|
|
716
|
+
"""
|
|
717
|
+
return await self._client._invoke("people.employment_history", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
718
|
+
|
|
719
|
+
async def profile_url(
|
|
720
|
+
self,
|
|
721
|
+
*,
|
|
722
|
+
first_name: str,
|
|
723
|
+
last_name: str,
|
|
724
|
+
company: str | None = None,
|
|
725
|
+
title: str | None = None,
|
|
726
|
+
idempotency_key: str | None = None,
|
|
727
|
+
timeout: float | None = None,
|
|
728
|
+
max_retries: int | None = None,
|
|
729
|
+
) -> Envelope:
|
|
730
|
+
"""Professional Profile URL Finder.
|
|
731
|
+
|
|
732
|
+
Find a profile URL from a name and company.
|
|
733
|
+
|
|
734
|
+
From $0.001 per match.
|
|
735
|
+
Main fields: profile_url, full_name, company, confidence.
|
|
736
|
+
|
|
737
|
+
Args:
|
|
738
|
+
company: Company domain (preferred) or name.
|
|
739
|
+
title: Job title, to tell people with the same name apart.
|
|
740
|
+
"""
|
|
741
|
+
return await self._client._invoke("people.profile_url", {"first_name": first_name, "last_name": last_name, "company": company, "title": title}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
742
|
+
|
|
743
|
+
async def current_role(
|
|
744
|
+
self,
|
|
745
|
+
*,
|
|
746
|
+
url: str,
|
|
747
|
+
idempotency_key: str | None = None,
|
|
748
|
+
timeout: float | None = None,
|
|
749
|
+
max_retries: int | None = None,
|
|
750
|
+
) -> Envelope:
|
|
751
|
+
"""Current Role.
|
|
752
|
+
|
|
753
|
+
A person’s current title and employer.
|
|
754
|
+
|
|
755
|
+
From $0.0022 per profile.
|
|
756
|
+
Main fields: title, company, start_date, seniority.
|
|
757
|
+
"""
|
|
758
|
+
return await self._client._invoke("people.current_role", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
759
|
+
|
|
760
|
+
async def seniority(
|
|
761
|
+
self,
|
|
762
|
+
*,
|
|
763
|
+
title: str,
|
|
764
|
+
idempotency_key: str | None = None,
|
|
765
|
+
timeout: float | None = None,
|
|
766
|
+
max_retries: int | None = None,
|
|
767
|
+
) -> Envelope:
|
|
768
|
+
"""Seniority Classification.
|
|
769
|
+
|
|
770
|
+
Turn a job title into a seniority level and function.
|
|
771
|
+
|
|
772
|
+
From $0.001 per classification.
|
|
773
|
+
Main fields: title, seniority, function, confidence.
|
|
774
|
+
"""
|
|
775
|
+
return await self._client._invoke("people.seniority", {"title": title}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
class Companies(_Resource):
|
|
779
|
+
"""client.companies: 12 endpoints."""
|
|
780
|
+
|
|
781
|
+
def search(
|
|
782
|
+
self,
|
|
783
|
+
*,
|
|
784
|
+
names: IncludeExclude | None = None,
|
|
785
|
+
domains: IncludeExclude | None = None,
|
|
786
|
+
industries: IncludeExclude | None = None,
|
|
787
|
+
locations: IncludeExclude | None = None,
|
|
788
|
+
keywords: IncludeExclude | None = None,
|
|
789
|
+
types: IncludeExclude | None = None,
|
|
790
|
+
headcount: Range | None = None,
|
|
791
|
+
limit: int | None = None,
|
|
792
|
+
cursor: str | None = None,
|
|
793
|
+
filters: CompanyFilters | None = None,
|
|
794
|
+
idempotency_key: str | None = None,
|
|
795
|
+
timeout: float | None = None,
|
|
796
|
+
max_retries: int | None = None,
|
|
797
|
+
) -> Envelope:
|
|
798
|
+
"""Company Search.
|
|
799
|
+
|
|
800
|
+
Find companies by industry, location, size, type and keywords. Send at least one filter.
|
|
801
|
+
|
|
802
|
+
From $0.00035 per company.
|
|
803
|
+
50 free requests on the free tier.
|
|
804
|
+
Main fields: total, name, domain, industry, employee_range, location.
|
|
805
|
+
|
|
806
|
+
Args:
|
|
807
|
+
limit: Default: 25.
|
|
808
|
+
filters: The same filters as one dict. Flat keyword filters are merged into it.
|
|
809
|
+
"""
|
|
810
|
+
return self._client._invoke("company.search", {"names": names, "domains": domains, "industries": industries, "locations": locations, "keywords": keywords, "types": types, "headcount": headcount, "limit": limit, "cursor": cursor, "filters": filters}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
811
|
+
|
|
812
|
+
def iter_search(
|
|
813
|
+
self,
|
|
814
|
+
*,
|
|
815
|
+
names: IncludeExclude | None = None,
|
|
816
|
+
domains: IncludeExclude | None = None,
|
|
817
|
+
industries: IncludeExclude | None = None,
|
|
818
|
+
locations: IncludeExclude | None = None,
|
|
819
|
+
keywords: IncludeExclude | None = None,
|
|
820
|
+
types: IncludeExclude | None = None,
|
|
821
|
+
headcount: Range | None = None,
|
|
822
|
+
limit: int | None = None,
|
|
823
|
+
cursor: str | None = None,
|
|
824
|
+
filters: CompanyFilters | None = None,
|
|
825
|
+
max_items: int | None = None,
|
|
826
|
+
max_pages: int | None = None,
|
|
827
|
+
timeout: float | None = None,
|
|
828
|
+
max_retries: int | None = None,
|
|
829
|
+
) -> Iterator[dict[str, Any]]:
|
|
830
|
+
"""Every item of company search across pages. Each page is a billed request, so set max_items."""
|
|
831
|
+
return self._client._paginate("company.search", {"names": names, "domains": domains, "industries": industries, "locations": locations, "keywords": keywords, "types": types, "headcount": headcount, "limit": limit, "cursor": cursor, "filters": filters}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
832
|
+
|
|
833
|
+
def search_count(
|
|
834
|
+
self,
|
|
835
|
+
*,
|
|
836
|
+
names: IncludeExclude | None = None,
|
|
837
|
+
domains: IncludeExclude | None = None,
|
|
838
|
+
industries: IncludeExclude | None = None,
|
|
839
|
+
locations: IncludeExclude | None = None,
|
|
840
|
+
keywords: IncludeExclude | None = None,
|
|
841
|
+
types: IncludeExclude | None = None,
|
|
842
|
+
headcount: Range | None = None,
|
|
843
|
+
filters: CompanyFilters | None = None,
|
|
844
|
+
idempotency_key: str | None = None,
|
|
845
|
+
timeout: float | None = None,
|
|
846
|
+
max_retries: int | None = None,
|
|
847
|
+
) -> Envelope:
|
|
848
|
+
"""Company Search Count.
|
|
849
|
+
|
|
850
|
+
Count matching companies before you pull a list. Takes the same filters as Company Search.
|
|
851
|
+
|
|
852
|
+
Free.
|
|
853
|
+
Main fields: total.
|
|
854
|
+
|
|
855
|
+
Args:
|
|
856
|
+
filters: The same filters as one dict. Flat keyword filters are merged into it.
|
|
857
|
+
"""
|
|
858
|
+
return self._client._invoke("company.search_count", {"names": names, "domains": domains, "industries": industries, "locations": locations, "keywords": keywords, "types": types, "headcount": headcount, "filters": filters}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
859
|
+
|
|
860
|
+
def enrich(
|
|
861
|
+
self,
|
|
862
|
+
*,
|
|
863
|
+
domain: str | None = None,
|
|
864
|
+
linkedin_url: str | None = None,
|
|
865
|
+
idempotency_key: str | None = None,
|
|
866
|
+
timeout: float | None = None,
|
|
867
|
+
max_retries: int | None = None,
|
|
868
|
+
) -> Envelope:
|
|
869
|
+
"""Company Enrichment.
|
|
870
|
+
|
|
871
|
+
A full company record from a domain or LinkedIn company URL.
|
|
872
|
+
|
|
873
|
+
From $0.00105 per company.
|
|
874
|
+
20 free requests on the free tier.
|
|
875
|
+
Main fields: name, domain, industry, employee_count, employee_range, location, founded_year, revenue_range.
|
|
876
|
+
"""
|
|
877
|
+
return self._client._invoke("company.enrich", {"domain": domain, "linkedin_url": linkedin_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
878
|
+
|
|
879
|
+
def domain(
|
|
880
|
+
self,
|
|
881
|
+
*,
|
|
882
|
+
name: str,
|
|
883
|
+
location: str | None = None,
|
|
884
|
+
idempotency_key: str | None = None,
|
|
885
|
+
timeout: float | None = None,
|
|
886
|
+
max_retries: int | None = None,
|
|
887
|
+
) -> Envelope:
|
|
888
|
+
"""Company Domain Finder.
|
|
889
|
+
|
|
890
|
+
Find a company’s website domain from its name.
|
|
891
|
+
|
|
892
|
+
From $0.001 per match.
|
|
893
|
+
Main fields: name, domain, confidence.
|
|
894
|
+
|
|
895
|
+
Args:
|
|
896
|
+
location: City or country, to tell companies with the same name apart.
|
|
897
|
+
"""
|
|
898
|
+
return self._client._invoke("company.domain", {"name": name, "location": location}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
899
|
+
|
|
900
|
+
def linkedin(
|
|
901
|
+
self,
|
|
902
|
+
*,
|
|
903
|
+
url: str,
|
|
904
|
+
idempotency_key: str | None = None,
|
|
905
|
+
timeout: float | None = None,
|
|
906
|
+
max_retries: int | None = None,
|
|
907
|
+
) -> Envelope:
|
|
908
|
+
"""LinkedIn Company Profile.
|
|
909
|
+
|
|
910
|
+
Company page details, size, specialties and followers, plus the numeric company id.
|
|
911
|
+
|
|
912
|
+
From $0.00105 per profile.
|
|
913
|
+
50 free requests on the free tier.
|
|
914
|
+
Main fields: name, linkedin_id, industry, company_size, specialties, followers.
|
|
915
|
+
"""
|
|
916
|
+
return self._client._invoke("company.linkedin", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
917
|
+
|
|
918
|
+
def profile_url(
|
|
919
|
+
self,
|
|
920
|
+
*,
|
|
921
|
+
domain: str | None = None,
|
|
922
|
+
name: str | None = None,
|
|
923
|
+
idempotency_key: str | None = None,
|
|
924
|
+
timeout: float | None = None,
|
|
925
|
+
max_retries: int | None = None,
|
|
926
|
+
) -> Envelope:
|
|
927
|
+
"""Company Profile URL Finder.
|
|
928
|
+
|
|
929
|
+
Find a company’s profile URL from its name or domain.
|
|
930
|
+
|
|
931
|
+
From $0.001 per match.
|
|
932
|
+
Main fields: profile_url, name, domain, confidence.
|
|
933
|
+
"""
|
|
934
|
+
return self._client._invoke("company.profile_url", {"domain": domain, "name": name}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
935
|
+
|
|
936
|
+
def firmographics(
|
|
937
|
+
self,
|
|
938
|
+
*,
|
|
939
|
+
domain: str | None = None,
|
|
940
|
+
linkedin_url: str | None = None,
|
|
941
|
+
idempotency_key: str | None = None,
|
|
942
|
+
timeout: float | None = None,
|
|
943
|
+
max_retries: int | None = None,
|
|
944
|
+
) -> Envelope:
|
|
945
|
+
"""Company Firmographics.
|
|
946
|
+
|
|
947
|
+
Industry, type, size, revenue range, location, founding year and headcount growth.
|
|
948
|
+
|
|
949
|
+
From $0.00105 per company.
|
|
950
|
+
20 free requests on the free tier.
|
|
951
|
+
Main fields: industry, type, employee_count, employee_range, revenue_range, location, founded_year.
|
|
952
|
+
"""
|
|
953
|
+
return self._client._invoke("company.firmographics", {"domain": domain, "linkedin_url": linkedin_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
954
|
+
|
|
955
|
+
def headcount(
|
|
956
|
+
self,
|
|
957
|
+
*,
|
|
958
|
+
company: str,
|
|
959
|
+
idempotency_key: str | None = None,
|
|
960
|
+
timeout: float | None = None,
|
|
961
|
+
max_retries: int | None = None,
|
|
962
|
+
) -> Envelope:
|
|
963
|
+
"""Company Headcount.
|
|
964
|
+
|
|
965
|
+
Headcount and growth by department over time.
|
|
966
|
+
|
|
967
|
+
From $0.005 per company.
|
|
968
|
+
Main fields: total, by_department, growth_6m, growth_12m.
|
|
969
|
+
|
|
970
|
+
Args:
|
|
971
|
+
company: Company domain or LinkedIn company URL.
|
|
972
|
+
"""
|
|
973
|
+
return self._client._invoke("company.headcount", {"company": company}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
974
|
+
|
|
975
|
+
def funding(
|
|
976
|
+
self,
|
|
977
|
+
*,
|
|
978
|
+
domain: str,
|
|
979
|
+
company: str | None = None,
|
|
980
|
+
idempotency_key: str | None = None,
|
|
981
|
+
timeout: float | None = None,
|
|
982
|
+
max_retries: int | None = None,
|
|
983
|
+
) -> Envelope:
|
|
984
|
+
"""Company Funding.
|
|
985
|
+
|
|
986
|
+
Funding history: total raised, last round, stage and investors, with the news it was found in.
|
|
987
|
+
|
|
988
|
+
From $0.005 per company.
|
|
989
|
+
Main fields: total_raised, last_round, stage, investors[], confidence, evidence[].
|
|
990
|
+
|
|
991
|
+
Args:
|
|
992
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
993
|
+
"""
|
|
994
|
+
return self._client._invoke("company.funding", {"domain": domain, "company": company}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
995
|
+
|
|
996
|
+
def technographics(
|
|
997
|
+
self,
|
|
998
|
+
*,
|
|
999
|
+
domain: str,
|
|
1000
|
+
idempotency_key: str | None = None,
|
|
1001
|
+
timeout: float | None = None,
|
|
1002
|
+
max_retries: int | None = None,
|
|
1003
|
+
) -> Envelope:
|
|
1004
|
+
"""Technographics.
|
|
1005
|
+
|
|
1006
|
+
Technologies detected on a company website, each with a category.
|
|
1007
|
+
|
|
1008
|
+
From $0.005 per website.
|
|
1009
|
+
50 free requests on the free tier.
|
|
1010
|
+
Main fields: domain, technologies[].
|
|
1011
|
+
"""
|
|
1012
|
+
return self._client._invoke("company.technographics", {"domain": domain}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1013
|
+
|
|
1014
|
+
def similar(
|
|
1015
|
+
self,
|
|
1016
|
+
*,
|
|
1017
|
+
domain: str,
|
|
1018
|
+
limit: int | None = None,
|
|
1019
|
+
idempotency_key: str | None = None,
|
|
1020
|
+
timeout: float | None = None,
|
|
1021
|
+
max_retries: int | None = None,
|
|
1022
|
+
) -> Envelope:
|
|
1023
|
+
"""Similar Companies.
|
|
1024
|
+
|
|
1025
|
+
Lookalike companies for a domain.
|
|
1026
|
+
|
|
1027
|
+
From $0.01 per search.
|
|
1028
|
+
Main fields: name, domain, similarity, industry.
|
|
1029
|
+
|
|
1030
|
+
Args:
|
|
1031
|
+
limit: Default: 10.
|
|
1032
|
+
"""
|
|
1033
|
+
return self._client._invoke("company.similar", {"domain": domain, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1034
|
+
|
|
1035
|
+
def website_metadata(
|
|
1036
|
+
self,
|
|
1037
|
+
*,
|
|
1038
|
+
url: str,
|
|
1039
|
+
idempotency_key: str | None = None,
|
|
1040
|
+
timeout: float | None = None,
|
|
1041
|
+
max_retries: int | None = None,
|
|
1042
|
+
) -> Envelope:
|
|
1043
|
+
"""Website Metadata.
|
|
1044
|
+
|
|
1045
|
+
Title, description, language, favicon, Open Graph and Twitter tags, and social profile links for a website.
|
|
1046
|
+
|
|
1047
|
+
From $0.001 per website.
|
|
1048
|
+
300 free requests on the free tier.
|
|
1049
|
+
Main fields: title, description, favicon_url, og, twitter, social_profiles.
|
|
1050
|
+
"""
|
|
1051
|
+
return self._client._invoke("company.website_metadata", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
class AsyncCompanies(_AsyncResource):
|
|
1055
|
+
"""client.companies: 12 endpoints."""
|
|
1056
|
+
|
|
1057
|
+
async def search(
|
|
1058
|
+
self,
|
|
1059
|
+
*,
|
|
1060
|
+
names: IncludeExclude | None = None,
|
|
1061
|
+
domains: IncludeExclude | None = None,
|
|
1062
|
+
industries: IncludeExclude | None = None,
|
|
1063
|
+
locations: IncludeExclude | None = None,
|
|
1064
|
+
keywords: IncludeExclude | None = None,
|
|
1065
|
+
types: IncludeExclude | None = None,
|
|
1066
|
+
headcount: Range | None = None,
|
|
1067
|
+
limit: int | None = None,
|
|
1068
|
+
cursor: str | None = None,
|
|
1069
|
+
filters: CompanyFilters | None = None,
|
|
1070
|
+
idempotency_key: str | None = None,
|
|
1071
|
+
timeout: float | None = None,
|
|
1072
|
+
max_retries: int | None = None,
|
|
1073
|
+
) -> Envelope:
|
|
1074
|
+
"""Company Search.
|
|
1075
|
+
|
|
1076
|
+
Find companies by industry, location, size, type and keywords. Send at least one filter.
|
|
1077
|
+
|
|
1078
|
+
From $0.00035 per company.
|
|
1079
|
+
50 free requests on the free tier.
|
|
1080
|
+
Main fields: total, name, domain, industry, employee_range, location.
|
|
1081
|
+
|
|
1082
|
+
Args:
|
|
1083
|
+
limit: Default: 25.
|
|
1084
|
+
filters: The same filters as one dict. Flat keyword filters are merged into it.
|
|
1085
|
+
"""
|
|
1086
|
+
return await self._client._invoke("company.search", {"names": names, "domains": domains, "industries": industries, "locations": locations, "keywords": keywords, "types": types, "headcount": headcount, "limit": limit, "cursor": cursor, "filters": filters}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1087
|
+
|
|
1088
|
+
def iter_search(
|
|
1089
|
+
self,
|
|
1090
|
+
*,
|
|
1091
|
+
names: IncludeExclude | None = None,
|
|
1092
|
+
domains: IncludeExclude | None = None,
|
|
1093
|
+
industries: IncludeExclude | None = None,
|
|
1094
|
+
locations: IncludeExclude | None = None,
|
|
1095
|
+
keywords: IncludeExclude | None = None,
|
|
1096
|
+
types: IncludeExclude | None = None,
|
|
1097
|
+
headcount: Range | None = None,
|
|
1098
|
+
limit: int | None = None,
|
|
1099
|
+
cursor: str | None = None,
|
|
1100
|
+
filters: CompanyFilters | None = None,
|
|
1101
|
+
max_items: int | None = None,
|
|
1102
|
+
max_pages: int | None = None,
|
|
1103
|
+
timeout: float | None = None,
|
|
1104
|
+
max_retries: int | None = None,
|
|
1105
|
+
) -> AsyncIterator[dict[str, Any]]:
|
|
1106
|
+
"""Every item of company search across pages. Each page is a billed request, so set max_items."""
|
|
1107
|
+
return self._client._paginate("company.search", {"names": names, "domains": domains, "industries": industries, "locations": locations, "keywords": keywords, "types": types, "headcount": headcount, "limit": limit, "cursor": cursor, "filters": filters}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
1108
|
+
|
|
1109
|
+
async def search_count(
|
|
1110
|
+
self,
|
|
1111
|
+
*,
|
|
1112
|
+
names: IncludeExclude | None = None,
|
|
1113
|
+
domains: IncludeExclude | None = None,
|
|
1114
|
+
industries: IncludeExclude | None = None,
|
|
1115
|
+
locations: IncludeExclude | None = None,
|
|
1116
|
+
keywords: IncludeExclude | None = None,
|
|
1117
|
+
types: IncludeExclude | None = None,
|
|
1118
|
+
headcount: Range | None = None,
|
|
1119
|
+
filters: CompanyFilters | None = None,
|
|
1120
|
+
idempotency_key: str | None = None,
|
|
1121
|
+
timeout: float | None = None,
|
|
1122
|
+
max_retries: int | None = None,
|
|
1123
|
+
) -> Envelope:
|
|
1124
|
+
"""Company Search Count.
|
|
1125
|
+
|
|
1126
|
+
Count matching companies before you pull a list. Takes the same filters as Company Search.
|
|
1127
|
+
|
|
1128
|
+
Free.
|
|
1129
|
+
Main fields: total.
|
|
1130
|
+
|
|
1131
|
+
Args:
|
|
1132
|
+
filters: The same filters as one dict. Flat keyword filters are merged into it.
|
|
1133
|
+
"""
|
|
1134
|
+
return await self._client._invoke("company.search_count", {"names": names, "domains": domains, "industries": industries, "locations": locations, "keywords": keywords, "types": types, "headcount": headcount, "filters": filters}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1135
|
+
|
|
1136
|
+
async def enrich(
|
|
1137
|
+
self,
|
|
1138
|
+
*,
|
|
1139
|
+
domain: str | None = None,
|
|
1140
|
+
linkedin_url: str | None = None,
|
|
1141
|
+
idempotency_key: str | None = None,
|
|
1142
|
+
timeout: float | None = None,
|
|
1143
|
+
max_retries: int | None = None,
|
|
1144
|
+
) -> Envelope:
|
|
1145
|
+
"""Company Enrichment.
|
|
1146
|
+
|
|
1147
|
+
A full company record from a domain or LinkedIn company URL.
|
|
1148
|
+
|
|
1149
|
+
From $0.00105 per company.
|
|
1150
|
+
20 free requests on the free tier.
|
|
1151
|
+
Main fields: name, domain, industry, employee_count, employee_range, location, founded_year, revenue_range.
|
|
1152
|
+
"""
|
|
1153
|
+
return await self._client._invoke("company.enrich", {"domain": domain, "linkedin_url": linkedin_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1154
|
+
|
|
1155
|
+
async def domain(
|
|
1156
|
+
self,
|
|
1157
|
+
*,
|
|
1158
|
+
name: str,
|
|
1159
|
+
location: str | None = None,
|
|
1160
|
+
idempotency_key: str | None = None,
|
|
1161
|
+
timeout: float | None = None,
|
|
1162
|
+
max_retries: int | None = None,
|
|
1163
|
+
) -> Envelope:
|
|
1164
|
+
"""Company Domain Finder.
|
|
1165
|
+
|
|
1166
|
+
Find a company’s website domain from its name.
|
|
1167
|
+
|
|
1168
|
+
From $0.001 per match.
|
|
1169
|
+
Main fields: name, domain, confidence.
|
|
1170
|
+
|
|
1171
|
+
Args:
|
|
1172
|
+
location: City or country, to tell companies with the same name apart.
|
|
1173
|
+
"""
|
|
1174
|
+
return await self._client._invoke("company.domain", {"name": name, "location": location}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1175
|
+
|
|
1176
|
+
async def linkedin(
|
|
1177
|
+
self,
|
|
1178
|
+
*,
|
|
1179
|
+
url: str,
|
|
1180
|
+
idempotency_key: str | None = None,
|
|
1181
|
+
timeout: float | None = None,
|
|
1182
|
+
max_retries: int | None = None,
|
|
1183
|
+
) -> Envelope:
|
|
1184
|
+
"""LinkedIn Company Profile.
|
|
1185
|
+
|
|
1186
|
+
Company page details, size, specialties and followers, plus the numeric company id.
|
|
1187
|
+
|
|
1188
|
+
From $0.00105 per profile.
|
|
1189
|
+
50 free requests on the free tier.
|
|
1190
|
+
Main fields: name, linkedin_id, industry, company_size, specialties, followers.
|
|
1191
|
+
"""
|
|
1192
|
+
return await self._client._invoke("company.linkedin", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1193
|
+
|
|
1194
|
+
async def profile_url(
|
|
1195
|
+
self,
|
|
1196
|
+
*,
|
|
1197
|
+
domain: str | None = None,
|
|
1198
|
+
name: str | None = None,
|
|
1199
|
+
idempotency_key: str | None = None,
|
|
1200
|
+
timeout: float | None = None,
|
|
1201
|
+
max_retries: int | None = None,
|
|
1202
|
+
) -> Envelope:
|
|
1203
|
+
"""Company Profile URL Finder.
|
|
1204
|
+
|
|
1205
|
+
Find a company’s profile URL from its name or domain.
|
|
1206
|
+
|
|
1207
|
+
From $0.001 per match.
|
|
1208
|
+
Main fields: profile_url, name, domain, confidence.
|
|
1209
|
+
"""
|
|
1210
|
+
return await self._client._invoke("company.profile_url", {"domain": domain, "name": name}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1211
|
+
|
|
1212
|
+
async def firmographics(
|
|
1213
|
+
self,
|
|
1214
|
+
*,
|
|
1215
|
+
domain: str | None = None,
|
|
1216
|
+
linkedin_url: str | None = None,
|
|
1217
|
+
idempotency_key: str | None = None,
|
|
1218
|
+
timeout: float | None = None,
|
|
1219
|
+
max_retries: int | None = None,
|
|
1220
|
+
) -> Envelope:
|
|
1221
|
+
"""Company Firmographics.
|
|
1222
|
+
|
|
1223
|
+
Industry, type, size, revenue range, location, founding year and headcount growth.
|
|
1224
|
+
|
|
1225
|
+
From $0.00105 per company.
|
|
1226
|
+
20 free requests on the free tier.
|
|
1227
|
+
Main fields: industry, type, employee_count, employee_range, revenue_range, location, founded_year.
|
|
1228
|
+
"""
|
|
1229
|
+
return await self._client._invoke("company.firmographics", {"domain": domain, "linkedin_url": linkedin_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1230
|
+
|
|
1231
|
+
async def headcount(
|
|
1232
|
+
self,
|
|
1233
|
+
*,
|
|
1234
|
+
company: str,
|
|
1235
|
+
idempotency_key: str | None = None,
|
|
1236
|
+
timeout: float | None = None,
|
|
1237
|
+
max_retries: int | None = None,
|
|
1238
|
+
) -> Envelope:
|
|
1239
|
+
"""Company Headcount.
|
|
1240
|
+
|
|
1241
|
+
Headcount and growth by department over time.
|
|
1242
|
+
|
|
1243
|
+
From $0.005 per company.
|
|
1244
|
+
Main fields: total, by_department, growth_6m, growth_12m.
|
|
1245
|
+
|
|
1246
|
+
Args:
|
|
1247
|
+
company: Company domain or LinkedIn company URL.
|
|
1248
|
+
"""
|
|
1249
|
+
return await self._client._invoke("company.headcount", {"company": company}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1250
|
+
|
|
1251
|
+
async def funding(
|
|
1252
|
+
self,
|
|
1253
|
+
*,
|
|
1254
|
+
domain: str,
|
|
1255
|
+
company: str | None = None,
|
|
1256
|
+
idempotency_key: str | None = None,
|
|
1257
|
+
timeout: float | None = None,
|
|
1258
|
+
max_retries: int | None = None,
|
|
1259
|
+
) -> Envelope:
|
|
1260
|
+
"""Company Funding.
|
|
1261
|
+
|
|
1262
|
+
Funding history: total raised, last round, stage and investors, with the news it was found in.
|
|
1263
|
+
|
|
1264
|
+
From $0.005 per company.
|
|
1265
|
+
Main fields: total_raised, last_round, stage, investors[], confidence, evidence[].
|
|
1266
|
+
|
|
1267
|
+
Args:
|
|
1268
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
1269
|
+
"""
|
|
1270
|
+
return await self._client._invoke("company.funding", {"domain": domain, "company": company}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1271
|
+
|
|
1272
|
+
async def technographics(
|
|
1273
|
+
self,
|
|
1274
|
+
*,
|
|
1275
|
+
domain: str,
|
|
1276
|
+
idempotency_key: str | None = None,
|
|
1277
|
+
timeout: float | None = None,
|
|
1278
|
+
max_retries: int | None = None,
|
|
1279
|
+
) -> Envelope:
|
|
1280
|
+
"""Technographics.
|
|
1281
|
+
|
|
1282
|
+
Technologies detected on a company website, each with a category.
|
|
1283
|
+
|
|
1284
|
+
From $0.005 per website.
|
|
1285
|
+
50 free requests on the free tier.
|
|
1286
|
+
Main fields: domain, technologies[].
|
|
1287
|
+
"""
|
|
1288
|
+
return await self._client._invoke("company.technographics", {"domain": domain}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1289
|
+
|
|
1290
|
+
async def similar(
|
|
1291
|
+
self,
|
|
1292
|
+
*,
|
|
1293
|
+
domain: str,
|
|
1294
|
+
limit: int | None = None,
|
|
1295
|
+
idempotency_key: str | None = None,
|
|
1296
|
+
timeout: float | None = None,
|
|
1297
|
+
max_retries: int | None = None,
|
|
1298
|
+
) -> Envelope:
|
|
1299
|
+
"""Similar Companies.
|
|
1300
|
+
|
|
1301
|
+
Lookalike companies for a domain.
|
|
1302
|
+
|
|
1303
|
+
From $0.01 per search.
|
|
1304
|
+
Main fields: name, domain, similarity, industry.
|
|
1305
|
+
|
|
1306
|
+
Args:
|
|
1307
|
+
limit: Default: 10.
|
|
1308
|
+
"""
|
|
1309
|
+
return await self._client._invoke("company.similar", {"domain": domain, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1310
|
+
|
|
1311
|
+
async def website_metadata(
|
|
1312
|
+
self,
|
|
1313
|
+
*,
|
|
1314
|
+
url: str,
|
|
1315
|
+
idempotency_key: str | None = None,
|
|
1316
|
+
timeout: float | None = None,
|
|
1317
|
+
max_retries: int | None = None,
|
|
1318
|
+
) -> Envelope:
|
|
1319
|
+
"""Website Metadata.
|
|
1320
|
+
|
|
1321
|
+
Title, description, language, favicon, Open Graph and Twitter tags, and social profile links for a website.
|
|
1322
|
+
|
|
1323
|
+
From $0.001 per website.
|
|
1324
|
+
300 free requests on the free tier.
|
|
1325
|
+
Main fields: title, description, favicon_url, og, twitter, social_profiles.
|
|
1326
|
+
"""
|
|
1327
|
+
return await self._client._invoke("company.website_metadata", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
class Contacts(_Resource):
|
|
1331
|
+
"""client.contacts: 11 endpoints."""
|
|
1332
|
+
|
|
1333
|
+
def email(
|
|
1334
|
+
self,
|
|
1335
|
+
*,
|
|
1336
|
+
first_name: str,
|
|
1337
|
+
last_name: str,
|
|
1338
|
+
company: str,
|
|
1339
|
+
wait: bool = True,
|
|
1340
|
+
poll_interval: float | None = None,
|
|
1341
|
+
wait_timeout: float | None = None,
|
|
1342
|
+
idempotency_key: str | None = None,
|
|
1343
|
+
timeout: float | None = None,
|
|
1344
|
+
max_retries: int | None = None,
|
|
1345
|
+
) -> Envelope:
|
|
1346
|
+
"""Work Email Finder.
|
|
1347
|
+
|
|
1348
|
+
Find a work email from a name and company domain.
|
|
1349
|
+
|
|
1350
|
+
From $0.00975 per email found.
|
|
1351
|
+
20 free requests on the free tier.
|
|
1352
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
1353
|
+
Main fields: email, certainty, mx_provider, alternatives[].
|
|
1354
|
+
|
|
1355
|
+
Args:
|
|
1356
|
+
company: Company domain (preferred) or name.
|
|
1357
|
+
"""
|
|
1358
|
+
return self._client._invoke("contact.email", {"first_name": first_name, "last_name": last_name, "company": company}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1359
|
+
|
|
1360
|
+
def email_bulk(
|
|
1361
|
+
self,
|
|
1362
|
+
*,
|
|
1363
|
+
items: Sequence[ContactsEmailBulkItem],
|
|
1364
|
+
webhook_url: str | None = None,
|
|
1365
|
+
idempotency_key: str | None = None,
|
|
1366
|
+
timeout: float | None = None,
|
|
1367
|
+
max_retries: int | None = None,
|
|
1368
|
+
) -> Job:
|
|
1369
|
+
"""Bulk Email Finder.
|
|
1370
|
+
|
|
1371
|
+
Find work emails for up to 500 people in one job. You pay only for emails found.
|
|
1372
|
+
|
|
1373
|
+
From $0.00975 per email found.
|
|
1374
|
+
Runs as a job: returns 202 with a job_id, then poll GET /v1/jobs/{id}.
|
|
1375
|
+
Main fields: job_id, status, total, reserved_usd.
|
|
1376
|
+
"""
|
|
1377
|
+
return self._client._invoke("contact.email_bulk", {"items": items, "webhook_url": webhook_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1378
|
+
|
|
1379
|
+
def verify(
|
|
1380
|
+
self,
|
|
1381
|
+
*,
|
|
1382
|
+
email: str,
|
|
1383
|
+
wait: bool = True,
|
|
1384
|
+
poll_interval: float | None = None,
|
|
1385
|
+
wait_timeout: float | None = None,
|
|
1386
|
+
idempotency_key: str | None = None,
|
|
1387
|
+
timeout: float | None = None,
|
|
1388
|
+
max_retries: int | None = None,
|
|
1389
|
+
) -> Envelope:
|
|
1390
|
+
"""Email Verification.
|
|
1391
|
+
|
|
1392
|
+
Check whether an email will be delivered: deliverable, undeliverable or unknown.
|
|
1393
|
+
|
|
1394
|
+
From $0.00195 per verification.
|
|
1395
|
+
50 free requests on the free tier.
|
|
1396
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
1397
|
+
Main fields: email, result, certainty, mx_provider.
|
|
1398
|
+
"""
|
|
1399
|
+
return self._client._invoke("contact.verify", {"email": email}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1400
|
+
|
|
1401
|
+
def verify_bulk(
|
|
1402
|
+
self,
|
|
1403
|
+
*,
|
|
1404
|
+
emails: Sequence[str],
|
|
1405
|
+
webhook_url: str | None = None,
|
|
1406
|
+
idempotency_key: str | None = None,
|
|
1407
|
+
timeout: float | None = None,
|
|
1408
|
+
max_retries: int | None = None,
|
|
1409
|
+
) -> Job:
|
|
1410
|
+
"""Bulk Email Verification.
|
|
1411
|
+
|
|
1412
|
+
Verify up to 500 emails in one job.
|
|
1413
|
+
|
|
1414
|
+
From $0.00195 per verification.
|
|
1415
|
+
Runs as a job: returns 202 with a job_id, then poll GET /v1/jobs/{id}.
|
|
1416
|
+
Main fields: job_id, status, total, reserved_usd.
|
|
1417
|
+
"""
|
|
1418
|
+
return self._client._invoke("contact.verify_bulk", {"emails": emails, "webhook_url": webhook_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1419
|
+
|
|
1420
|
+
def reverse(
|
|
1421
|
+
self,
|
|
1422
|
+
*,
|
|
1423
|
+
email: str,
|
|
1424
|
+
idempotency_key: str | None = None,
|
|
1425
|
+
timeout: float | None = None,
|
|
1426
|
+
max_retries: int | None = None,
|
|
1427
|
+
) -> Envelope:
|
|
1428
|
+
"""Reverse Email Lookup.
|
|
1429
|
+
|
|
1430
|
+
The person and company behind an email address.
|
|
1431
|
+
|
|
1432
|
+
From $0.007 per matched profile.
|
|
1433
|
+
Main fields: full_name, title, company, linkedin_url.
|
|
1434
|
+
"""
|
|
1435
|
+
return self._client._invoke("contact.reverse", {"email": email}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1436
|
+
|
|
1437
|
+
def phone(
|
|
1438
|
+
self,
|
|
1439
|
+
*,
|
|
1440
|
+
email: str | None = None,
|
|
1441
|
+
url: str | None = None,
|
|
1442
|
+
idempotency_key: str | None = None,
|
|
1443
|
+
timeout: float | None = None,
|
|
1444
|
+
max_retries: int | None = None,
|
|
1445
|
+
) -> Envelope:
|
|
1446
|
+
"""Mobile Phone Finder.
|
|
1447
|
+
|
|
1448
|
+
A mobile number from a work email or a LinkedIn profile URL. You pay only when a number is found.
|
|
1449
|
+
|
|
1450
|
+
From $0.22 per phone found.
|
|
1451
|
+
Main fields: phone, alternatives[].
|
|
1452
|
+
"""
|
|
1453
|
+
return self._client._invoke("contact.phone", {"email": email, "url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1454
|
+
|
|
1455
|
+
def domain_emails(
|
|
1456
|
+
self,
|
|
1457
|
+
*,
|
|
1458
|
+
domain: str,
|
|
1459
|
+
idempotency_key: str | None = None,
|
|
1460
|
+
timeout: float | None = None,
|
|
1461
|
+
max_retries: int | None = None,
|
|
1462
|
+
) -> Envelope:
|
|
1463
|
+
"""Domain Email Discovery.
|
|
1464
|
+
|
|
1465
|
+
Email addresses published on a company website, each marked generic (like sales@) or personal.
|
|
1466
|
+
|
|
1467
|
+
From $0.005 per search.
|
|
1468
|
+
50 free requests on the free tier.
|
|
1469
|
+
Main fields: domain, emails[].
|
|
1470
|
+
"""
|
|
1471
|
+
return self._client._invoke("contact.domain_emails", {"domain": domain}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1472
|
+
|
|
1473
|
+
def linkedin_email(
|
|
1474
|
+
self,
|
|
1475
|
+
*,
|
|
1476
|
+
url: str,
|
|
1477
|
+
wait: bool = True,
|
|
1478
|
+
poll_interval: float | None = None,
|
|
1479
|
+
wait_timeout: float | None = None,
|
|
1480
|
+
idempotency_key: str | None = None,
|
|
1481
|
+
timeout: float | None = None,
|
|
1482
|
+
max_retries: int | None = None,
|
|
1483
|
+
) -> Envelope:
|
|
1484
|
+
"""LinkedIn to Work Email.
|
|
1485
|
+
|
|
1486
|
+
A work email from a LinkedIn profile URL.
|
|
1487
|
+
|
|
1488
|
+
From $0.012 per email found.
|
|
1489
|
+
20 free requests on the free tier.
|
|
1490
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
1491
|
+
Main fields: email, certainty, mx_provider, alternatives[].
|
|
1492
|
+
"""
|
|
1493
|
+
return self._client._invoke("contact.linkedin_email", {"url": url}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1494
|
+
|
|
1495
|
+
def waterfall(
|
|
1496
|
+
self,
|
|
1497
|
+
*,
|
|
1498
|
+
first_name: str,
|
|
1499
|
+
last_name: str,
|
|
1500
|
+
company: str,
|
|
1501
|
+
wait: bool = True,
|
|
1502
|
+
poll_interval: float | None = None,
|
|
1503
|
+
wait_timeout: float | None = None,
|
|
1504
|
+
idempotency_key: str | None = None,
|
|
1505
|
+
timeout: float | None = None,
|
|
1506
|
+
max_retries: int | None = None,
|
|
1507
|
+
) -> Envelope:
|
|
1508
|
+
"""Email Waterfall.
|
|
1509
|
+
|
|
1510
|
+
Tries several providers in order until an email is found.
|
|
1511
|
+
|
|
1512
|
+
From $0.02 per email found.
|
|
1513
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
1514
|
+
Main fields: email, certainty, mx_provider, alternatives[].
|
|
1515
|
+
|
|
1516
|
+
Args:
|
|
1517
|
+
company: Company domain (preferred) or name.
|
|
1518
|
+
"""
|
|
1519
|
+
return self._client._invoke("contact.waterfall", {"first_name": first_name, "last_name": last_name, "company": company}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1520
|
+
|
|
1521
|
+
def validate_syntax(
|
|
1522
|
+
self,
|
|
1523
|
+
*,
|
|
1524
|
+
email: str,
|
|
1525
|
+
idempotency_key: str | None = None,
|
|
1526
|
+
timeout: float | None = None,
|
|
1527
|
+
max_retries: int | None = None,
|
|
1528
|
+
) -> Envelope:
|
|
1529
|
+
"""Email Syntax Validation.
|
|
1530
|
+
|
|
1531
|
+
Check that an email address is well formed, and whether it is a role address or a free mail provider.
|
|
1532
|
+
|
|
1533
|
+
Free.
|
|
1534
|
+
Main fields: email, valid, reasons[], is_role, is_free_provider.
|
|
1535
|
+
"""
|
|
1536
|
+
return self._client._invoke("contact.validate_syntax", {"email": email}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1537
|
+
|
|
1538
|
+
def validate_mx(
|
|
1539
|
+
self,
|
|
1540
|
+
*,
|
|
1541
|
+
domain: str,
|
|
1542
|
+
idempotency_key: str | None = None,
|
|
1543
|
+
timeout: float | None = None,
|
|
1544
|
+
max_retries: int | None = None,
|
|
1545
|
+
) -> Envelope:
|
|
1546
|
+
"""MX Record Validation.
|
|
1547
|
+
|
|
1548
|
+
Check that a domain exists and can receive email, and which mail provider it uses.
|
|
1549
|
+
|
|
1550
|
+
Free.
|
|
1551
|
+
Main fields: domain, exists, has_mx, records[], provider.
|
|
1552
|
+
"""
|
|
1553
|
+
return self._client._invoke("contact.validate_mx", {"domain": domain}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
class AsyncContacts(_AsyncResource):
|
|
1557
|
+
"""client.contacts: 11 endpoints."""
|
|
1558
|
+
|
|
1559
|
+
async def email(
|
|
1560
|
+
self,
|
|
1561
|
+
*,
|
|
1562
|
+
first_name: str,
|
|
1563
|
+
last_name: str,
|
|
1564
|
+
company: str,
|
|
1565
|
+
wait: bool = True,
|
|
1566
|
+
poll_interval: float | None = None,
|
|
1567
|
+
wait_timeout: float | None = None,
|
|
1568
|
+
idempotency_key: str | None = None,
|
|
1569
|
+
timeout: float | None = None,
|
|
1570
|
+
max_retries: int | None = None,
|
|
1571
|
+
) -> Envelope:
|
|
1572
|
+
"""Work Email Finder.
|
|
1573
|
+
|
|
1574
|
+
Find a work email from a name and company domain.
|
|
1575
|
+
|
|
1576
|
+
From $0.00975 per email found.
|
|
1577
|
+
20 free requests on the free tier.
|
|
1578
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
1579
|
+
Main fields: email, certainty, mx_provider, alternatives[].
|
|
1580
|
+
|
|
1581
|
+
Args:
|
|
1582
|
+
company: Company domain (preferred) or name.
|
|
1583
|
+
"""
|
|
1584
|
+
return await self._client._invoke("contact.email", {"first_name": first_name, "last_name": last_name, "company": company}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1585
|
+
|
|
1586
|
+
async def email_bulk(
|
|
1587
|
+
self,
|
|
1588
|
+
*,
|
|
1589
|
+
items: Sequence[ContactsEmailBulkItem],
|
|
1590
|
+
webhook_url: str | None = None,
|
|
1591
|
+
idempotency_key: str | None = None,
|
|
1592
|
+
timeout: float | None = None,
|
|
1593
|
+
max_retries: int | None = None,
|
|
1594
|
+
) -> AsyncJob:
|
|
1595
|
+
"""Bulk Email Finder.
|
|
1596
|
+
|
|
1597
|
+
Find work emails for up to 500 people in one job. You pay only for emails found.
|
|
1598
|
+
|
|
1599
|
+
From $0.00975 per email found.
|
|
1600
|
+
Runs as a job: returns 202 with a job_id, then poll GET /v1/jobs/{id}.
|
|
1601
|
+
Main fields: job_id, status, total, reserved_usd.
|
|
1602
|
+
"""
|
|
1603
|
+
return await self._client._invoke("contact.email_bulk", {"items": items, "webhook_url": webhook_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1604
|
+
|
|
1605
|
+
async def verify(
|
|
1606
|
+
self,
|
|
1607
|
+
*,
|
|
1608
|
+
email: str,
|
|
1609
|
+
wait: bool = True,
|
|
1610
|
+
poll_interval: float | None = None,
|
|
1611
|
+
wait_timeout: float | None = None,
|
|
1612
|
+
idempotency_key: str | None = None,
|
|
1613
|
+
timeout: float | None = None,
|
|
1614
|
+
max_retries: int | None = None,
|
|
1615
|
+
) -> Envelope:
|
|
1616
|
+
"""Email Verification.
|
|
1617
|
+
|
|
1618
|
+
Check whether an email will be delivered: deliverable, undeliverable or unknown.
|
|
1619
|
+
|
|
1620
|
+
From $0.00195 per verification.
|
|
1621
|
+
50 free requests on the free tier.
|
|
1622
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
1623
|
+
Main fields: email, result, certainty, mx_provider.
|
|
1624
|
+
"""
|
|
1625
|
+
return await self._client._invoke("contact.verify", {"email": email}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1626
|
+
|
|
1627
|
+
async def verify_bulk(
|
|
1628
|
+
self,
|
|
1629
|
+
*,
|
|
1630
|
+
emails: Sequence[str],
|
|
1631
|
+
webhook_url: str | None = None,
|
|
1632
|
+
idempotency_key: str | None = None,
|
|
1633
|
+
timeout: float | None = None,
|
|
1634
|
+
max_retries: int | None = None,
|
|
1635
|
+
) -> AsyncJob:
|
|
1636
|
+
"""Bulk Email Verification.
|
|
1637
|
+
|
|
1638
|
+
Verify up to 500 emails in one job.
|
|
1639
|
+
|
|
1640
|
+
From $0.00195 per verification.
|
|
1641
|
+
Runs as a job: returns 202 with a job_id, then poll GET /v1/jobs/{id}.
|
|
1642
|
+
Main fields: job_id, status, total, reserved_usd.
|
|
1643
|
+
"""
|
|
1644
|
+
return await self._client._invoke("contact.verify_bulk", {"emails": emails, "webhook_url": webhook_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1645
|
+
|
|
1646
|
+
async def reverse(
|
|
1647
|
+
self,
|
|
1648
|
+
*,
|
|
1649
|
+
email: str,
|
|
1650
|
+
idempotency_key: str | None = None,
|
|
1651
|
+
timeout: float | None = None,
|
|
1652
|
+
max_retries: int | None = None,
|
|
1653
|
+
) -> Envelope:
|
|
1654
|
+
"""Reverse Email Lookup.
|
|
1655
|
+
|
|
1656
|
+
The person and company behind an email address.
|
|
1657
|
+
|
|
1658
|
+
From $0.007 per matched profile.
|
|
1659
|
+
Main fields: full_name, title, company, linkedin_url.
|
|
1660
|
+
"""
|
|
1661
|
+
return await self._client._invoke("contact.reverse", {"email": email}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1662
|
+
|
|
1663
|
+
async def phone(
|
|
1664
|
+
self,
|
|
1665
|
+
*,
|
|
1666
|
+
email: str | None = None,
|
|
1667
|
+
url: str | None = None,
|
|
1668
|
+
idempotency_key: str | None = None,
|
|
1669
|
+
timeout: float | None = None,
|
|
1670
|
+
max_retries: int | None = None,
|
|
1671
|
+
) -> Envelope:
|
|
1672
|
+
"""Mobile Phone Finder.
|
|
1673
|
+
|
|
1674
|
+
A mobile number from a work email or a LinkedIn profile URL. You pay only when a number is found.
|
|
1675
|
+
|
|
1676
|
+
From $0.22 per phone found.
|
|
1677
|
+
Main fields: phone, alternatives[].
|
|
1678
|
+
"""
|
|
1679
|
+
return await self._client._invoke("contact.phone", {"email": email, "url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1680
|
+
|
|
1681
|
+
async def domain_emails(
|
|
1682
|
+
self,
|
|
1683
|
+
*,
|
|
1684
|
+
domain: str,
|
|
1685
|
+
idempotency_key: str | None = None,
|
|
1686
|
+
timeout: float | None = None,
|
|
1687
|
+
max_retries: int | None = None,
|
|
1688
|
+
) -> Envelope:
|
|
1689
|
+
"""Domain Email Discovery.
|
|
1690
|
+
|
|
1691
|
+
Email addresses published on a company website, each marked generic (like sales@) or personal.
|
|
1692
|
+
|
|
1693
|
+
From $0.005 per search.
|
|
1694
|
+
50 free requests on the free tier.
|
|
1695
|
+
Main fields: domain, emails[].
|
|
1696
|
+
"""
|
|
1697
|
+
return await self._client._invoke("contact.domain_emails", {"domain": domain}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1698
|
+
|
|
1699
|
+
async def linkedin_email(
|
|
1700
|
+
self,
|
|
1701
|
+
*,
|
|
1702
|
+
url: str,
|
|
1703
|
+
wait: bool = True,
|
|
1704
|
+
poll_interval: float | None = None,
|
|
1705
|
+
wait_timeout: float | None = None,
|
|
1706
|
+
idempotency_key: str | None = None,
|
|
1707
|
+
timeout: float | None = None,
|
|
1708
|
+
max_retries: int | None = None,
|
|
1709
|
+
) -> Envelope:
|
|
1710
|
+
"""LinkedIn to Work Email.
|
|
1711
|
+
|
|
1712
|
+
A work email from a LinkedIn profile URL.
|
|
1713
|
+
|
|
1714
|
+
From $0.012 per email found.
|
|
1715
|
+
20 free requests on the free tier.
|
|
1716
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
1717
|
+
Main fields: email, certainty, mx_provider, alternatives[].
|
|
1718
|
+
"""
|
|
1719
|
+
return await self._client._invoke("contact.linkedin_email", {"url": url}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1720
|
+
|
|
1721
|
+
async def waterfall(
|
|
1722
|
+
self,
|
|
1723
|
+
*,
|
|
1724
|
+
first_name: str,
|
|
1725
|
+
last_name: str,
|
|
1726
|
+
company: str,
|
|
1727
|
+
wait: bool = True,
|
|
1728
|
+
poll_interval: float | None = None,
|
|
1729
|
+
wait_timeout: float | None = None,
|
|
1730
|
+
idempotency_key: str | None = None,
|
|
1731
|
+
timeout: float | None = None,
|
|
1732
|
+
max_retries: int | None = None,
|
|
1733
|
+
) -> Envelope:
|
|
1734
|
+
"""Email Waterfall.
|
|
1735
|
+
|
|
1736
|
+
Tries several providers in order until an email is found.
|
|
1737
|
+
|
|
1738
|
+
From $0.02 per email found.
|
|
1739
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
1740
|
+
Main fields: email, certainty, mx_provider, alternatives[].
|
|
1741
|
+
|
|
1742
|
+
Args:
|
|
1743
|
+
company: Company domain (preferred) or name.
|
|
1744
|
+
"""
|
|
1745
|
+
return await self._client._invoke("contact.waterfall", {"first_name": first_name, "last_name": last_name, "company": company}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1746
|
+
|
|
1747
|
+
async def validate_syntax(
|
|
1748
|
+
self,
|
|
1749
|
+
*,
|
|
1750
|
+
email: str,
|
|
1751
|
+
idempotency_key: str | None = None,
|
|
1752
|
+
timeout: float | None = None,
|
|
1753
|
+
max_retries: int | None = None,
|
|
1754
|
+
) -> Envelope:
|
|
1755
|
+
"""Email Syntax Validation.
|
|
1756
|
+
|
|
1757
|
+
Check that an email address is well formed, and whether it is a role address or a free mail provider.
|
|
1758
|
+
|
|
1759
|
+
Free.
|
|
1760
|
+
Main fields: email, valid, reasons[], is_role, is_free_provider.
|
|
1761
|
+
"""
|
|
1762
|
+
return await self._client._invoke("contact.validate_syntax", {"email": email}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1763
|
+
|
|
1764
|
+
async def validate_mx(
|
|
1765
|
+
self,
|
|
1766
|
+
*,
|
|
1767
|
+
domain: str,
|
|
1768
|
+
idempotency_key: str | None = None,
|
|
1769
|
+
timeout: float | None = None,
|
|
1770
|
+
max_retries: int | None = None,
|
|
1771
|
+
) -> Envelope:
|
|
1772
|
+
"""MX Record Validation.
|
|
1773
|
+
|
|
1774
|
+
Check that a domain exists and can receive email, and which mail provider it uses.
|
|
1775
|
+
|
|
1776
|
+
Free.
|
|
1777
|
+
Main fields: domain, exists, has_mx, records[], provider.
|
|
1778
|
+
"""
|
|
1779
|
+
return await self._client._invoke("contact.validate_mx", {"domain": domain}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
class Signals(_Resource):
|
|
1783
|
+
"""client.signals: 13 endpoints."""
|
|
1784
|
+
|
|
1785
|
+
def jobs_search(
|
|
1786
|
+
self,
|
|
1787
|
+
*,
|
|
1788
|
+
query: str,
|
|
1789
|
+
location: str | None = None,
|
|
1790
|
+
date_posted: Literal["last-24-hours", "last-week"] | None = None,
|
|
1791
|
+
limit: int | None = None,
|
|
1792
|
+
detail: Literal["thin", "full"] | None = None,
|
|
1793
|
+
company_id: str | None = None,
|
|
1794
|
+
cursor: str | None = None,
|
|
1795
|
+
idempotency_key: str | None = None,
|
|
1796
|
+
timeout: float | None = None,
|
|
1797
|
+
max_retries: int | None = None,
|
|
1798
|
+
) -> Envelope:
|
|
1799
|
+
"""Job Search.
|
|
1800
|
+
|
|
1801
|
+
Open job posts by keywords, location, date and company. Priced per job: from $0.00012, or $0.00057 with description and salary.
|
|
1802
|
+
|
|
1803
|
+
From $0.00012 per job. Full detail: $0.00057 per job.
|
|
1804
|
+
50 free requests on the free tier.
|
|
1805
|
+
Main fields: id, title, company, location, posted_at, url.
|
|
1806
|
+
|
|
1807
|
+
Args:
|
|
1808
|
+
limit: Default: 25.
|
|
1809
|
+
detail: thin: title, company, location, date, link. full: adds description, salary, seniority, applicants. Priced per job. Default: "thin".
|
|
1810
|
+
"""
|
|
1811
|
+
return self._client._invoke("signals.jobs_search", {"query": query, "location": location, "date_posted": date_posted, "limit": limit, "detail": detail, "company_id": company_id, "cursor": cursor}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1812
|
+
|
|
1813
|
+
def iter_jobs_search(
|
|
1814
|
+
self,
|
|
1815
|
+
*,
|
|
1816
|
+
query: str,
|
|
1817
|
+
location: str | None = None,
|
|
1818
|
+
date_posted: Literal["last-24-hours", "last-week"] | None = None,
|
|
1819
|
+
limit: int | None = None,
|
|
1820
|
+
detail: Literal["thin", "full"] | None = None,
|
|
1821
|
+
company_id: str | None = None,
|
|
1822
|
+
cursor: str | None = None,
|
|
1823
|
+
max_items: int | None = None,
|
|
1824
|
+
max_pages: int | None = None,
|
|
1825
|
+
timeout: float | None = None,
|
|
1826
|
+
max_retries: int | None = None,
|
|
1827
|
+
) -> Iterator[dict[str, Any]]:
|
|
1828
|
+
"""Every item of job search across pages. Each page is a billed request, so set max_items."""
|
|
1829
|
+
return self._client._paginate("signals.jobs_search", {"query": query, "location": location, "date_posted": date_posted, "limit": limit, "detail": detail, "company_id": company_id, "cursor": cursor}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
1830
|
+
|
|
1831
|
+
def job(
|
|
1832
|
+
self,
|
|
1833
|
+
*,
|
|
1834
|
+
url: str,
|
|
1835
|
+
idempotency_key: str | None = None,
|
|
1836
|
+
timeout: float | None = None,
|
|
1837
|
+
max_retries: int | None = None,
|
|
1838
|
+
) -> Envelope:
|
|
1839
|
+
"""Job Details.
|
|
1840
|
+
|
|
1841
|
+
A full job posting by URL: description, salary, seniority, type and applicants.
|
|
1842
|
+
|
|
1843
|
+
From $0.00024 per job.
|
|
1844
|
+
50 free requests on the free tier.
|
|
1845
|
+
Main fields: title, company, description, salary, seniority, posted_at.
|
|
1846
|
+
"""
|
|
1847
|
+
return self._client._invoke("signals.job", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1848
|
+
|
|
1849
|
+
def hiring(
|
|
1850
|
+
self,
|
|
1851
|
+
*,
|
|
1852
|
+
company_id: str,
|
|
1853
|
+
query: str | None = None,
|
|
1854
|
+
date_posted: Literal["last-24-hours", "last-week"] | None = None,
|
|
1855
|
+
limit: int | None = None,
|
|
1856
|
+
detail: Literal["thin", "full"] | None = None,
|
|
1857
|
+
idempotency_key: str | None = None,
|
|
1858
|
+
timeout: float | None = None,
|
|
1859
|
+
max_retries: int | None = None,
|
|
1860
|
+
) -> Envelope:
|
|
1861
|
+
"""Company Hiring Activity.
|
|
1862
|
+
|
|
1863
|
+
What one company is hiring for right now, from its open job posts. Priced per job: from $0.00012, or $0.00057 with description and salary.
|
|
1864
|
+
|
|
1865
|
+
From $0.00012 per job. Full detail: $0.00057 per job.
|
|
1866
|
+
50 free requests on the free tier.
|
|
1867
|
+
Main fields: company_id, open_jobs_sampled, has_more, jobs[].
|
|
1868
|
+
|
|
1869
|
+
Args:
|
|
1870
|
+
query: Default: "*".
|
|
1871
|
+
limit: Default: 25.
|
|
1872
|
+
detail: thin: title, company, location, date, link. full: adds description, salary, seniority, applicants. Priced per job. Default: "thin".
|
|
1873
|
+
"""
|
|
1874
|
+
return self._client._invoke("signals.hiring", {"company_id": company_id, "query": query, "date_posted": date_posted, "limit": limit, "detail": detail}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1875
|
+
|
|
1876
|
+
def job_changes(
|
|
1877
|
+
self,
|
|
1878
|
+
*,
|
|
1879
|
+
url: str,
|
|
1880
|
+
previous: SignalsJobChangesPrevious | None = None,
|
|
1881
|
+
idempotency_key: str | None = None,
|
|
1882
|
+
timeout: float | None = None,
|
|
1883
|
+
max_retries: int | None = None,
|
|
1884
|
+
) -> Envelope:
|
|
1885
|
+
"""Job Change Detector.
|
|
1886
|
+
|
|
1887
|
+
Whether a contact has moved to a new company or a new title.
|
|
1888
|
+
|
|
1889
|
+
From $0.005 per check.
|
|
1890
|
+
Main fields: full_name, changed, change_type, old_company, new_company, new_title, changed_at.
|
|
1891
|
+
|
|
1892
|
+
Args:
|
|
1893
|
+
previous: What you last knew. Without it the last check for this profile on your account is the baseline; the first check only records one.
|
|
1894
|
+
"""
|
|
1895
|
+
return self._client._invoke("signals.job_changes", {"url": url, "previous": previous}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1896
|
+
|
|
1897
|
+
def funding(
|
|
1898
|
+
self,
|
|
1899
|
+
*,
|
|
1900
|
+
domain: str,
|
|
1901
|
+
company: str | None = None,
|
|
1902
|
+
idempotency_key: str | None = None,
|
|
1903
|
+
timeout: float | None = None,
|
|
1904
|
+
max_retries: int | None = None,
|
|
1905
|
+
) -> Envelope:
|
|
1906
|
+
"""Funding Lookup.
|
|
1907
|
+
|
|
1908
|
+
The latest funding round for a company, with the news it was found in.
|
|
1909
|
+
|
|
1910
|
+
From $0.005 per company.
|
|
1911
|
+
Main fields: last_round, amount, announced_at, investors[], confidence.
|
|
1912
|
+
|
|
1913
|
+
Args:
|
|
1914
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
1915
|
+
"""
|
|
1916
|
+
return self._client._invoke("signals.funding", {"domain": domain, "company": company}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1917
|
+
|
|
1918
|
+
def funding_recent(
|
|
1919
|
+
self,
|
|
1920
|
+
*,
|
|
1921
|
+
query: str,
|
|
1922
|
+
days: int | None = None,
|
|
1923
|
+
limit: int | None = None,
|
|
1924
|
+
idempotency_key: str | None = None,
|
|
1925
|
+
timeout: float | None = None,
|
|
1926
|
+
max_retries: int | None = None,
|
|
1927
|
+
) -> Envelope:
|
|
1928
|
+
"""Recent Funding Events.
|
|
1929
|
+
|
|
1930
|
+
Funding rounds announced recently in a market you describe.
|
|
1931
|
+
|
|
1932
|
+
From $0.005 per search.
|
|
1933
|
+
Main fields: query, results[].
|
|
1934
|
+
|
|
1935
|
+
Args:
|
|
1936
|
+
query: Market or industry, like "AI scheduling" or "fintech London".
|
|
1937
|
+
days: Look back this many days. Default: 30.
|
|
1938
|
+
limit: One results page holds up to 10. Default: 10.
|
|
1939
|
+
"""
|
|
1940
|
+
return self._client._invoke("signals.funding_recent", {"query": query, "days": days, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1941
|
+
|
|
1942
|
+
def leadership(
|
|
1943
|
+
self,
|
|
1944
|
+
*,
|
|
1945
|
+
domain: str,
|
|
1946
|
+
company: str | None = None,
|
|
1947
|
+
days: int | None = None,
|
|
1948
|
+
idempotency_key: str | None = None,
|
|
1949
|
+
timeout: float | None = None,
|
|
1950
|
+
max_retries: int | None = None,
|
|
1951
|
+
) -> Envelope:
|
|
1952
|
+
"""Leadership Changes.
|
|
1953
|
+
|
|
1954
|
+
Executives who joined or left a company recently, from public news.
|
|
1955
|
+
|
|
1956
|
+
From $0.005 per check.
|
|
1957
|
+
Main fields: changes[], confidence, evidence[].
|
|
1958
|
+
|
|
1959
|
+
Args:
|
|
1960
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
1961
|
+
days: Look back this many days. Default: 180.
|
|
1962
|
+
"""
|
|
1963
|
+
return self._client._invoke("signals.leadership", {"domain": domain, "company": company, "days": days}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1964
|
+
|
|
1965
|
+
def news(
|
|
1966
|
+
self,
|
|
1967
|
+
*,
|
|
1968
|
+
domain: str,
|
|
1969
|
+
company: str | None = None,
|
|
1970
|
+
days: int | None = None,
|
|
1971
|
+
limit: int | None = None,
|
|
1972
|
+
idempotency_key: str | None = None,
|
|
1973
|
+
timeout: float | None = None,
|
|
1974
|
+
max_retries: int | None = None,
|
|
1975
|
+
) -> Envelope:
|
|
1976
|
+
"""Company News.
|
|
1977
|
+
|
|
1978
|
+
Recent news articles that mention a company.
|
|
1979
|
+
|
|
1980
|
+
From $0.00083 per search.
|
|
1981
|
+
Main fields: results[], title, url, source, published_at.
|
|
1982
|
+
|
|
1983
|
+
Args:
|
|
1984
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
1985
|
+
days: Look back this many days. Default: 30.
|
|
1986
|
+
limit: One results page holds up to 10. Default: 10.
|
|
1987
|
+
"""
|
|
1988
|
+
return self._client._invoke("signals.news", {"domain": domain, "company": company, "days": days, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
1989
|
+
|
|
1990
|
+
def website_changes(
|
|
1991
|
+
self,
|
|
1992
|
+
*,
|
|
1993
|
+
url: str,
|
|
1994
|
+
idempotency_key: str | None = None,
|
|
1995
|
+
timeout: float | None = None,
|
|
1996
|
+
max_retries: int | None = None,
|
|
1997
|
+
) -> Envelope:
|
|
1998
|
+
"""Website Change Detection.
|
|
1999
|
+
|
|
2000
|
+
What changed on a page since the last check.
|
|
2001
|
+
|
|
2002
|
+
From $0.005 per check.
|
|
2003
|
+
Main fields: url, changed, diff, detected_at.
|
|
2004
|
+
"""
|
|
2005
|
+
return self._client._invoke("signals.website_changes", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2006
|
+
|
|
2007
|
+
def custom(
|
|
2008
|
+
self,
|
|
2009
|
+
*,
|
|
2010
|
+
domain: str,
|
|
2011
|
+
company: str | None = None,
|
|
2012
|
+
signal: str,
|
|
2013
|
+
days: int | None = None,
|
|
2014
|
+
idempotency_key: str | None = None,
|
|
2015
|
+
timeout: float | None = None,
|
|
2016
|
+
max_retries: int | None = None,
|
|
2017
|
+
) -> Envelope:
|
|
2018
|
+
"""Custom Buying Signals.
|
|
2019
|
+
|
|
2020
|
+
Your own signal definition, checked against an account.
|
|
2021
|
+
|
|
2022
|
+
From $0.005 per check.
|
|
2023
|
+
Main fields: company, signal, matched, evidence.
|
|
2024
|
+
|
|
2025
|
+
Args:
|
|
2026
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
2027
|
+
signal: The buying signal to look for, in plain words, like "is migrating off Salesforce".
|
|
2028
|
+
days: Look back this many days. Default: 90.
|
|
2029
|
+
"""
|
|
2030
|
+
return self._client._invoke("signals.custom", {"domain": domain, "company": company, "signal": signal, "days": days}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2031
|
+
|
|
2032
|
+
def linkedin_posts_search(
|
|
2033
|
+
self,
|
|
2034
|
+
*,
|
|
2035
|
+
query: str,
|
|
2036
|
+
date_posted: Literal["past-24h", "past-week", "past-month"] | None = None,
|
|
2037
|
+
sort: Literal["date", "relevance"] | None = None,
|
|
2038
|
+
limit: int | None = None,
|
|
2039
|
+
idempotency_key: str | None = None,
|
|
2040
|
+
timeout: float | None = None,
|
|
2041
|
+
max_retries: int | None = None,
|
|
2042
|
+
) -> Envelope:
|
|
2043
|
+
"""LinkedIn Post Search.
|
|
2044
|
+
|
|
2045
|
+
Recent LinkedIn posts that match your keywords, with the author and engagement counts. Finds people talking about a problem you solve.
|
|
2046
|
+
|
|
2047
|
+
From $0.001 per post.
|
|
2048
|
+
20 free requests on the free tier.
|
|
2049
|
+
Main fields: query, results[], author, posted_at, stats.
|
|
2050
|
+
|
|
2051
|
+
Args:
|
|
2052
|
+
query: Keywords, like `sales automation`. Supports AND, OR and "quoted phrases".
|
|
2053
|
+
date_posted: Default: "past-week".
|
|
2054
|
+
sort: date: newest first. relevance: best match first, often more results. Default: "date".
|
|
2055
|
+
limit: Default: 25.
|
|
2056
|
+
"""
|
|
2057
|
+
return self._client._invoke("signals.linkedin_posts_search", {"query": query, "date_posted": date_posted, "sort": sort, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2058
|
+
|
|
2059
|
+
def linkedin_posts(
|
|
2060
|
+
self,
|
|
2061
|
+
*,
|
|
2062
|
+
url: str,
|
|
2063
|
+
limit: int | None = None,
|
|
2064
|
+
idempotency_key: str | None = None,
|
|
2065
|
+
timeout: float | None = None,
|
|
2066
|
+
max_retries: int | None = None,
|
|
2067
|
+
) -> Envelope:
|
|
2068
|
+
"""LinkedIn Posts by Profile or Company.
|
|
2069
|
+
|
|
2070
|
+
The latest posts from a LinkedIn profile or company page.
|
|
2071
|
+
|
|
2072
|
+
From $0.0007 per post.
|
|
2073
|
+
20 free requests on the free tier.
|
|
2074
|
+
Main fields: url, results[], text, posted_at, stats.
|
|
2075
|
+
|
|
2076
|
+
Args:
|
|
2077
|
+
url: LinkedIn profile or company page URL.
|
|
2078
|
+
limit: Default: 10.
|
|
2079
|
+
"""
|
|
2080
|
+
return self._client._invoke("signals.linkedin_posts", {"url": url, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2081
|
+
|
|
2082
|
+
def linkedin_post_engagers(
|
|
2083
|
+
self,
|
|
2084
|
+
*,
|
|
2085
|
+
url: str,
|
|
2086
|
+
type: Literal["all", "reactions", "comments"] | None = None,
|
|
2087
|
+
limit: int | None = None,
|
|
2088
|
+
idempotency_key: str | None = None,
|
|
2089
|
+
timeout: float | None = None,
|
|
2090
|
+
max_retries: int | None = None,
|
|
2091
|
+
) -> Envelope:
|
|
2092
|
+
"""LinkedIn Post Engagers.
|
|
2093
|
+
|
|
2094
|
+
People who commented on or reacted to a LinkedIn post, like a competitor's launch. Comments first.
|
|
2095
|
+
|
|
2096
|
+
From $0.003 per engager.
|
|
2097
|
+
Main fields: url, results[], name, headline, linkedin_url, engagement.
|
|
2098
|
+
|
|
2099
|
+
Args:
|
|
2100
|
+
type: all: comments first (stronger intent), then reactions. Default: "all".
|
|
2101
|
+
limit: Default: 25.
|
|
2102
|
+
"""
|
|
2103
|
+
return self._client._invoke("signals.linkedin_post_engagers", {"url": url, "type": type, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
class AsyncSignals(_AsyncResource):
|
|
2107
|
+
"""client.signals: 13 endpoints."""
|
|
2108
|
+
|
|
2109
|
+
async def jobs_search(
|
|
2110
|
+
self,
|
|
2111
|
+
*,
|
|
2112
|
+
query: str,
|
|
2113
|
+
location: str | None = None,
|
|
2114
|
+
date_posted: Literal["last-24-hours", "last-week"] | None = None,
|
|
2115
|
+
limit: int | None = None,
|
|
2116
|
+
detail: Literal["thin", "full"] | None = None,
|
|
2117
|
+
company_id: str | None = None,
|
|
2118
|
+
cursor: str | None = None,
|
|
2119
|
+
idempotency_key: str | None = None,
|
|
2120
|
+
timeout: float | None = None,
|
|
2121
|
+
max_retries: int | None = None,
|
|
2122
|
+
) -> Envelope:
|
|
2123
|
+
"""Job Search.
|
|
2124
|
+
|
|
2125
|
+
Open job posts by keywords, location, date and company. Priced per job: from $0.00012, or $0.00057 with description and salary.
|
|
2126
|
+
|
|
2127
|
+
From $0.00012 per job. Full detail: $0.00057 per job.
|
|
2128
|
+
50 free requests on the free tier.
|
|
2129
|
+
Main fields: id, title, company, location, posted_at, url.
|
|
2130
|
+
|
|
2131
|
+
Args:
|
|
2132
|
+
limit: Default: 25.
|
|
2133
|
+
detail: thin: title, company, location, date, link. full: adds description, salary, seniority, applicants. Priced per job. Default: "thin".
|
|
2134
|
+
"""
|
|
2135
|
+
return await self._client._invoke("signals.jobs_search", {"query": query, "location": location, "date_posted": date_posted, "limit": limit, "detail": detail, "company_id": company_id, "cursor": cursor}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2136
|
+
|
|
2137
|
+
def iter_jobs_search(
|
|
2138
|
+
self,
|
|
2139
|
+
*,
|
|
2140
|
+
query: str,
|
|
2141
|
+
location: str | None = None,
|
|
2142
|
+
date_posted: Literal["last-24-hours", "last-week"] | None = None,
|
|
2143
|
+
limit: int | None = None,
|
|
2144
|
+
detail: Literal["thin", "full"] | None = None,
|
|
2145
|
+
company_id: str | None = None,
|
|
2146
|
+
cursor: str | None = None,
|
|
2147
|
+
max_items: int | None = None,
|
|
2148
|
+
max_pages: int | None = None,
|
|
2149
|
+
timeout: float | None = None,
|
|
2150
|
+
max_retries: int | None = None,
|
|
2151
|
+
) -> AsyncIterator[dict[str, Any]]:
|
|
2152
|
+
"""Every item of job search across pages. Each page is a billed request, so set max_items."""
|
|
2153
|
+
return self._client._paginate("signals.jobs_search", {"query": query, "location": location, "date_posted": date_posted, "limit": limit, "detail": detail, "company_id": company_id, "cursor": cursor}, max_items=max_items, max_pages=max_pages, timeout=timeout, max_retries=max_retries)
|
|
2154
|
+
|
|
2155
|
+
async def job(
|
|
2156
|
+
self,
|
|
2157
|
+
*,
|
|
2158
|
+
url: str,
|
|
2159
|
+
idempotency_key: str | None = None,
|
|
2160
|
+
timeout: float | None = None,
|
|
2161
|
+
max_retries: int | None = None,
|
|
2162
|
+
) -> Envelope:
|
|
2163
|
+
"""Job Details.
|
|
2164
|
+
|
|
2165
|
+
A full job posting by URL: description, salary, seniority, type and applicants.
|
|
2166
|
+
|
|
2167
|
+
From $0.00024 per job.
|
|
2168
|
+
50 free requests on the free tier.
|
|
2169
|
+
Main fields: title, company, description, salary, seniority, posted_at.
|
|
2170
|
+
"""
|
|
2171
|
+
return await self._client._invoke("signals.job", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2172
|
+
|
|
2173
|
+
async def hiring(
|
|
2174
|
+
self,
|
|
2175
|
+
*,
|
|
2176
|
+
company_id: str,
|
|
2177
|
+
query: str | None = None,
|
|
2178
|
+
date_posted: Literal["last-24-hours", "last-week"] | None = None,
|
|
2179
|
+
limit: int | None = None,
|
|
2180
|
+
detail: Literal["thin", "full"] | None = None,
|
|
2181
|
+
idempotency_key: str | None = None,
|
|
2182
|
+
timeout: float | None = None,
|
|
2183
|
+
max_retries: int | None = None,
|
|
2184
|
+
) -> Envelope:
|
|
2185
|
+
"""Company Hiring Activity.
|
|
2186
|
+
|
|
2187
|
+
What one company is hiring for right now, from its open job posts. Priced per job: from $0.00012, or $0.00057 with description and salary.
|
|
2188
|
+
|
|
2189
|
+
From $0.00012 per job. Full detail: $0.00057 per job.
|
|
2190
|
+
50 free requests on the free tier.
|
|
2191
|
+
Main fields: company_id, open_jobs_sampled, has_more, jobs[].
|
|
2192
|
+
|
|
2193
|
+
Args:
|
|
2194
|
+
query: Default: "*".
|
|
2195
|
+
limit: Default: 25.
|
|
2196
|
+
detail: thin: title, company, location, date, link. full: adds description, salary, seniority, applicants. Priced per job. Default: "thin".
|
|
2197
|
+
"""
|
|
2198
|
+
return await self._client._invoke("signals.hiring", {"company_id": company_id, "query": query, "date_posted": date_posted, "limit": limit, "detail": detail}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2199
|
+
|
|
2200
|
+
async def job_changes(
|
|
2201
|
+
self,
|
|
2202
|
+
*,
|
|
2203
|
+
url: str,
|
|
2204
|
+
previous: SignalsJobChangesPrevious | None = None,
|
|
2205
|
+
idempotency_key: str | None = None,
|
|
2206
|
+
timeout: float | None = None,
|
|
2207
|
+
max_retries: int | None = None,
|
|
2208
|
+
) -> Envelope:
|
|
2209
|
+
"""Job Change Detector.
|
|
2210
|
+
|
|
2211
|
+
Whether a contact has moved to a new company or a new title.
|
|
2212
|
+
|
|
2213
|
+
From $0.005 per check.
|
|
2214
|
+
Main fields: full_name, changed, change_type, old_company, new_company, new_title, changed_at.
|
|
2215
|
+
|
|
2216
|
+
Args:
|
|
2217
|
+
previous: What you last knew. Without it the last check for this profile on your account is the baseline; the first check only records one.
|
|
2218
|
+
"""
|
|
2219
|
+
return await self._client._invoke("signals.job_changes", {"url": url, "previous": previous}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2220
|
+
|
|
2221
|
+
async def funding(
|
|
2222
|
+
self,
|
|
2223
|
+
*,
|
|
2224
|
+
domain: str,
|
|
2225
|
+
company: str | None = None,
|
|
2226
|
+
idempotency_key: str | None = None,
|
|
2227
|
+
timeout: float | None = None,
|
|
2228
|
+
max_retries: int | None = None,
|
|
2229
|
+
) -> Envelope:
|
|
2230
|
+
"""Funding Lookup.
|
|
2231
|
+
|
|
2232
|
+
The latest funding round for a company, with the news it was found in.
|
|
2233
|
+
|
|
2234
|
+
From $0.005 per company.
|
|
2235
|
+
Main fields: last_round, amount, announced_at, investors[], confidence.
|
|
2236
|
+
|
|
2237
|
+
Args:
|
|
2238
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
2239
|
+
"""
|
|
2240
|
+
return await self._client._invoke("signals.funding", {"domain": domain, "company": company}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2241
|
+
|
|
2242
|
+
async def funding_recent(
|
|
2243
|
+
self,
|
|
2244
|
+
*,
|
|
2245
|
+
query: str,
|
|
2246
|
+
days: int | None = None,
|
|
2247
|
+
limit: int | None = None,
|
|
2248
|
+
idempotency_key: str | None = None,
|
|
2249
|
+
timeout: float | None = None,
|
|
2250
|
+
max_retries: int | None = None,
|
|
2251
|
+
) -> Envelope:
|
|
2252
|
+
"""Recent Funding Events.
|
|
2253
|
+
|
|
2254
|
+
Funding rounds announced recently in a market you describe.
|
|
2255
|
+
|
|
2256
|
+
From $0.005 per search.
|
|
2257
|
+
Main fields: query, results[].
|
|
2258
|
+
|
|
2259
|
+
Args:
|
|
2260
|
+
query: Market or industry, like "AI scheduling" or "fintech London".
|
|
2261
|
+
days: Look back this many days. Default: 30.
|
|
2262
|
+
limit: One results page holds up to 10. Default: 10.
|
|
2263
|
+
"""
|
|
2264
|
+
return await self._client._invoke("signals.funding_recent", {"query": query, "days": days, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2265
|
+
|
|
2266
|
+
async def leadership(
|
|
2267
|
+
self,
|
|
2268
|
+
*,
|
|
2269
|
+
domain: str,
|
|
2270
|
+
company: str | None = None,
|
|
2271
|
+
days: int | None = None,
|
|
2272
|
+
idempotency_key: str | None = None,
|
|
2273
|
+
timeout: float | None = None,
|
|
2274
|
+
max_retries: int | None = None,
|
|
2275
|
+
) -> Envelope:
|
|
2276
|
+
"""Leadership Changes.
|
|
2277
|
+
|
|
2278
|
+
Executives who joined or left a company recently, from public news.
|
|
2279
|
+
|
|
2280
|
+
From $0.005 per check.
|
|
2281
|
+
Main fields: changes[], confidence, evidence[].
|
|
2282
|
+
|
|
2283
|
+
Args:
|
|
2284
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
2285
|
+
days: Look back this many days. Default: 180.
|
|
2286
|
+
"""
|
|
2287
|
+
return await self._client._invoke("signals.leadership", {"domain": domain, "company": company, "days": days}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2288
|
+
|
|
2289
|
+
async def news(
|
|
2290
|
+
self,
|
|
2291
|
+
*,
|
|
2292
|
+
domain: str,
|
|
2293
|
+
company: str | None = None,
|
|
2294
|
+
days: int | None = None,
|
|
2295
|
+
limit: int | None = None,
|
|
2296
|
+
idempotency_key: str | None = None,
|
|
2297
|
+
timeout: float | None = None,
|
|
2298
|
+
max_retries: int | None = None,
|
|
2299
|
+
) -> Envelope:
|
|
2300
|
+
"""Company News.
|
|
2301
|
+
|
|
2302
|
+
Recent news articles that mention a company.
|
|
2303
|
+
|
|
2304
|
+
From $0.00083 per search.
|
|
2305
|
+
Main fields: results[], title, url, source, published_at.
|
|
2306
|
+
|
|
2307
|
+
Args:
|
|
2308
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
2309
|
+
days: Look back this many days. Default: 30.
|
|
2310
|
+
limit: One results page holds up to 10. Default: 10.
|
|
2311
|
+
"""
|
|
2312
|
+
return await self._client._invoke("signals.news", {"domain": domain, "company": company, "days": days, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2313
|
+
|
|
2314
|
+
async def website_changes(
|
|
2315
|
+
self,
|
|
2316
|
+
*,
|
|
2317
|
+
url: str,
|
|
2318
|
+
idempotency_key: str | None = None,
|
|
2319
|
+
timeout: float | None = None,
|
|
2320
|
+
max_retries: int | None = None,
|
|
2321
|
+
) -> Envelope:
|
|
2322
|
+
"""Website Change Detection.
|
|
2323
|
+
|
|
2324
|
+
What changed on a page since the last check.
|
|
2325
|
+
|
|
2326
|
+
From $0.005 per check.
|
|
2327
|
+
Main fields: url, changed, diff, detected_at.
|
|
2328
|
+
"""
|
|
2329
|
+
return await self._client._invoke("signals.website_changes", {"url": url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2330
|
+
|
|
2331
|
+
async def custom(
|
|
2332
|
+
self,
|
|
2333
|
+
*,
|
|
2334
|
+
domain: str,
|
|
2335
|
+
company: str | None = None,
|
|
2336
|
+
signal: str,
|
|
2337
|
+
days: int | None = None,
|
|
2338
|
+
idempotency_key: str | None = None,
|
|
2339
|
+
timeout: float | None = None,
|
|
2340
|
+
max_retries: int | None = None,
|
|
2341
|
+
) -> Envelope:
|
|
2342
|
+
"""Custom Buying Signals.
|
|
2343
|
+
|
|
2344
|
+
Your own signal definition, checked against an account.
|
|
2345
|
+
|
|
2346
|
+
From $0.005 per check.
|
|
2347
|
+
Main fields: company, signal, matched, evidence.
|
|
2348
|
+
|
|
2349
|
+
Args:
|
|
2350
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
2351
|
+
signal: The buying signal to look for, in plain words, like "is migrating off Salesforce".
|
|
2352
|
+
days: Look back this many days. Default: 90.
|
|
2353
|
+
"""
|
|
2354
|
+
return await self._client._invoke("signals.custom", {"domain": domain, "company": company, "signal": signal, "days": days}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2355
|
+
|
|
2356
|
+
async def linkedin_posts_search(
|
|
2357
|
+
self,
|
|
2358
|
+
*,
|
|
2359
|
+
query: str,
|
|
2360
|
+
date_posted: Literal["past-24h", "past-week", "past-month"] | None = None,
|
|
2361
|
+
sort: Literal["date", "relevance"] | None = None,
|
|
2362
|
+
limit: int | None = None,
|
|
2363
|
+
idempotency_key: str | None = None,
|
|
2364
|
+
timeout: float | None = None,
|
|
2365
|
+
max_retries: int | None = None,
|
|
2366
|
+
) -> Envelope:
|
|
2367
|
+
"""LinkedIn Post Search.
|
|
2368
|
+
|
|
2369
|
+
Recent LinkedIn posts that match your keywords, with the author and engagement counts. Finds people talking about a problem you solve.
|
|
2370
|
+
|
|
2371
|
+
From $0.001 per post.
|
|
2372
|
+
20 free requests on the free tier.
|
|
2373
|
+
Main fields: query, results[], author, posted_at, stats.
|
|
2374
|
+
|
|
2375
|
+
Args:
|
|
2376
|
+
query: Keywords, like `sales automation`. Supports AND, OR and "quoted phrases".
|
|
2377
|
+
date_posted: Default: "past-week".
|
|
2378
|
+
sort: date: newest first. relevance: best match first, often more results. Default: "date".
|
|
2379
|
+
limit: Default: 25.
|
|
2380
|
+
"""
|
|
2381
|
+
return await self._client._invoke("signals.linkedin_posts_search", {"query": query, "date_posted": date_posted, "sort": sort, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2382
|
+
|
|
2383
|
+
async def linkedin_posts(
|
|
2384
|
+
self,
|
|
2385
|
+
*,
|
|
2386
|
+
url: str,
|
|
2387
|
+
limit: int | None = None,
|
|
2388
|
+
idempotency_key: str | None = None,
|
|
2389
|
+
timeout: float | None = None,
|
|
2390
|
+
max_retries: int | None = None,
|
|
2391
|
+
) -> Envelope:
|
|
2392
|
+
"""LinkedIn Posts by Profile or Company.
|
|
2393
|
+
|
|
2394
|
+
The latest posts from a LinkedIn profile or company page.
|
|
2395
|
+
|
|
2396
|
+
From $0.0007 per post.
|
|
2397
|
+
20 free requests on the free tier.
|
|
2398
|
+
Main fields: url, results[], text, posted_at, stats.
|
|
2399
|
+
|
|
2400
|
+
Args:
|
|
2401
|
+
url: LinkedIn profile or company page URL.
|
|
2402
|
+
limit: Default: 10.
|
|
2403
|
+
"""
|
|
2404
|
+
return await self._client._invoke("signals.linkedin_posts", {"url": url, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2405
|
+
|
|
2406
|
+
async def linkedin_post_engagers(
|
|
2407
|
+
self,
|
|
2408
|
+
*,
|
|
2409
|
+
url: str,
|
|
2410
|
+
type: Literal["all", "reactions", "comments"] | None = None,
|
|
2411
|
+
limit: int | None = None,
|
|
2412
|
+
idempotency_key: str | None = None,
|
|
2413
|
+
timeout: float | None = None,
|
|
2414
|
+
max_retries: int | None = None,
|
|
2415
|
+
) -> Envelope:
|
|
2416
|
+
"""LinkedIn Post Engagers.
|
|
2417
|
+
|
|
2418
|
+
People who commented on or reacted to a LinkedIn post, like a competitor's launch. Comments first.
|
|
2419
|
+
|
|
2420
|
+
From $0.003 per engager.
|
|
2421
|
+
Main fields: url, results[], name, headline, linkedin_url, engagement.
|
|
2422
|
+
|
|
2423
|
+
Args:
|
|
2424
|
+
type: all: comments first (stronger intent), then reactions. Default: "all".
|
|
2425
|
+
limit: Default: 25.
|
|
2426
|
+
"""
|
|
2427
|
+
return await self._client._invoke("signals.linkedin_post_engagers", {"url": url, "type": type, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2428
|
+
|
|
2429
|
+
|
|
2430
|
+
class Web(_Resource):
|
|
2431
|
+
"""client.web: 10 endpoints."""
|
|
2432
|
+
|
|
2433
|
+
def search(
|
|
2434
|
+
self,
|
|
2435
|
+
*,
|
|
2436
|
+
query: str,
|
|
2437
|
+
country: str | None = None,
|
|
2438
|
+
page: int | None = None,
|
|
2439
|
+
idempotency_key: str | None = None,
|
|
2440
|
+
timeout: float | None = None,
|
|
2441
|
+
max_retries: int | None = None,
|
|
2442
|
+
) -> Envelope:
|
|
2443
|
+
"""Google Search.
|
|
2444
|
+
|
|
2445
|
+
Live Google results for any query.
|
|
2446
|
+
|
|
2447
|
+
From $0.00075 per search.
|
|
2448
|
+
Main fields: title, url, snippet, position.
|
|
2449
|
+
|
|
2450
|
+
Args:
|
|
2451
|
+
page: Default: 1.
|
|
2452
|
+
"""
|
|
2453
|
+
return self._client._invoke("web.search", {"query": query, "country": country, "page": page}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2454
|
+
|
|
2455
|
+
def news(
|
|
2456
|
+
self,
|
|
2457
|
+
*,
|
|
2458
|
+
query: str,
|
|
2459
|
+
days: int | None = None,
|
|
2460
|
+
limit: int | None = None,
|
|
2461
|
+
idempotency_key: str | None = None,
|
|
2462
|
+
timeout: float | None = None,
|
|
2463
|
+
max_retries: int | None = None,
|
|
2464
|
+
) -> Envelope:
|
|
2465
|
+
"""News Search.
|
|
2466
|
+
|
|
2467
|
+
Recent news articles for any query.
|
|
2468
|
+
|
|
2469
|
+
From $0.00083 per search.
|
|
2470
|
+
Main fields: title, url, source, published_at.
|
|
2471
|
+
|
|
2472
|
+
Args:
|
|
2473
|
+
days: Look back this many days. Default: 7.
|
|
2474
|
+
limit: One results page holds up to 10. Default: 10.
|
|
2475
|
+
"""
|
|
2476
|
+
return self._client._invoke("web.news", {"query": query, "days": days, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2477
|
+
|
|
2478
|
+
def scrape(
|
|
2479
|
+
self,
|
|
2480
|
+
*,
|
|
2481
|
+
url: str,
|
|
2482
|
+
clean: bool | None = None,
|
|
2483
|
+
fresh: bool | None = None,
|
|
2484
|
+
idempotency_key: str | None = None,
|
|
2485
|
+
timeout: float | None = None,
|
|
2486
|
+
max_retries: int | None = None,
|
|
2487
|
+
) -> Envelope:
|
|
2488
|
+
"""Web Scraping.
|
|
2489
|
+
|
|
2490
|
+
Raw HTML and text from any page.
|
|
2491
|
+
|
|
2492
|
+
From $0.0007 per page.
|
|
2493
|
+
Main fields: url, status, html, text.
|
|
2494
|
+
|
|
2495
|
+
Args:
|
|
2496
|
+
clean: Strip scripts, styles and tracking from the returned HTML. Default: false.
|
|
2497
|
+
fresh: Skip the cache and fetch the page now. Default: false.
|
|
2498
|
+
"""
|
|
2499
|
+
return self._client._invoke("web.scrape", {"url": url, "clean": clean, "fresh": fresh}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2500
|
+
|
|
2501
|
+
def markdown(
|
|
2502
|
+
self,
|
|
2503
|
+
*,
|
|
2504
|
+
url: str,
|
|
2505
|
+
include_images: bool | None = None,
|
|
2506
|
+
include_links: bool | None = None,
|
|
2507
|
+
fresh: bool | None = None,
|
|
2508
|
+
idempotency_key: str | None = None,
|
|
2509
|
+
timeout: float | None = None,
|
|
2510
|
+
max_retries: int | None = None,
|
|
2511
|
+
) -> Envelope:
|
|
2512
|
+
"""Website to Markdown.
|
|
2513
|
+
|
|
2514
|
+
Clean, LLM-ready markdown from any URL.
|
|
2515
|
+
|
|
2516
|
+
From $0.0005 per page.
|
|
2517
|
+
300 free requests on the free tier.
|
|
2518
|
+
Main fields: url, title, markdown, word_count, token_estimate.
|
|
2519
|
+
|
|
2520
|
+
Args:
|
|
2521
|
+
include_images: Default: false.
|
|
2522
|
+
include_links: Default: true.
|
|
2523
|
+
fresh: Default: false.
|
|
2524
|
+
"""
|
|
2525
|
+
return self._client._invoke("web.markdown", {"url": url, "include_images": include_images, "include_links": include_links, "fresh": fresh}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2526
|
+
|
|
2527
|
+
def extract(
|
|
2528
|
+
self,
|
|
2529
|
+
*,
|
|
2530
|
+
url: str,
|
|
2531
|
+
fields: Any,
|
|
2532
|
+
instructions: str | None = None,
|
|
2533
|
+
fresh: bool | None = None,
|
|
2534
|
+
idempotency_key: str | None = None,
|
|
2535
|
+
timeout: float | None = None,
|
|
2536
|
+
max_retries: int | None = None,
|
|
2537
|
+
) -> Envelope:
|
|
2538
|
+
"""Structured Data Extraction.
|
|
2539
|
+
|
|
2540
|
+
Pull the fields you define out of any page.
|
|
2541
|
+
|
|
2542
|
+
From $0.005 per page.
|
|
2543
|
+
Main fields: url, data, schema.
|
|
2544
|
+
|
|
2545
|
+
Args:
|
|
2546
|
+
fields: Fields to pull from the page: name to description, or name to {type, description}.
|
|
2547
|
+
fresh: Default: false.
|
|
2548
|
+
"""
|
|
2549
|
+
return self._client._invoke("web.extract", {"url": url, "fields": fields, "instructions": instructions, "fresh": fresh}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2550
|
+
|
|
2551
|
+
def sitemap(
|
|
2552
|
+
self,
|
|
2553
|
+
*,
|
|
2554
|
+
url: str,
|
|
2555
|
+
pattern: str | None = None,
|
|
2556
|
+
fresh: bool | None = None,
|
|
2557
|
+
idempotency_key: str | None = None,
|
|
2558
|
+
timeout: float | None = None,
|
|
2559
|
+
max_retries: int | None = None,
|
|
2560
|
+
) -> Envelope:
|
|
2561
|
+
"""Website Sitemap.
|
|
2562
|
+
|
|
2563
|
+
Every URL on a website, optionally filtered by a pattern.
|
|
2564
|
+
|
|
2565
|
+
From $0.0005 per request.
|
|
2566
|
+
300 free requests on the free tier.
|
|
2567
|
+
Main fields: url, count, urls[].
|
|
2568
|
+
|
|
2569
|
+
Args:
|
|
2570
|
+
fresh: Default: false.
|
|
2571
|
+
"""
|
|
2572
|
+
return self._client._invoke("web.sitemap", {"url": url, "pattern": pattern, "fresh": fresh}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2573
|
+
|
|
2574
|
+
def crawl(
|
|
2575
|
+
self,
|
|
2576
|
+
*,
|
|
2577
|
+
url: str,
|
|
2578
|
+
limit: int | None = None,
|
|
2579
|
+
pattern: str | None = None,
|
|
2580
|
+
include_images: bool | None = None,
|
|
2581
|
+
include_links: bool | None = None,
|
|
2582
|
+
fresh: bool | None = None,
|
|
2583
|
+
webhook_url: str | None = None,
|
|
2584
|
+
idempotency_key: str | None = None,
|
|
2585
|
+
timeout: float | None = None,
|
|
2586
|
+
max_retries: int | None = None,
|
|
2587
|
+
) -> Job:
|
|
2588
|
+
"""Website Crawling.
|
|
2589
|
+
|
|
2590
|
+
Crawl a site and get each page as markdown.
|
|
2591
|
+
|
|
2592
|
+
From $0.0005 per page.
|
|
2593
|
+
Runs as a job: returns 202 with a job_id, then poll GET /v1/jobs/{id}.
|
|
2594
|
+
Main fields: job_id, pages[], markdown, status.
|
|
2595
|
+
|
|
2596
|
+
Args:
|
|
2597
|
+
url: Start page. Pages on the same site that it links to are crawled.
|
|
2598
|
+
limit: Most pages to crawl, the start page included. Billed per page delivered. Default: 25.
|
|
2599
|
+
pattern: Only follow links whose URL matches this pattern.
|
|
2600
|
+
include_images: Default: false.
|
|
2601
|
+
include_links: Default: true.
|
|
2602
|
+
fresh: Default: false.
|
|
2603
|
+
"""
|
|
2604
|
+
return self._client._invoke("web.crawl", {"url": url, "limit": limit, "pattern": pattern, "include_images": include_images, "include_links": include_links, "fresh": fresh, "webhook_url": webhook_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2605
|
+
|
|
2606
|
+
def research_company(
|
|
2607
|
+
self,
|
|
2608
|
+
*,
|
|
2609
|
+
domain: str,
|
|
2610
|
+
company: str | None = None,
|
|
2611
|
+
questions: Sequence[str] | None = None,
|
|
2612
|
+
wait: bool = True,
|
|
2613
|
+
poll_interval: float | None = None,
|
|
2614
|
+
wait_timeout: float | None = None,
|
|
2615
|
+
idempotency_key: str | None = None,
|
|
2616
|
+
timeout: float | None = None,
|
|
2617
|
+
max_retries: int | None = None,
|
|
2618
|
+
) -> Envelope:
|
|
2619
|
+
"""Company Research.
|
|
2620
|
+
|
|
2621
|
+
A researched brief on a company, with sources.
|
|
2622
|
+
|
|
2623
|
+
From $0.008 per research task.
|
|
2624
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
2625
|
+
Main fields: summary, products, customers, sources[].
|
|
2626
|
+
|
|
2627
|
+
Args:
|
|
2628
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
2629
|
+
questions: Questions to answer from public sources.
|
|
2630
|
+
"""
|
|
2631
|
+
return self._client._invoke("web.research_company", {"domain": domain, "company": company, "questions": questions}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2632
|
+
|
|
2633
|
+
def research(
|
|
2634
|
+
self,
|
|
2635
|
+
*,
|
|
2636
|
+
query: str,
|
|
2637
|
+
max_sources: int | None = None,
|
|
2638
|
+
wait: bool = True,
|
|
2639
|
+
poll_interval: float | None = None,
|
|
2640
|
+
wait_timeout: float | None = None,
|
|
2641
|
+
idempotency_key: str | None = None,
|
|
2642
|
+
timeout: float | None = None,
|
|
2643
|
+
max_retries: int | None = None,
|
|
2644
|
+
) -> Envelope:
|
|
2645
|
+
"""Deep Research.
|
|
2646
|
+
|
|
2647
|
+
Multi-step research with cited sources.
|
|
2648
|
+
|
|
2649
|
+
From $0.025 per research task.
|
|
2650
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
2651
|
+
Main fields: answer, sources[], confidence.
|
|
2652
|
+
|
|
2653
|
+
Args:
|
|
2654
|
+
max_sources: Pages to read before answering. Default: 5.
|
|
2655
|
+
"""
|
|
2656
|
+
return self._client._invoke("web.research", {"query": query, "max_sources": max_sources}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2657
|
+
|
|
2658
|
+
def qualify(
|
|
2659
|
+
self,
|
|
2660
|
+
*,
|
|
2661
|
+
domain: str | None = None,
|
|
2662
|
+
lead: WebQualifyLead | None = None,
|
|
2663
|
+
icp: WebQualifyIcp,
|
|
2664
|
+
include_website: bool | None = None,
|
|
2665
|
+
idempotency_key: str | None = None,
|
|
2666
|
+
timeout: float | None = None,
|
|
2667
|
+
max_retries: int | None = None,
|
|
2668
|
+
) -> Envelope:
|
|
2669
|
+
"""ICP Qualification.
|
|
2670
|
+
|
|
2671
|
+
Whether an account fits your ICP, with reasons.
|
|
2672
|
+
|
|
2673
|
+
From $0.002 per decision.
|
|
2674
|
+
Main fields: company, fit, score, reasons[].
|
|
2675
|
+
|
|
2676
|
+
Args:
|
|
2677
|
+
domain: Company website domain. Optional when lead.email is on a company domain.
|
|
2678
|
+
lead: An inbound lead to qualify along with their company.
|
|
2679
|
+
include_website: Read the homepage as extra evidence. Default: true.
|
|
2680
|
+
"""
|
|
2681
|
+
return self._client._invoke("web.qualify", {"domain": domain, "lead": lead, "icp": icp, "include_website": include_website}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2682
|
+
|
|
2683
|
+
|
|
2684
|
+
class AsyncWeb(_AsyncResource):
|
|
2685
|
+
"""client.web: 10 endpoints."""
|
|
2686
|
+
|
|
2687
|
+
async def search(
|
|
2688
|
+
self,
|
|
2689
|
+
*,
|
|
2690
|
+
query: str,
|
|
2691
|
+
country: str | None = None,
|
|
2692
|
+
page: int | None = None,
|
|
2693
|
+
idempotency_key: str | None = None,
|
|
2694
|
+
timeout: float | None = None,
|
|
2695
|
+
max_retries: int | None = None,
|
|
2696
|
+
) -> Envelope:
|
|
2697
|
+
"""Google Search.
|
|
2698
|
+
|
|
2699
|
+
Live Google results for any query.
|
|
2700
|
+
|
|
2701
|
+
From $0.00075 per search.
|
|
2702
|
+
Main fields: title, url, snippet, position.
|
|
2703
|
+
|
|
2704
|
+
Args:
|
|
2705
|
+
page: Default: 1.
|
|
2706
|
+
"""
|
|
2707
|
+
return await self._client._invoke("web.search", {"query": query, "country": country, "page": page}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2708
|
+
|
|
2709
|
+
async def news(
|
|
2710
|
+
self,
|
|
2711
|
+
*,
|
|
2712
|
+
query: str,
|
|
2713
|
+
days: int | None = None,
|
|
2714
|
+
limit: int | None = None,
|
|
2715
|
+
idempotency_key: str | None = None,
|
|
2716
|
+
timeout: float | None = None,
|
|
2717
|
+
max_retries: int | None = None,
|
|
2718
|
+
) -> Envelope:
|
|
2719
|
+
"""News Search.
|
|
2720
|
+
|
|
2721
|
+
Recent news articles for any query.
|
|
2722
|
+
|
|
2723
|
+
From $0.00083 per search.
|
|
2724
|
+
Main fields: title, url, source, published_at.
|
|
2725
|
+
|
|
2726
|
+
Args:
|
|
2727
|
+
days: Look back this many days. Default: 7.
|
|
2728
|
+
limit: One results page holds up to 10. Default: 10.
|
|
2729
|
+
"""
|
|
2730
|
+
return await self._client._invoke("web.news", {"query": query, "days": days, "limit": limit}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2731
|
+
|
|
2732
|
+
async def scrape(
|
|
2733
|
+
self,
|
|
2734
|
+
*,
|
|
2735
|
+
url: str,
|
|
2736
|
+
clean: bool | None = None,
|
|
2737
|
+
fresh: bool | None = None,
|
|
2738
|
+
idempotency_key: str | None = None,
|
|
2739
|
+
timeout: float | None = None,
|
|
2740
|
+
max_retries: int | None = None,
|
|
2741
|
+
) -> Envelope:
|
|
2742
|
+
"""Web Scraping.
|
|
2743
|
+
|
|
2744
|
+
Raw HTML and text from any page.
|
|
2745
|
+
|
|
2746
|
+
From $0.0007 per page.
|
|
2747
|
+
Main fields: url, status, html, text.
|
|
2748
|
+
|
|
2749
|
+
Args:
|
|
2750
|
+
clean: Strip scripts, styles and tracking from the returned HTML. Default: false.
|
|
2751
|
+
fresh: Skip the cache and fetch the page now. Default: false.
|
|
2752
|
+
"""
|
|
2753
|
+
return await self._client._invoke("web.scrape", {"url": url, "clean": clean, "fresh": fresh}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2754
|
+
|
|
2755
|
+
async def markdown(
|
|
2756
|
+
self,
|
|
2757
|
+
*,
|
|
2758
|
+
url: str,
|
|
2759
|
+
include_images: bool | None = None,
|
|
2760
|
+
include_links: bool | None = None,
|
|
2761
|
+
fresh: bool | None = None,
|
|
2762
|
+
idempotency_key: str | None = None,
|
|
2763
|
+
timeout: float | None = None,
|
|
2764
|
+
max_retries: int | None = None,
|
|
2765
|
+
) -> Envelope:
|
|
2766
|
+
"""Website to Markdown.
|
|
2767
|
+
|
|
2768
|
+
Clean, LLM-ready markdown from any URL.
|
|
2769
|
+
|
|
2770
|
+
From $0.0005 per page.
|
|
2771
|
+
300 free requests on the free tier.
|
|
2772
|
+
Main fields: url, title, markdown, word_count, token_estimate.
|
|
2773
|
+
|
|
2774
|
+
Args:
|
|
2775
|
+
include_images: Default: false.
|
|
2776
|
+
include_links: Default: true.
|
|
2777
|
+
fresh: Default: false.
|
|
2778
|
+
"""
|
|
2779
|
+
return await self._client._invoke("web.markdown", {"url": url, "include_images": include_images, "include_links": include_links, "fresh": fresh}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2780
|
+
|
|
2781
|
+
async def extract(
|
|
2782
|
+
self,
|
|
2783
|
+
*,
|
|
2784
|
+
url: str,
|
|
2785
|
+
fields: Any,
|
|
2786
|
+
instructions: str | None = None,
|
|
2787
|
+
fresh: bool | None = None,
|
|
2788
|
+
idempotency_key: str | None = None,
|
|
2789
|
+
timeout: float | None = None,
|
|
2790
|
+
max_retries: int | None = None,
|
|
2791
|
+
) -> Envelope:
|
|
2792
|
+
"""Structured Data Extraction.
|
|
2793
|
+
|
|
2794
|
+
Pull the fields you define out of any page.
|
|
2795
|
+
|
|
2796
|
+
From $0.005 per page.
|
|
2797
|
+
Main fields: url, data, schema.
|
|
2798
|
+
|
|
2799
|
+
Args:
|
|
2800
|
+
fields: Fields to pull from the page: name to description, or name to {type, description}.
|
|
2801
|
+
fresh: Default: false.
|
|
2802
|
+
"""
|
|
2803
|
+
return await self._client._invoke("web.extract", {"url": url, "fields": fields, "instructions": instructions, "fresh": fresh}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2804
|
+
|
|
2805
|
+
async def sitemap(
|
|
2806
|
+
self,
|
|
2807
|
+
*,
|
|
2808
|
+
url: str,
|
|
2809
|
+
pattern: str | None = None,
|
|
2810
|
+
fresh: bool | None = None,
|
|
2811
|
+
idempotency_key: str | None = None,
|
|
2812
|
+
timeout: float | None = None,
|
|
2813
|
+
max_retries: int | None = None,
|
|
2814
|
+
) -> Envelope:
|
|
2815
|
+
"""Website Sitemap.
|
|
2816
|
+
|
|
2817
|
+
Every URL on a website, optionally filtered by a pattern.
|
|
2818
|
+
|
|
2819
|
+
From $0.0005 per request.
|
|
2820
|
+
300 free requests on the free tier.
|
|
2821
|
+
Main fields: url, count, urls[].
|
|
2822
|
+
|
|
2823
|
+
Args:
|
|
2824
|
+
fresh: Default: false.
|
|
2825
|
+
"""
|
|
2826
|
+
return await self._client._invoke("web.sitemap", {"url": url, "pattern": pattern, "fresh": fresh}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2827
|
+
|
|
2828
|
+
async def crawl(
|
|
2829
|
+
self,
|
|
2830
|
+
*,
|
|
2831
|
+
url: str,
|
|
2832
|
+
limit: int | None = None,
|
|
2833
|
+
pattern: str | None = None,
|
|
2834
|
+
include_images: bool | None = None,
|
|
2835
|
+
include_links: bool | None = None,
|
|
2836
|
+
fresh: bool | None = None,
|
|
2837
|
+
webhook_url: str | None = None,
|
|
2838
|
+
idempotency_key: str | None = None,
|
|
2839
|
+
timeout: float | None = None,
|
|
2840
|
+
max_retries: int | None = None,
|
|
2841
|
+
) -> AsyncJob:
|
|
2842
|
+
"""Website Crawling.
|
|
2843
|
+
|
|
2844
|
+
Crawl a site and get each page as markdown.
|
|
2845
|
+
|
|
2846
|
+
From $0.0005 per page.
|
|
2847
|
+
Runs as a job: returns 202 with a job_id, then poll GET /v1/jobs/{id}.
|
|
2848
|
+
Main fields: job_id, pages[], markdown, status.
|
|
2849
|
+
|
|
2850
|
+
Args:
|
|
2851
|
+
url: Start page. Pages on the same site that it links to are crawled.
|
|
2852
|
+
limit: Most pages to crawl, the start page included. Billed per page delivered. Default: 25.
|
|
2853
|
+
pattern: Only follow links whose URL matches this pattern.
|
|
2854
|
+
include_images: Default: false.
|
|
2855
|
+
include_links: Default: true.
|
|
2856
|
+
fresh: Default: false.
|
|
2857
|
+
"""
|
|
2858
|
+
return await self._client._invoke("web.crawl", {"url": url, "limit": limit, "pattern": pattern, "include_images": include_images, "include_links": include_links, "fresh": fresh, "webhook_url": webhook_url}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2859
|
+
|
|
2860
|
+
async def research_company(
|
|
2861
|
+
self,
|
|
2862
|
+
*,
|
|
2863
|
+
domain: str,
|
|
2864
|
+
company: str | None = None,
|
|
2865
|
+
questions: Sequence[str] | None = None,
|
|
2866
|
+
wait: bool = True,
|
|
2867
|
+
poll_interval: float | None = None,
|
|
2868
|
+
wait_timeout: float | None = None,
|
|
2869
|
+
idempotency_key: str | None = None,
|
|
2870
|
+
timeout: float | None = None,
|
|
2871
|
+
max_retries: int | None = None,
|
|
2872
|
+
) -> Envelope:
|
|
2873
|
+
"""Company Research.
|
|
2874
|
+
|
|
2875
|
+
A researched brief on a company, with sources.
|
|
2876
|
+
|
|
2877
|
+
From $0.008 per research task.
|
|
2878
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
2879
|
+
Main fields: summary, products, customers, sources[].
|
|
2880
|
+
|
|
2881
|
+
Args:
|
|
2882
|
+
company: Company name to search for. Defaults to the name on its website.
|
|
2883
|
+
questions: Questions to answer from public sources.
|
|
2884
|
+
"""
|
|
2885
|
+
return await self._client._invoke("web.research_company", {"domain": domain, "company": company, "questions": questions}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2886
|
+
|
|
2887
|
+
async def research(
|
|
2888
|
+
self,
|
|
2889
|
+
*,
|
|
2890
|
+
query: str,
|
|
2891
|
+
max_sources: int | None = None,
|
|
2892
|
+
wait: bool = True,
|
|
2893
|
+
poll_interval: float | None = None,
|
|
2894
|
+
wait_timeout: float | None = None,
|
|
2895
|
+
idempotency_key: str | None = None,
|
|
2896
|
+
timeout: float | None = None,
|
|
2897
|
+
max_retries: int | None = None,
|
|
2898
|
+
) -> Envelope:
|
|
2899
|
+
"""Deep Research.
|
|
2900
|
+
|
|
2901
|
+
Multi-step research with cited sources.
|
|
2902
|
+
|
|
2903
|
+
From $0.025 per research task.
|
|
2904
|
+
May return 202 with a job_id when the answer takes longer. Poll GET /v1/jobs/{id}.
|
|
2905
|
+
Main fields: answer, sources[], confidence.
|
|
2906
|
+
|
|
2907
|
+
Args:
|
|
2908
|
+
max_sources: Pages to read before answering. Default: 5.
|
|
2909
|
+
"""
|
|
2910
|
+
return await self._client._invoke("web.research", {"query": query, "max_sources": max_sources}, wait=wait, poll_interval=poll_interval, wait_timeout=wait_timeout, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|
|
2911
|
+
|
|
2912
|
+
async def qualify(
|
|
2913
|
+
self,
|
|
2914
|
+
*,
|
|
2915
|
+
domain: str | None = None,
|
|
2916
|
+
lead: WebQualifyLead | None = None,
|
|
2917
|
+
icp: WebQualifyIcp,
|
|
2918
|
+
include_website: bool | None = None,
|
|
2919
|
+
idempotency_key: str | None = None,
|
|
2920
|
+
timeout: float | None = None,
|
|
2921
|
+
max_retries: int | None = None,
|
|
2922
|
+
) -> Envelope:
|
|
2923
|
+
"""ICP Qualification.
|
|
2924
|
+
|
|
2925
|
+
Whether an account fits your ICP, with reasons.
|
|
2926
|
+
|
|
2927
|
+
From $0.002 per decision.
|
|
2928
|
+
Main fields: company, fit, score, reasons[].
|
|
2929
|
+
|
|
2930
|
+
Args:
|
|
2931
|
+
domain: Company website domain. Optional when lead.email is on a company domain.
|
|
2932
|
+
lead: An inbound lead to qualify along with their company.
|
|
2933
|
+
include_website: Read the homepage as extra evidence. Default: true.
|
|
2934
|
+
"""
|
|
2935
|
+
return await self._client._invoke("web.qualify", {"domain": domain, "lead": lead, "icp": icp, "include_website": include_website}, idempotency_key=idempotency_key, timeout=timeout, max_retries=max_retries)
|