@getanyapi/sdk 0.54.1 → 0.56.0
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.
- package/dist/index.cjs +60 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1066 -37
- package/dist/index.d.ts +1066 -37
- package/dist/index.js +60 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1617,7 +1617,7 @@ var CompanyNamespace = class {
|
|
|
1617
1617
|
*
|
|
1618
1618
|
* Research a company from one domain, name, or email and return a cross-checked dossier: what it does, how it talks, who it competes with, its firmographics, its hiring and news signal, and its social presence.
|
|
1619
1619
|
*
|
|
1620
|
-
* Price: $0.
|
|
1620
|
+
* Price: $0.56338 per request.
|
|
1621
1621
|
*
|
|
1622
1622
|
* @example
|
|
1623
1623
|
* const res = await client.company.research({ domain: "stripe.com", maxAgeDays: 7 });
|
|
@@ -1634,7 +1634,20 @@ var CompanyEnrichmentNamespace = class {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
_core;
|
|
1636
1636
|
/**
|
|
1637
|
-
* Company Enrichment - Crustdata
|
|
1637
|
+
* Company Enrichment - Crustdata
|
|
1638
|
+
*
|
|
1639
|
+
* Enrich a company by domain, name, LinkedIn URL, or Crustdata identifier.
|
|
1640
|
+
*
|
|
1641
|
+
* Price: $0.096 per request.
|
|
1642
|
+
*
|
|
1643
|
+
* @example
|
|
1644
|
+
* const res = await client.companyEnrichment.crustdata({ companyDomain: "posthog.com" });
|
|
1645
|
+
*/
|
|
1646
|
+
crustdata(input, options) {
|
|
1647
|
+
return this._core.run("company_enrichment.crustdata", input, options);
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* Company Enrichment - Crustdata v3 (legacy)
|
|
1638
1651
|
*
|
|
1639
1652
|
* Enrich a company by domain, name, LinkedIn URL, or Crustdata identifier.
|
|
1640
1653
|
*
|
|
@@ -1728,7 +1741,36 @@ var CompanySearchNamespace = class {
|
|
|
1728
1741
|
return this._core.run("company_search.ai_ark", input, options);
|
|
1729
1742
|
}
|
|
1730
1743
|
/**
|
|
1731
|
-
* Company Search - Crustdata
|
|
1744
|
+
* Company Search - Crustdata
|
|
1745
|
+
*
|
|
1746
|
+
* Search companies by structured filters with cursor pagination.
|
|
1747
|
+
*
|
|
1748
|
+
* Price: $0.0012 per request plus $0.00144 per result (maximum $0.3612).
|
|
1749
|
+
*
|
|
1750
|
+
* @example
|
|
1751
|
+
* const res = await client.companySearch.crustdata({ filters: { field: "basic_info.primary_domain", type: "=", value: "posthog.com" }, limit: 1 });
|
|
1752
|
+
*/
|
|
1753
|
+
crustdata(input, options) {
|
|
1754
|
+
return this._core.run("company_search.crustdata", input, options);
|
|
1755
|
+
}
|
|
1756
|
+
/**
|
|
1757
|
+
* Iterate every result of Company Search - Crustdata across pages.
|
|
1758
|
+
*
|
|
1759
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
1760
|
+
* result pages instead (each carries its own costUsd).
|
|
1761
|
+
*/
|
|
1762
|
+
iterCrustdata(input, options) {
|
|
1763
|
+
return paginate(
|
|
1764
|
+
this._core,
|
|
1765
|
+
"company_search.crustdata",
|
|
1766
|
+
input,
|
|
1767
|
+
"companies",
|
|
1768
|
+
false,
|
|
1769
|
+
options
|
|
1770
|
+
);
|
|
1771
|
+
}
|
|
1772
|
+
/**
|
|
1773
|
+
* Company Search - Crustdata v3 (legacy)
|
|
1732
1774
|
*
|
|
1733
1775
|
* Search companies by structured filters with cursor pagination.
|
|
1734
1776
|
*
|
|
@@ -1741,7 +1783,7 @@ var CompanySearchNamespace = class {
|
|
|
1741
1783
|
return this._core.run("company_search.crustdata_v3", input, options);
|
|
1742
1784
|
}
|
|
1743
1785
|
/**
|
|
1744
|
-
* Iterate every result of Company Search - Crustdata v3 across pages.
|
|
1786
|
+
* Iterate every result of Company Search - Crustdata v3 (legacy) across pages.
|
|
1745
1787
|
*
|
|
1746
1788
|
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
1747
1789
|
* result pages instead (each carries its own costUsd).
|
|
@@ -4805,7 +4847,20 @@ var PeopleSearchNamespace = class {
|
|
|
4805
4847
|
return this._core.run("people_search.ai_ark", input, options);
|
|
4806
4848
|
}
|
|
4807
4849
|
/**
|
|
4808
|
-
* People Search - Crustdata
|
|
4850
|
+
* People Search - Crustdata
|
|
4851
|
+
*
|
|
4852
|
+
* Find up to 100 professional profiles by company domain and title keywords.
|
|
4853
|
+
*
|
|
4854
|
+
* Price: $0.0012 per request plus $0.00144 per result (maximum $0.1452).
|
|
4855
|
+
*
|
|
4856
|
+
* @example
|
|
4857
|
+
* const res = await client.peopleSearch.crustdata({ companyDomain: "posthog.com", titleKeywords: "engineer", limit: 1 });
|
|
4858
|
+
*/
|
|
4859
|
+
crustdata(input, options) {
|
|
4860
|
+
return this._core.run("people_search.crustdata", input, options);
|
|
4861
|
+
}
|
|
4862
|
+
/**
|
|
4863
|
+
* People Search - Crustdata v3 (legacy)
|
|
4809
4864
|
*
|
|
4810
4865
|
* Find up to 100 professional profiles by company domain and title keywords.
|
|
4811
4866
|
*
|