getanyapi 0.81.0__tar.gz → 0.82.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.
- {getanyapi-0.81.0 → getanyapi-0.82.0}/PKG-INFO +1 -1
- {getanyapi-0.81.0 → getanyapi-0.82.0}/pyproject.toml +1 -1
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/__init__.py +1 -1
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/linkedin.py +335 -2
- {getanyapi-0.81.0 → getanyapi-0.82.0}/.gitignore +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/README.md +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/_account.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/_async_client.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/_client.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/_errors.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/_idempotency.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/_pagination.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/_transport.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/discovery_types.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/__init__.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/ahrefs.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/airbnb.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/alibaba.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/amazon.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/apollo.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/appstore.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/bluesky.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/booking.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/capterra.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/chatgpt.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/coinmarketcap.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/company.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/company_enrichment.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/company_identify.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/company_search.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/congress.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/contact_enrichment.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/douyin.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/ebay.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/email.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/email_finding.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/email_verification.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/facebook.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/fiverr.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/g2.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/gemini.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/github.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/glassdoor.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/google.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/google_ads.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/google_finance.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/google_shopping.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/hackernews.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/indeed.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/instagram.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/job_search.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/maps.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/mobile_phone.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/naver.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/nextdoor.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/people_search.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/perplexity.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/person.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/person_enrichment.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/pexels.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/pinterest.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/playstore.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/polymarket.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/property_records.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/realtor.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/reddit.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/redfin.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/rednote.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/sec.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/semrush.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/seo.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/similarweb.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/snapchat.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/social.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/spotify.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/substack.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/technographics.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/threads.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/tiktok.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/tiktok_shop.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/tripadvisor.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/trustpilot.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/truthsocial.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/twitter.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/unsplash.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/upwork.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/walmart.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/web.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/weibo.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/yahoo_finance.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/yelp.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/youtube.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/zhihu.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/platforms/zillow.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/py.typed +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/src/getanyapi/types.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/conftest.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_account.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_client.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_durable_requests.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_envelope.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_errors.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_fixture_roundtrip.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_fixture_sweep.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_not_found_reason.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_pagination.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/tests/test_transport.py +0 -0
- {getanyapi-0.81.0 → getanyapi-0.82.0}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: getanyapi
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.82.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
|
|
@@ -562,6 +562,178 @@ class LinkedinSearchCompaniesInput(TypedDict, total=False):
|
|
|
562
562
|
"""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`."""
|
|
563
563
|
|
|
564
564
|
|
|
565
|
+
class LinkedinSearchLeadsInput(TypedDict, total=False):
|
|
566
|
+
"""Input for LinkedIn Fast Leads List."""
|
|
567
|
+
|
|
568
|
+
allowFallbacks: NotRequired[bool]
|
|
569
|
+
"""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."""
|
|
570
|
+
companyHeadcount: NotRequired[
|
|
571
|
+
list[Literal["A", "B", "C", "D", "E", "F", "G", "H", "I"]]
|
|
572
|
+
]
|
|
573
|
+
"""Filter by current company size (employee count). Codes: A=Self-Employed, B=1-10, C=11-50, D=51-200, E=201-500, F=501-1,000, G=1,001-5,000, H=5,001-10,000, I=10,001+."""
|
|
574
|
+
companyHeadquarterLocations: NotRequired[list[str]]
|
|
575
|
+
"""Filter by the location of the person's current company headquarters, by place name (e.g. ['United States']). Commas are not allowed in a value. Up to 70 values."""
|
|
576
|
+
currentCompanies: NotRequired[list[str]]
|
|
577
|
+
"""Filter to people who currently work at any of these companies, by name (e.g. ['Google','Meta']). Multiple names widen the match (OR). Commas are not allowed in a value. Up to 50 values."""
|
|
578
|
+
excludeCompanyHeadquarterLocations: NotRequired[list[str]]
|
|
579
|
+
"""Exclude people whose current company is headquartered in any of these locations. Commas are not allowed in a value. Up to 70 values."""
|
|
580
|
+
excludeCurrentCompanies: NotRequired[list[str]]
|
|
581
|
+
"""Exclude people who currently work at any of these companies, by name. Commas are not allowed in a value. Up to 50 values."""
|
|
582
|
+
excludeCurrentJobTitles: NotRequired[list[str]]
|
|
583
|
+
"""Exclude people whose current job title matches any of these. Commas are not allowed in a value. Up to 70 values."""
|
|
584
|
+
excludeFunctionIds: NotRequired[
|
|
585
|
+
list[
|
|
586
|
+
Literal[
|
|
587
|
+
"1",
|
|
588
|
+
"2",
|
|
589
|
+
"3",
|
|
590
|
+
"4",
|
|
591
|
+
"5",
|
|
592
|
+
"6",
|
|
593
|
+
"7",
|
|
594
|
+
"8",
|
|
595
|
+
"9",
|
|
596
|
+
"10",
|
|
597
|
+
"11",
|
|
598
|
+
"12",
|
|
599
|
+
"13",
|
|
600
|
+
"14",
|
|
601
|
+
"15",
|
|
602
|
+
"16",
|
|
603
|
+
"17",
|
|
604
|
+
"18",
|
|
605
|
+
"19",
|
|
606
|
+
"20",
|
|
607
|
+
"21",
|
|
608
|
+
"22",
|
|
609
|
+
"23",
|
|
610
|
+
"24",
|
|
611
|
+
"25",
|
|
612
|
+
"26",
|
|
613
|
+
]
|
|
614
|
+
]
|
|
615
|
+
]
|
|
616
|
+
"""Exclude these job functions (same codes as functionIds). Up to 30 values."""
|
|
617
|
+
excludeLocations: NotRequired[list[str]]
|
|
618
|
+
"""Exclude people in any of these locations, by place name. Commas are not allowed in a value. Up to 70 values."""
|
|
619
|
+
excludePastCompanies: NotRequired[list[str]]
|
|
620
|
+
"""Exclude people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values."""
|
|
621
|
+
excludePastJobTitles: NotRequired[list[str]]
|
|
622
|
+
"""Exclude people who held any of these past job titles. Commas are not allowed in a value. Up to 70 values."""
|
|
623
|
+
excludeSchools: NotRequired[list[str]]
|
|
624
|
+
"""Exclude people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values."""
|
|
625
|
+
excludeSeniorityLevelIds: NotRequired[
|
|
626
|
+
list[
|
|
627
|
+
Literal[
|
|
628
|
+
"100", "110", "120", "130", "200", "210", "220", "300", "310", "320"
|
|
629
|
+
]
|
|
630
|
+
]
|
|
631
|
+
]
|
|
632
|
+
"""Exclude these seniority levels (same codes as seniorityLevelIds). Up to 20 values."""
|
|
633
|
+
firstNames: NotRequired[list[str]]
|
|
634
|
+
"""Filter to people whose first name matches any of these. Commas are not allowed in a value. Up to 70 values."""
|
|
635
|
+
functionIds: NotRequired[
|
|
636
|
+
list[
|
|
637
|
+
Literal[
|
|
638
|
+
"1",
|
|
639
|
+
"2",
|
|
640
|
+
"3",
|
|
641
|
+
"4",
|
|
642
|
+
"5",
|
|
643
|
+
"6",
|
|
644
|
+
"7",
|
|
645
|
+
"8",
|
|
646
|
+
"9",
|
|
647
|
+
"10",
|
|
648
|
+
"11",
|
|
649
|
+
"12",
|
|
650
|
+
"13",
|
|
651
|
+
"14",
|
|
652
|
+
"15",
|
|
653
|
+
"16",
|
|
654
|
+
"17",
|
|
655
|
+
"18",
|
|
656
|
+
"19",
|
|
657
|
+
"20",
|
|
658
|
+
"21",
|
|
659
|
+
"22",
|
|
660
|
+
"23",
|
|
661
|
+
"24",
|
|
662
|
+
"25",
|
|
663
|
+
"26",
|
|
664
|
+
]
|
|
665
|
+
]
|
|
666
|
+
]
|
|
667
|
+
"""Filter by job function. Codes: 1=Accounting, 2=Administrative, 3=Arts and Design, 4=Business Development, 5=Community and Social Services, 6=Consulting, 7=Education, 8=Engineering, 9=Entrepreneurship, 10=Finance, 11=Healthcare Services, 12=Human Resources, 13=Information Technology, 14=Legal, 15=Marketing, 16=Media and Communication, 17=Military and Protective Services, 18=Operations, 19=Product Management, 20=Program and Project Management, 21=Purchasing, 22=Quality Assurance, 23=Real Estate, 24=Research, 25=Sales, 26=Customer Success and Support."""
|
|
668
|
+
ignoreSources: NotRequired[list[str]]
|
|
669
|
+
"""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."""
|
|
670
|
+
jobTitle: NotRequired[str]
|
|
671
|
+
"""Optional current job title filter (e.g. 'Software Engineer'). Commas are not allowed in a value."""
|
|
672
|
+
lastNames: NotRequired[list[str]]
|
|
673
|
+
"""Filter to people whose last name matches any of these. Commas are not allowed in a value. Up to 70 values."""
|
|
674
|
+
location: NotRequired[str]
|
|
675
|
+
"""Optional location filter (e.g. 'San Francisco'). Commas are not allowed in a value."""
|
|
676
|
+
page: NotRequired[int]
|
|
677
|
+
"""Which page of up to 25 leads to return, starting at 1 (1-100, default 1). Each page is billed as one request. Range: 1 to 100. Default: 1."""
|
|
678
|
+
pastCompanies: NotRequired[list[str]]
|
|
679
|
+
"""Filter to people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values."""
|
|
680
|
+
pastJobTitles: NotRequired[list[str]]
|
|
681
|
+
"""Filter by a past job title the person held (e.g. ['Product Manager']). Commas are not allowed in a value. Up to 70 values."""
|
|
682
|
+
preferLatencyUnderMs: NotRequired[int]
|
|
683
|
+
"""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."""
|
|
684
|
+
profileLanguages: NotRequired[
|
|
685
|
+
list[
|
|
686
|
+
Literal[
|
|
687
|
+
"Arabic",
|
|
688
|
+
"English",
|
|
689
|
+
"Spanish",
|
|
690
|
+
"Portuguese",
|
|
691
|
+
"Chinese",
|
|
692
|
+
"French",
|
|
693
|
+
"Italian",
|
|
694
|
+
"Russian",
|
|
695
|
+
"German",
|
|
696
|
+
"Dutch",
|
|
697
|
+
"Turkish",
|
|
698
|
+
"Tagalog",
|
|
699
|
+
"Polish",
|
|
700
|
+
"Korean",
|
|
701
|
+
"Japanese",
|
|
702
|
+
"Malay",
|
|
703
|
+
"Norwegian",
|
|
704
|
+
"Danish",
|
|
705
|
+
"Romanian",
|
|
706
|
+
"Swedish",
|
|
707
|
+
"Bahasa Indonesia",
|
|
708
|
+
"Czech",
|
|
709
|
+
]
|
|
710
|
+
]
|
|
711
|
+
]
|
|
712
|
+
"""Filter by the profile's primary language."""
|
|
713
|
+
query: Required[str]
|
|
714
|
+
"""Search query for LinkedIn profiles: a role, name, or keywords (e.g. 'Marketing Manager')."""
|
|
715
|
+
recentlyChangedJobs: NotRequired[bool]
|
|
716
|
+
"""When true, only return people who recently changed jobs (a strong sales/recruiting signal)."""
|
|
717
|
+
recentlyPostedOnLinkedIn: NotRequired[bool]
|
|
718
|
+
"""When true, only return people who recently posted on LinkedIn (an activity signal)."""
|
|
719
|
+
schools: NotRequired[list[str]]
|
|
720
|
+
"""Filter to people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values."""
|
|
721
|
+
seniorityLevelIds: NotRequired[
|
|
722
|
+
list[
|
|
723
|
+
Literal[
|
|
724
|
+
"100", "110", "120", "130", "200", "210", "220", "300", "310", "320"
|
|
725
|
+
]
|
|
726
|
+
]
|
|
727
|
+
]
|
|
728
|
+
"""Filter by seniority level. Codes: 100=In Training, 110=Entry Level, 120=Senior, 130=Strategic, 200=Entry Level Manager, 210=Experienced Manager, 220=Director, 300=Vice President, 310=CXO, 320=Owner/Partner."""
|
|
729
|
+
source: NotRequired[list[str]]
|
|
730
|
+
"""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`."""
|
|
731
|
+
yearsAtCurrentCompanyIds: NotRequired[list[Literal["1", "2", "3", "4", "5"]]]
|
|
732
|
+
"""Filter by tenure at the current company. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years."""
|
|
733
|
+
yearsOfExperienceIds: NotRequired[list[Literal["1", "2", "3", "4", "5"]]]
|
|
734
|
+
"""Filter by total years of experience. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years."""
|
|
735
|
+
|
|
736
|
+
|
|
565
737
|
class LinkedinSearchPostsInput(TypedDict, total=False):
|
|
566
738
|
"""Input for LinkedIn Post Search."""
|
|
567
739
|
|
|
@@ -3580,6 +3752,117 @@ class LinkedinSearchCompaniesItem(BaseModel):
|
|
|
3580
3752
|
)
|
|
3581
3753
|
|
|
3582
3754
|
|
|
3755
|
+
class LinkedinSearchLeadsData(BaseModel):
|
|
3756
|
+
model_config = ConfigDict(populate_by_name=True)
|
|
3757
|
+
|
|
3758
|
+
items: list[LinkedinSearchLeadsItem] = Field(
|
|
3759
|
+
description="Matching leads, up to 25 per page. Populated whenever the provider has data for the entity."
|
|
3760
|
+
)
|
|
3761
|
+
page: int | None = Field(
|
|
3762
|
+
default=None, description="The page this response holds, starting at 1."
|
|
3763
|
+
)
|
|
3764
|
+
total_pages: int | None = Field(
|
|
3765
|
+
default=None,
|
|
3766
|
+
alias="totalPages",
|
|
3767
|
+
description="How many pages of up to 25 leads the search has.",
|
|
3768
|
+
)
|
|
3769
|
+
total_results: int | None = Field(
|
|
3770
|
+
default=None,
|
|
3771
|
+
alias="totalResults",
|
|
3772
|
+
description="How many leads match the search in total, across every page.",
|
|
3773
|
+
)
|
|
3774
|
+
|
|
3775
|
+
|
|
3776
|
+
class LinkedinSearchLeadsItem(BaseModel):
|
|
3777
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
3778
|
+
|
|
3779
|
+
about: str | None = Field(
|
|
3780
|
+
default=None, description="Profile summary text, when the member wrote one."
|
|
3781
|
+
)
|
|
3782
|
+
current_positions: list[LinkedinSearchLeadsCurrentPosition] | None = Field(
|
|
3783
|
+
default=None,
|
|
3784
|
+
alias="currentPositions",
|
|
3785
|
+
description="Current roles. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
3786
|
+
)
|
|
3787
|
+
first_name: str | None = Field(
|
|
3788
|
+
default=None,
|
|
3789
|
+
alias="firstName",
|
|
3790
|
+
description="Member's first name. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
3791
|
+
)
|
|
3792
|
+
id: str | None = Field(
|
|
3793
|
+
default=None, description="LinkedIn member id, the last segment of `url`."
|
|
3794
|
+
)
|
|
3795
|
+
image: str | None = Field(
|
|
3796
|
+
default=None,
|
|
3797
|
+
description="Profile picture URL. The query string is a signed token, so keep the URL intact. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
3798
|
+
)
|
|
3799
|
+
last_name: str | None = Field(
|
|
3800
|
+
default=None,
|
|
3801
|
+
alias="lastName",
|
|
3802
|
+
description="Member's last name. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
3803
|
+
)
|
|
3804
|
+
location: str | None = Field(
|
|
3805
|
+
default=None,
|
|
3806
|
+
description="Member's location as a single string (city, region, country). Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
3807
|
+
)
|
|
3808
|
+
open_profile: bool | None = Field(
|
|
3809
|
+
default=None,
|
|
3810
|
+
alias="openProfile",
|
|
3811
|
+
description="Whether the member accepts messages from people outside their network.",
|
|
3812
|
+
)
|
|
3813
|
+
premium: bool | None = Field(
|
|
3814
|
+
default=None,
|
|
3815
|
+
description="Whether the member has a LinkedIn Premium subscription.",
|
|
3816
|
+
)
|
|
3817
|
+
url: str = Field(
|
|
3818
|
+
description="LinkedIn profile URL in its member-id form (https://www.linkedin.com/in/ACwAAA...). It opens the profile on LinkedIn, and passing it as `url` to linkedin.profile returns the full record. Populated whenever the provider has data for the entity."
|
|
3819
|
+
)
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
class LinkedinSearchLeadsCurrentPosition(BaseModel):
|
|
3823
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
3824
|
+
|
|
3825
|
+
company_id: str | None = Field(
|
|
3826
|
+
default=None, alias="companyId", description="LinkedIn company id."
|
|
3827
|
+
)
|
|
3828
|
+
company_linkedin_url: str | None = Field(
|
|
3829
|
+
default=None,
|
|
3830
|
+
alias="companyLinkedinUrl",
|
|
3831
|
+
description="LinkedIn company page URL.",
|
|
3832
|
+
)
|
|
3833
|
+
company_name: str | None = Field(
|
|
3834
|
+
default=None, alias="companyName", description="Company name."
|
|
3835
|
+
)
|
|
3836
|
+
started_on: LinkedinSearchLeadsStartedOn | None = Field(
|
|
3837
|
+
default=None,
|
|
3838
|
+
alias="startedOn",
|
|
3839
|
+
description="When the role started, as `month` (1-12, when shown) and `year`.",
|
|
3840
|
+
)
|
|
3841
|
+
tenure_at_company: LinkedinSearchLeadsTenureAtCompany | None = Field(
|
|
3842
|
+
default=None,
|
|
3843
|
+
alias="tenureAtCompany",
|
|
3844
|
+
description="Time at this company, as `numYears` and `numMonths`.",
|
|
3845
|
+
)
|
|
3846
|
+
tenure_at_position: LinkedinSearchLeadsTenureAtPosition | None = Field(
|
|
3847
|
+
default=None,
|
|
3848
|
+
alias="tenureAtPosition",
|
|
3849
|
+
description="Time in this role, as `numYears` and `numMonths`.",
|
|
3850
|
+
)
|
|
3851
|
+
title: str | None = Field(default=None, description="Job title.")
|
|
3852
|
+
|
|
3853
|
+
|
|
3854
|
+
class LinkedinSearchLeadsStartedOn(BaseModel):
|
|
3855
|
+
model_config = ConfigDict(extra="allow")
|
|
3856
|
+
|
|
3857
|
+
|
|
3858
|
+
class LinkedinSearchLeadsTenureAtCompany(BaseModel):
|
|
3859
|
+
model_config = ConfigDict(extra="allow")
|
|
3860
|
+
|
|
3861
|
+
|
|
3862
|
+
class LinkedinSearchLeadsTenureAtPosition(BaseModel):
|
|
3863
|
+
model_config = ConfigDict(extra="allow")
|
|
3864
|
+
|
|
3865
|
+
|
|
3583
3866
|
class LinkedinSearchPostsData(BaseModel):
|
|
3584
3867
|
model_config = ConfigDict(populate_by_name=True)
|
|
3585
3868
|
|
|
@@ -4592,6 +4875,31 @@ class LinkedinNamespace:
|
|
|
4592
4875
|
)
|
|
4593
4876
|
return RunResult[LinkedinSearchCompaniesData].model_validate(raw)
|
|
4594
4877
|
|
|
4878
|
+
def search_leads(
|
|
4879
|
+
self,
|
|
4880
|
+
*,
|
|
4881
|
+
options: RequestOptions | None = None,
|
|
4882
|
+
**input: Unpack[LinkedinSearchLeadsInput],
|
|
4883
|
+
) -> RunResult[LinkedinSearchLeadsData]:
|
|
4884
|
+
"""LinkedIn Fast Leads List
|
|
4885
|
+
|
|
4886
|
+
Fast LinkedIn leads list: one call returns a page of up to 25 people
|
|
4887
|
+
matching a keyword and optional filters (location, job title, company,
|
|
4888
|
+
school, seniority, function, company size, and more), each with name,
|
|
4889
|
+
current positions, location, summary, and photo. Each lead's url opens the
|
|
4890
|
+
profile and can be passed to linkedin.profile for the full record. For full
|
|
4891
|
+
profiles in one call use linkedin.search_profiles.
|
|
4892
|
+
|
|
4893
|
+
Price: $0.07 per request.
|
|
4894
|
+
|
|
4895
|
+
Example:
|
|
4896
|
+
res = client.linkedin.search_leads(currentCompanies=["Google"], query="engineer")
|
|
4897
|
+
"""
|
|
4898
|
+
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
4899
|
+
"linkedin.search_leads", dict(input), options
|
|
4900
|
+
)
|
|
4901
|
+
return RunResult[LinkedinSearchLeadsData].model_validate(raw)
|
|
4902
|
+
|
|
4595
4903
|
def search_posts(
|
|
4596
4904
|
self,
|
|
4597
4905
|
*,
|
|
@@ -4673,7 +4981,7 @@ class LinkedinNamespace:
|
|
|
4673
4981
|
linkedin.search_profiles_thin; add emails with
|
|
4674
4982
|
linkedin.search_profiles_email.
|
|
4675
4983
|
|
|
4676
|
-
Price: $0.
|
|
4984
|
+
Price: $0.08 per request plus $0.004 per result (maximum $0.18).
|
|
4677
4985
|
|
|
4678
4986
|
Example:
|
|
4679
4987
|
res = client.linkedin.search_profiles(currentCompanies=["Google"], limit=3, query="engineer")
|
|
@@ -5286,6 +5594,31 @@ class AsyncLinkedinNamespace:
|
|
|
5286
5594
|
)
|
|
5287
5595
|
return RunResult[LinkedinSearchCompaniesData].model_validate(raw)
|
|
5288
5596
|
|
|
5597
|
+
async def search_leads(
|
|
5598
|
+
self,
|
|
5599
|
+
*,
|
|
5600
|
+
options: RequestOptions | None = None,
|
|
5601
|
+
**input: Unpack[LinkedinSearchLeadsInput],
|
|
5602
|
+
) -> RunResult[LinkedinSearchLeadsData]:
|
|
5603
|
+
"""LinkedIn Fast Leads List
|
|
5604
|
+
|
|
5605
|
+
Fast LinkedIn leads list: one call returns a page of up to 25 people
|
|
5606
|
+
matching a keyword and optional filters (location, job title, company,
|
|
5607
|
+
school, seniority, function, company size, and more), each with name,
|
|
5608
|
+
current positions, location, summary, and photo. Each lead's url opens the
|
|
5609
|
+
profile and can be passed to linkedin.profile for the full record. For full
|
|
5610
|
+
profiles in one call use linkedin.search_profiles.
|
|
5611
|
+
|
|
5612
|
+
Price: $0.07 per request.
|
|
5613
|
+
|
|
5614
|
+
Example:
|
|
5615
|
+
res = client.linkedin.search_leads(currentCompanies=["Google"], query="engineer")
|
|
5616
|
+
"""
|
|
5617
|
+
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
5618
|
+
"linkedin.search_leads", dict(input), options
|
|
5619
|
+
)
|
|
5620
|
+
return RunResult[LinkedinSearchLeadsData].model_validate(raw)
|
|
5621
|
+
|
|
5289
5622
|
async def search_posts(
|
|
5290
5623
|
self,
|
|
5291
5624
|
*,
|
|
@@ -5367,7 +5700,7 @@ class AsyncLinkedinNamespace:
|
|
|
5367
5700
|
linkedin.search_profiles_thin; add emails with
|
|
5368
5701
|
linkedin.search_profiles_email.
|
|
5369
5702
|
|
|
5370
|
-
Price: $0.
|
|
5703
|
+
Price: $0.08 per request plus $0.004 per result (maximum $0.18).
|
|
5371
5704
|
|
|
5372
5705
|
Example:
|
|
5373
5706
|
res = client.linkedin.search_profiles(currentCompanies=["Google"], limit=3, query="engineer")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|