getanyapi 0.54.0__tar.gz → 0.55.0__tar.gz

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.
Files changed (106) hide show
  1. {getanyapi-0.54.0 → getanyapi-0.55.0}/PKG-INFO +1 -1
  2. {getanyapi-0.54.0 → getanyapi-0.55.0}/pyproject.toml +1 -1
  3. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/__init__.py +1 -1
  4. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/company.py +2 -2
  5. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/company_enrichment.py +358 -3
  6. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/company_search.py +361 -5
  7. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/ebay.py +2 -2
  8. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/maps.py +2 -2
  9. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/people_search.py +390 -3
  10. {getanyapi-0.54.0 → getanyapi-0.55.0}/.gitignore +0 -0
  11. {getanyapi-0.54.0 → getanyapi-0.55.0}/README.md +0 -0
  12. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/_account.py +0 -0
  13. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/_async_client.py +0 -0
  14. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/_client.py +0 -0
  15. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/_errors.py +0 -0
  16. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/_idempotency.py +0 -0
  17. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/_pagination.py +0 -0
  18. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/_transport.py +0 -0
  19. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/discovery_types.py +0 -0
  20. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/__init__.py +0 -0
  21. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/ahrefs.py +0 -0
  22. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/airbnb.py +0 -0
  23. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/alibaba.py +0 -0
  24. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/amazon.py +0 -0
  25. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/apollo.py +0 -0
  26. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/appstore.py +0 -0
  27. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/bluesky.py +0 -0
  28. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/booking.py +0 -0
  29. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/capterra.py +0 -0
  30. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/chatgpt.py +0 -0
  31. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/coinmarketcap.py +0 -0
  32. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/company_identify.py +0 -0
  33. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/congress.py +0 -0
  34. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/contact_enrichment.py +0 -0
  35. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/douyin.py +0 -0
  36. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/email.py +0 -0
  37. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/email_finding.py +0 -0
  38. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/email_verification.py +0 -0
  39. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/facebook.py +0 -0
  40. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/fiverr.py +0 -0
  41. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/g2.py +0 -0
  42. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/gemini.py +0 -0
  43. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/github.py +0 -0
  44. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/glassdoor.py +0 -0
  45. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/google.py +0 -0
  46. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/google_ads.py +0 -0
  47. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/google_finance.py +0 -0
  48. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/google_shopping.py +0 -0
  49. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/hackernews.py +0 -0
  50. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/indeed.py +0 -0
  51. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/instagram.py +0 -0
  52. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/job_search.py +0 -0
  53. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/linkedin.py +0 -0
  54. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/mobile_phone.py +0 -0
  55. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/naver.py +0 -0
  56. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/nextdoor.py +0 -0
  57. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/perplexity.py +0 -0
  58. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/person.py +0 -0
  59. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/person_enrichment.py +0 -0
  60. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/pinterest.py +0 -0
  61. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/playstore.py +0 -0
  62. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/polymarket.py +0 -0
  63. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/property_records.py +0 -0
  64. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/realtor.py +0 -0
  65. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/reddit.py +0 -0
  66. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/redfin.py +0 -0
  67. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/rednote.py +0 -0
  68. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/sec.py +0 -0
  69. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/semrush.py +0 -0
  70. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/seo.py +0 -0
  71. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/similarweb.py +0 -0
  72. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/snapchat.py +0 -0
  73. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/social.py +0 -0
  74. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/spotify.py +0 -0
  75. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/substack.py +0 -0
  76. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/technographics.py +0 -0
  77. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/threads.py +0 -0
  78. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/tiktok.py +0 -0
  79. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/tiktok_shop.py +0 -0
  80. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/tripadvisor.py +0 -0
  81. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/trustpilot.py +0 -0
  82. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/truthsocial.py +0 -0
  83. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/twitter.py +0 -0
  84. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/upwork.py +0 -0
  85. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/walmart.py +0 -0
  86. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/web.py +0 -0
  87. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/weibo.py +0 -0
  88. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/yahoo_finance.py +0 -0
  89. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/yelp.py +0 -0
  90. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/youtube.py +0 -0
  91. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/zhihu.py +0 -0
  92. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/platforms/zillow.py +0 -0
  93. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/py.typed +0 -0
  94. {getanyapi-0.54.0 → getanyapi-0.55.0}/src/getanyapi/types.py +0 -0
  95. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/conftest.py +0 -0
  96. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_account.py +0 -0
  97. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_client.py +0 -0
  98. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_durable_requests.py +0 -0
  99. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_envelope.py +0 -0
  100. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_errors.py +0 -0
  101. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_fixture_roundtrip.py +0 -0
  102. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_fixture_sweep.py +0 -0
  103. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_not_found_reason.py +0 -0
  104. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_pagination.py +0 -0
  105. {getanyapi-0.54.0 → getanyapi-0.55.0}/tests/test_transport.py +0 -0
  106. {getanyapi-0.54.0 → getanyapi-0.55.0}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: getanyapi
3
- Version: 0.54.0
3
+ Version: 0.55.0
4
4
  Summary: Official typed Python SDK for AnyAPI: any API, one wallet, USD, no subscriptions.
5
5
  Project-URL: Homepage, https://getanyapi.com
6
6
  Project-URL: Documentation, https://getanyapi.com/docs
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "getanyapi"
7
- version = "0.54.0"
7
+ version = "0.55.0"
8
8
  description = "Official typed Python SDK for AnyAPI: any API, one wallet, USD, no subscriptions."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -55,7 +55,7 @@ from .types import (
55
55
  unwrap,
56
56
  )
57
57
 
58
- __version__ = "0.54.0"
58
+ __version__ = "0.55.0"
59
59
 
60
60
  __all__ = [
61
61
  # clients + top-level functions
@@ -177,7 +177,7 @@ class CompanyNamespace:
177
177
  cross-checked dossier: what it does, how it talks, who it competes with, its
178
178
  firmographics, its hiring and news signal, and its social presence.
179
179
 
180
- Price: $0.44338 per request.
180
+ Price: $0.56338 per request.
181
181
 
182
182
  Example:
183
183
  res = client.company.research(domain="stripe.com", maxAgeDays=7)
@@ -206,7 +206,7 @@ class AsyncCompanyNamespace:
206
206
  cross-checked dossier: what it does, how it talks, who it competes with, its
207
207
  firmographics, its hiring and news signal, and its social presence.
208
208
 
209
- Price: $0.44338 per request.
209
+ Price: $0.56338 per request.
210
210
 
211
211
  Example:
212
212
  res = client.company.research(domain="stripe.com", maxAgeDays=7)
@@ -15,8 +15,27 @@ if TYPE_CHECKING:
15
15
  from .._client import AnyAPI
16
16
 
17
17
 
18
+ class CompanyEnrichmentCrustdataInput(TypedDict, total=False):
19
+ """Input for Company Enrichment - Crustdata."""
20
+
21
+ allowFallbacks: NotRequired[bool]
22
+ """Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price. Default: true."""
23
+ companyDomain: NotRequired[str]
24
+ companyId: NotRequired[Any]
25
+ companyLinkedinUrl: NotRequired[str]
26
+ companyName: NotRequired[str]
27
+ exactMatch: NotRequired[bool]
28
+ fields: NotRequired[Any]
29
+ ignoreSources: NotRequired[list[str]]
30
+ """Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way."""
31
+ preferLatencyUnderMs: NotRequired[int]
32
+ """Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted. Minimum: 1."""
33
+ source: NotRequired[list[str]]
34
+ """Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`."""
35
+
36
+
18
37
  class CompanyEnrichmentCrustdataV3Input(TypedDict, total=False):
19
- """Input for Company Enrichment - Crustdata v3."""
38
+ """Input for Company Enrichment - Crustdata v3 (legacy)."""
20
39
 
21
40
  allowFallbacks: NotRequired[bool]
22
41
  """Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price. Default: true."""
@@ -101,6 +120,302 @@ class CompanyEnrichmentProspeoInput(TypedDict, total=False):
101
120
  """Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`."""
102
121
 
103
122
 
123
+ class CompanyEnrichmentCrustdataData(BaseModel):
124
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
125
+
126
+ acquisition_status: str | None = Field(
127
+ default=None,
128
+ alias="acquisitionStatus",
129
+ description="Acquisition status, when the company has been acquired.",
130
+ )
131
+ company_id: str | None = Field(
132
+ default=None,
133
+ alias="companyId",
134
+ description="Crustdata identifier for the company, accepted back as the companyId input.",
135
+ )
136
+ company_type: str | None = Field(
137
+ default=None,
138
+ alias="companyType",
139
+ description="Company type, e.g. Privately Held or Public Company.",
140
+ )
141
+ crunchbase_categories: list[str] | None = Field(
142
+ default=None,
143
+ alias="crunchbaseCategories",
144
+ description="Crunchbase category tags, followed by the broader category groups they belong to.",
145
+ )
146
+ description: str | None = Field(
147
+ default=None, description="Company description from its LinkedIn page."
148
+ )
149
+ domain: str | None = Field(
150
+ description="Primary website domain, or null when the upstream holds none for this company."
151
+ )
152
+ domains: list[str] | None = Field(
153
+ default=None, description="All domains associated with the company."
154
+ )
155
+ employee_count: int | None = Field(
156
+ default=None,
157
+ alias="employeeCount",
158
+ description="Latest observed employee count.",
159
+ )
160
+ employee_growth_absolute: (
161
+ CompanyEnrichmentCrustdataEmployeeGrowthAbsolute | None
162
+ ) = Field(
163
+ default=None,
164
+ alias="employeeGrowthAbsolute",
165
+ description="Net headcount change over trailing windows.",
166
+ )
167
+ employee_growth_percent: CompanyEnrichmentCrustdataEmployeeGrowthPercent | None = (
168
+ Field(
169
+ default=None,
170
+ alias="employeeGrowthPercent",
171
+ description="Percent headcount change over trailing windows.",
172
+ )
173
+ )
174
+ employee_range: str | None = Field(
175
+ default=None,
176
+ alias="employeeRange",
177
+ description="Employee count band, e.g. 51-200.",
178
+ )
179
+ estimated_revenue_higher_usd: int | None = Field(
180
+ default=None,
181
+ alias="estimatedRevenueHigherUsd",
182
+ description="Upper bound of estimated annual revenue in USD.",
183
+ )
184
+ estimated_revenue_lower_usd: int | None = Field(
185
+ default=None,
186
+ alias="estimatedRevenueLowerUsd",
187
+ description="Lower bound of estimated annual revenue in USD.",
188
+ )
189
+ fiscal_year_end: str | None = Field(
190
+ default=None, alias="fiscalYearEnd", description="Fiscal year end."
191
+ )
192
+ founded_utc: int | None = Field(
193
+ default=None,
194
+ alias="foundedUtc",
195
+ description="UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Founding date of the company.",
196
+ )
197
+ founded_year: int | None = Field(
198
+ default=None, alias="foundedYear", description="Year the company was founded."
199
+ )
200
+ headcount_by_function_timeseries: Any | None = Field(
201
+ default=None,
202
+ alias="headcountByFunctionTimeseries",
203
+ description="Headcount history broken down by region and by job function. Untyped passthrough: the whole nested structure ships exactly as Crustdata returns it, including its raw grouping keys (GEO_REGION, CURRENT_FUNCTION) and its string observation dates rather than epoch seconds, because the shape cannot be expressed in the canonical field grammar.",
204
+ )
205
+ headcount_by_region: CompanyEnrichmentCrustdataHeadcountByRegion | None = Field(
206
+ default=None,
207
+ alias="headcountByRegion",
208
+ description="Employee count per region, keyed by LinkedIn region name.",
209
+ )
210
+ headcount_by_region_percent: (
211
+ CompanyEnrichmentCrustdataHeadcountByRegionPercent | None
212
+ ) = Field(
213
+ default=None,
214
+ alias="headcountByRegionPercent",
215
+ description="Share of employees per region as a percent, keyed by LinkedIn region name.",
216
+ )
217
+ headcount_by_role: CompanyEnrichmentCrustdataHeadcountByRole | None = Field(
218
+ default=None,
219
+ alias="headcountByRole",
220
+ description="Employee count per job function, keyed by LinkedIn function name.",
221
+ )
222
+ headcount_by_role_percent: (
223
+ CompanyEnrichmentCrustdataHeadcountByRolePercent | None
224
+ ) = Field(
225
+ default=None,
226
+ alias="headcountByRolePercent",
227
+ description="Share of employees per job function as a percent, keyed by LinkedIn function name.",
228
+ )
229
+ headcount_by_role_six_months_growth_percent: Any | None = Field(
230
+ default=None,
231
+ alias="headcountByRoleSixMonthsGrowthPercent",
232
+ description="Six-month percent headcount change per job function, exactly as Crustdata returns it. Untyped passthrough: the structure ships verbatim and is not validated.",
233
+ )
234
+ headcount_by_role_yoy_growth_percent: Any | None = Field(
235
+ default=None,
236
+ alias="headcountByRoleYoyGrowthPercent",
237
+ description="Year-over-year percent headcount change per job function, exactly as Crustdata returns it. Untyped passthrough: the structure ships verbatim and is not validated.",
238
+ )
239
+ headcount_by_skill: CompanyEnrichmentCrustdataHeadcountBySkill | None = Field(
240
+ default=None,
241
+ alias="headcountBySkill",
242
+ description="Employee count per listed skill, keyed by skill name.",
243
+ )
244
+ headcount_by_skill_percent: (
245
+ CompanyEnrichmentCrustdataHeadcountBySkillPercent | None
246
+ ) = Field(
247
+ default=None,
248
+ alias="headcountBySkillPercent",
249
+ description="Share of employees per listed skill as a percent, keyed by skill name.",
250
+ )
251
+ headcount_timeseries: list[CompanyEnrichmentCrustdataHeadcountTimeserie] | None = (
252
+ Field(
253
+ default=None,
254
+ alias="headcountTimeseries",
255
+ description="Historical employee-count observations, oldest first.",
256
+ )
257
+ )
258
+ hq_country: str | None = Field(
259
+ default=None, alias="hqCountry", description="Country of the headquarters."
260
+ )
261
+ hq_state: str | None = Field(
262
+ default=None,
263
+ alias="hqState",
264
+ description="State or province of the headquarters.",
265
+ )
266
+ hq_street_address: str | None = Field(
267
+ default=None,
268
+ alias="hqStreetAddress",
269
+ description="Headquarters street address. Crustdata returns the same string as location for most companies.",
270
+ )
271
+ image: str | None = Field(
272
+ default=None,
273
+ description="Company logo URL. Crustdata's cached copy, which does not expire.",
274
+ )
275
+ industries: list[str] | None = Field(
276
+ default=None, description="All LinkedIn industries listed for the company."
277
+ )
278
+ industry: str | None = Field(default=None, description="Primary LinkedIn industry.")
279
+ ipo_utc: int | None = Field(
280
+ default=None,
281
+ alias="ipoUtc",
282
+ description="UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Date the company went public.",
283
+ )
284
+ largest_headcount_country: str | None = Field(
285
+ default=None,
286
+ alias="largestHeadcountCountry",
287
+ description="Country holding the largest share of employees.",
288
+ )
289
+ linkedin_company_id: str | None = Field(
290
+ default=None,
291
+ alias="linkedinCompanyId",
292
+ description="LinkedIn's own numeric identifier for the company page.",
293
+ )
294
+ linkedin_profile_name: str | None = Field(
295
+ default=None,
296
+ alias="linkedinProfileName",
297
+ description="Company name as it appears on the LinkedIn page. Usually the same value as name; Crustdata returns both.",
298
+ )
299
+ linkedin_url: str | None = Field(
300
+ default=None, alias="linkedinUrl", description="LinkedIn company page URL."
301
+ )
302
+ location: str | None = Field(default=None, description="Headquarters location.")
303
+ naics: CompanyEnrichmentCrustdataNaic | None = Field(
304
+ default=None, description="Primary NAICS industry classification."
305
+ )
306
+ name: str | None = Field(default=None, description="Company name.")
307
+ sic_codes: list[CompanyEnrichmentCrustdataSicCode] | None = Field(
308
+ default=None,
309
+ alias="sicCodes",
310
+ description="SIC industry classifications assigned to the company.",
311
+ )
312
+ specialities: list[str] | None = Field(
313
+ default=None, description="Speciality tags the company lists on LinkedIn."
314
+ )
315
+ twitter_url: str | None = Field(
316
+ default=None, alias="twitterUrl", description="X (Twitter) profile URL."
317
+ )
318
+ website: str | None = Field(default=None, description="Company website URL.")
319
+
320
+
321
+ class CompanyEnrichmentCrustdataEmployeeGrowthAbsolute(BaseModel):
322
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
323
+
324
+ mom: int | None = Field(default=None, description="Change over the last month.")
325
+ qoq: int | None = Field(default=None, description="Change over the last quarter.")
326
+ six_months: int | None = Field(
327
+ default=None, alias="sixMonths", description="Change over the last six months."
328
+ )
329
+ two_years: int | None = Field(
330
+ default=None, alias="twoYears", description="Change over the last two years."
331
+ )
332
+ yoy: int | None = Field(
333
+ default=None, description="Change over the last twelve months."
334
+ )
335
+
336
+
337
+ class CompanyEnrichmentCrustdataEmployeeGrowthPercent(BaseModel):
338
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
339
+
340
+ mom: float | None = Field(default=None, description="Change over the last month.")
341
+ qoq: float | None = Field(default=None, description="Change over the last quarter.")
342
+ six_months: float | None = Field(
343
+ default=None, alias="sixMonths", description="Change over the last six months."
344
+ )
345
+ two_years: float | None = Field(
346
+ default=None, alias="twoYears", description="Change over the last two years."
347
+ )
348
+ yoy: float | None = Field(
349
+ default=None, description="Change over the last twelve months."
350
+ )
351
+
352
+
353
+ class CompanyEnrichmentCrustdataHeadcountByRegion(BaseModel):
354
+ model_config = ConfigDict(extra="allow")
355
+
356
+
357
+ class CompanyEnrichmentCrustdataHeadcountByRegionPercent(BaseModel):
358
+ model_config = ConfigDict(extra="allow")
359
+
360
+
361
+ class CompanyEnrichmentCrustdataHeadcountByRole(BaseModel):
362
+ model_config = ConfigDict(extra="allow")
363
+
364
+
365
+ class CompanyEnrichmentCrustdataHeadcountByRolePercent(BaseModel):
366
+ model_config = ConfigDict(extra="allow")
367
+
368
+
369
+ class CompanyEnrichmentCrustdataHeadcountBySkill(BaseModel):
370
+ model_config = ConfigDict(extra="allow")
371
+
372
+
373
+ class CompanyEnrichmentCrustdataHeadcountBySkillPercent(BaseModel):
374
+ model_config = ConfigDict(extra="allow")
375
+
376
+
377
+ class CompanyEnrichmentCrustdataHeadcountTimeserie(BaseModel):
378
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
379
+
380
+ date_utc: int | None = Field(
381
+ default=None,
382
+ alias="dateUtc",
383
+ description="UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Observation date.",
384
+ )
385
+ employee_count: int | None = Field(
386
+ default=None,
387
+ alias="employeeCount",
388
+ description="Employee count observed on that date.",
389
+ )
390
+
391
+
392
+ class CompanyEnrichmentCrustdataNaic(BaseModel):
393
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
394
+
395
+ code: str | None = Field(default=None, description="Primary NAICS code.")
396
+ industry: str | None = Field(default=None, description="NAICS industry name.")
397
+ industry_group: str | None = Field(
398
+ default=None, alias="industryGroup", description="NAICS industry group name."
399
+ )
400
+ sector: str | None = Field(default=None, description="NAICS sector name.")
401
+ sub_sector: str | None = Field(
402
+ default=None, alias="subSector", description="NAICS sub-sector name."
403
+ )
404
+ year: int | None = Field(
405
+ default=None, description="NAICS revision year the code belongs to."
406
+ )
407
+
408
+
409
+ class CompanyEnrichmentCrustdataSicCode(BaseModel):
410
+ model_config = ConfigDict(extra="allow")
411
+
412
+ code: str | None = Field(default=None, description="SIC code.")
413
+ industry: str | None = Field(default=None, description="SIC industry name.")
414
+ year: int | None = Field(
415
+ default=None, description="SIC revision year the code belongs to."
416
+ )
417
+
418
+
104
419
  class CompanyEnrichmentCrustdataV3Data(BaseModel):
105
420
  model_config = ConfigDict(extra="allow", populate_by_name=True)
106
421
 
@@ -1392,13 +1707,33 @@ class CompanyEnrichmentNamespace:
1392
1707
  def __init__(self, client: "AnyAPI") -> None:
1393
1708
  self._client = client
1394
1709
 
1710
+ def crustdata(
1711
+ self,
1712
+ *,
1713
+ options: RequestOptions | None = None,
1714
+ **input: Unpack[CompanyEnrichmentCrustdataInput],
1715
+ ) -> RunResult[CompanyEnrichmentCrustdataData]:
1716
+ """Company Enrichment - Crustdata
1717
+
1718
+ Enrich a company by domain, name, LinkedIn URL, or Crustdata identifier.
1719
+
1720
+ Price: $0.096 per request.
1721
+
1722
+ Example:
1723
+ res = client.company_enrichment.crustdata(companyDomain="posthog.com")
1724
+ """
1725
+ raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
1726
+ "company_enrichment.crustdata", dict(input), options
1727
+ )
1728
+ return RunResult[CompanyEnrichmentCrustdataData].model_validate(raw)
1729
+
1395
1730
  def crustdata_v3(
1396
1731
  self,
1397
1732
  *,
1398
1733
  options: RequestOptions | None = None,
1399
1734
  **input: Unpack[CompanyEnrichmentCrustdataV3Input],
1400
1735
  ) -> RunResult[CompanyEnrichmentCrustdataV3Data]:
1401
- """Company Enrichment - Crustdata v3
1736
+ """Company Enrichment - Crustdata v3 (legacy)
1402
1737
 
1403
1738
  Enrich a company by domain, name, LinkedIn URL, or Crustdata identifier.
1404
1739
 
@@ -1485,13 +1820,33 @@ class AsyncCompanyEnrichmentNamespace:
1485
1820
  def __init__(self, client: "AsyncAnyAPI") -> None:
1486
1821
  self._client = client
1487
1822
 
1823
+ async def crustdata(
1824
+ self,
1825
+ *,
1826
+ options: RequestOptions | None = None,
1827
+ **input: Unpack[CompanyEnrichmentCrustdataInput],
1828
+ ) -> RunResult[CompanyEnrichmentCrustdataData]:
1829
+ """Company Enrichment - Crustdata
1830
+
1831
+ Enrich a company by domain, name, LinkedIn URL, or Crustdata identifier.
1832
+
1833
+ Price: $0.096 per request.
1834
+
1835
+ Example:
1836
+ res = client.company_enrichment.crustdata(companyDomain="posthog.com")
1837
+ """
1838
+ raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
1839
+ "company_enrichment.crustdata", dict(input), options
1840
+ )
1841
+ return RunResult[CompanyEnrichmentCrustdataData].model_validate(raw)
1842
+
1488
1843
  async def crustdata_v3(
1489
1844
  self,
1490
1845
  *,
1491
1846
  options: RequestOptions | None = None,
1492
1847
  **input: Unpack[CompanyEnrichmentCrustdataV3Input],
1493
1848
  ) -> RunResult[CompanyEnrichmentCrustdataV3Data]:
1494
- """Company Enrichment - Crustdata v3
1849
+ """Company Enrichment - Crustdata v3 (legacy)
1495
1850
 
1496
1851
  Enrich a company by domain, name, LinkedIn URL, or Crustdata identifier.
1497
1852