getanyapi 0.51.0__tar.gz → 0.52.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.51.0 → getanyapi-0.52.0}/PKG-INFO +1 -1
- {getanyapi-0.51.0 → getanyapi-0.52.0}/pyproject.toml +1 -1
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/__init__.py +1 -1
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/google.py +2 -2
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/instagram.py +175 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/.gitignore +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/README.md +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/_account.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/_async_client.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/_client.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/_errors.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/_idempotency.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/_pagination.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/_transport.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/discovery_types.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/__init__.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/ahrefs.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/airbnb.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/alibaba.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/amazon.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/apollo.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/appstore.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/bluesky.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/booking.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/capterra.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/chatgpt.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/coinmarketcap.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/company.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/company_enrichment.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/company_identify.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/company_search.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/congress.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/contact_enrichment.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/douyin.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/ebay.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/email.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/email_finding.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/email_verification.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/facebook.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/fiverr.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/g2.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/gemini.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/github.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/glassdoor.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/google_ads.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/google_finance.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/google_shopping.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/hackernews.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/indeed.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/job_search.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/linkedin.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/maps.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/mobile_phone.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/naver.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/nextdoor.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/people_search.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/perplexity.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/person.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/person_enrichment.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/pinterest.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/playstore.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/polymarket.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/property_records.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/realtor.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/reddit.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/redfin.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/rednote.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/sec.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/semrush.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/seo.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/similarweb.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/snapchat.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/social.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/spotify.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/substack.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/technographics.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/threads.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/tiktok.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/tiktok_shop.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/tripadvisor.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/trustpilot.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/truthsocial.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/twitter.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/upwork.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/walmart.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/web.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/weibo.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/yahoo_finance.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/yelp.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/youtube.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/zhihu.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/platforms/zillow.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/py.typed +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/src/getanyapi/types.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/conftest.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_account.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_client.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_durable_requests.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_envelope.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_errors.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_fixture_roundtrip.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_fixture_sweep.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_not_found_reason.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_pagination.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.0}/tests/test_transport.py +0 -0
- {getanyapi-0.51.0 → getanyapi-0.52.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.52.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
|
|
@@ -788,7 +788,7 @@ class GoogleNamespace:
|
|
|
788
788
|
further, or use google.search_100 for up to 100 ranked results in one call,
|
|
789
789
|
which is cheaper past roughly 20 results.
|
|
790
790
|
|
|
791
|
-
Price: $0.
|
|
791
|
+
Price: $0.0004 per request.
|
|
792
792
|
|
|
793
793
|
Example:
|
|
794
794
|
res = client.google.search(gl="us", hl="en", limit=10, query="best coffee maker")
|
|
@@ -1053,7 +1053,7 @@ class AsyncGoogleNamespace:
|
|
|
1053
1053
|
further, or use google.search_100 for up to 100 ranked results in one call,
|
|
1054
1054
|
which is cheaper past roughly 20 results.
|
|
1055
1055
|
|
|
1056
|
-
Price: $0.
|
|
1056
|
+
Price: $0.0004 per request.
|
|
1057
1057
|
|
|
1058
1058
|
Example:
|
|
1059
1059
|
res = client.google.search(gl="us", hl="en", limit=10, query="best coffee maker")
|
|
@@ -459,6 +459,25 @@ class InstagramSearchProfilesInput(TypedDict, total=False):
|
|
|
459
459
|
"""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`."""
|
|
460
460
|
|
|
461
461
|
|
|
462
|
+
class InstagramSearchProfilesContactInput(TypedDict, total=False):
|
|
463
|
+
"""Input for Instagram Profile Search with Contact."""
|
|
464
|
+
|
|
465
|
+
allowFallbacks: NotRequired[bool]
|
|
466
|
+
"""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."""
|
|
467
|
+
cursor: NotRequired[str]
|
|
468
|
+
"""Pagination cursor returned by a previous response."""
|
|
469
|
+
ignoreSources: NotRequired[list[str]]
|
|
470
|
+
"""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."""
|
|
471
|
+
limit: NotRequired[int]
|
|
472
|
+
"""Most profiles to return on this page, 1 to 12. Range: 1 to 12. Default: 8."""
|
|
473
|
+
preferLatencyUnderMs: NotRequired[int]
|
|
474
|
+
"""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."""
|
|
475
|
+
query: Required[str]
|
|
476
|
+
"""Bio or caption keyword/phrase to search for."""
|
|
477
|
+
source: NotRequired[list[str]]
|
|
478
|
+
"""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`."""
|
|
479
|
+
|
|
480
|
+
|
|
462
481
|
class InstagramSimilarProfilesInput(TypedDict, total=False):
|
|
463
482
|
"""Input for Instagram Similar Profiles."""
|
|
464
483
|
|
|
@@ -1986,6 +2005,68 @@ class InstagramSearchProfilesProfile(BaseModel):
|
|
|
1986
2005
|
verified: bool
|
|
1987
2006
|
|
|
1988
2007
|
|
|
2008
|
+
class InstagramSearchProfilesContactData(BaseModel):
|
|
2009
|
+
model_config = ConfigDict(populate_by_name=True)
|
|
2010
|
+
|
|
2011
|
+
next_cursor: str | None = Field(
|
|
2012
|
+
alias="nextCursor",
|
|
2013
|
+
description="Opaque cursor for the next page of profiles, or null when there are no more. Pass it back as cursor to continue.",
|
|
2014
|
+
)
|
|
2015
|
+
profiles: list[InstagramSearchProfilesContactProfile] = Field(
|
|
2016
|
+
description="Matching public profiles with the contact details each account publishes. Populated whenever the provider has data for the entity."
|
|
2017
|
+
)
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
class InstagramSearchProfilesContactProfile(BaseModel):
|
|
2021
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
2022
|
+
|
|
2023
|
+
avatar_url: str = Field(
|
|
2024
|
+
alias="avatarUrl",
|
|
2025
|
+
description="Profile picture URL. Populated whenever the provider has data for the entity.",
|
|
2026
|
+
)
|
|
2027
|
+
bio: str = Field(
|
|
2028
|
+
description="Profile bio text. Populated whenever the provider has data for the entity."
|
|
2029
|
+
)
|
|
2030
|
+
country: str | None = Field(
|
|
2031
|
+
default=None,
|
|
2032
|
+
description="Country the account is based in, from the account's About panel. Absent when Instagram does not show it. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
2033
|
+
)
|
|
2034
|
+
display_name: str = Field(
|
|
2035
|
+
alias="displayName",
|
|
2036
|
+
description="Display name on the profile. Populated whenever the provider has data for the entity.",
|
|
2037
|
+
)
|
|
2038
|
+
email: str | None = Field(
|
|
2039
|
+
default=None,
|
|
2040
|
+
description="Public contact email the account lists. Absent when the account does not publish one. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
2041
|
+
)
|
|
2042
|
+
external_url: str | None = Field(
|
|
2043
|
+
default=None,
|
|
2044
|
+
alias="externalUrl",
|
|
2045
|
+
description="External link the account lists in its bio.",
|
|
2046
|
+
)
|
|
2047
|
+
followers: int = Field(
|
|
2048
|
+
description="Follower count, or 0 when Instagram did not report it."
|
|
2049
|
+
)
|
|
2050
|
+
following: int = Field(description="Number of accounts this profile follows.")
|
|
2051
|
+
handle: str = Field(
|
|
2052
|
+
description="Instagram username, without the @. Populated whenever the provider has data for the entity."
|
|
2053
|
+
)
|
|
2054
|
+
id: str = Field(
|
|
2055
|
+
description="Instagram account id. Populated whenever the provider has data for the entity."
|
|
2056
|
+
)
|
|
2057
|
+
joined: str | None = Field(
|
|
2058
|
+
default=None,
|
|
2059
|
+
description='Month and year the account joined Instagram, as shown on its About panel, for example "October 2013". Absent when not shown. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.',
|
|
2060
|
+
)
|
|
2061
|
+
phone: str | None = Field(
|
|
2062
|
+
default=None,
|
|
2063
|
+
description="Public contact phone number the account lists, in international format. Absent when the account does not publish one.",
|
|
2064
|
+
)
|
|
2065
|
+
posts: int = Field(description="Number of posts on the profile.")
|
|
2066
|
+
url: str | None = Field(default=None, description="Canonical URL of the profile.")
|
|
2067
|
+
verified: bool = Field(description="Whether the account has a verified badge.")
|
|
2068
|
+
|
|
2069
|
+
|
|
1989
2070
|
class InstagramSimilarProfilesData(BaseModel):
|
|
1990
2071
|
profiles: list[InstagramSimilarProfilesProfile] = Field(
|
|
1991
2072
|
description="Accounts Instagram recommends as similar to the requested profile. Populated whenever the provider has data for the entity."
|
|
@@ -3441,6 +3522,53 @@ class InstagramNamespace:
|
|
|
3441
3522
|
options=options,
|
|
3442
3523
|
)
|
|
3443
3524
|
|
|
3525
|
+
def search_profiles_contact(
|
|
3526
|
+
self,
|
|
3527
|
+
*,
|
|
3528
|
+
options: RequestOptions | None = None,
|
|
3529
|
+
**input: Unpack[InstagramSearchProfilesContactInput],
|
|
3530
|
+
) -> RunResult[InstagramSearchProfilesContactData]:
|
|
3531
|
+
"""Instagram Profile Search with Contact
|
|
3532
|
+
|
|
3533
|
+
Search public Instagram profiles by a bio or caption keyword and get each
|
|
3534
|
+
account's country, the month it joined, and the public email and phone
|
|
3535
|
+
number it lists. Charged per profile that comes back with those details.
|
|
3536
|
+
|
|
3537
|
+
Price: $0.0036 per request plus $0.0036 per result (maximum $0.09).
|
|
3538
|
+
|
|
3539
|
+
Example:
|
|
3540
|
+
res = client.instagram.search_profiles_contact(query="skincare")
|
|
3541
|
+
"""
|
|
3542
|
+
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
3543
|
+
"instagram.search_profiles_contact", dict(input), options
|
|
3544
|
+
)
|
|
3545
|
+
return RunResult[InstagramSearchProfilesContactData].model_validate(raw)
|
|
3546
|
+
|
|
3547
|
+
def iter_search_profiles_contact(
|
|
3548
|
+
self,
|
|
3549
|
+
*,
|
|
3550
|
+
options: RequestOptions | None = None,
|
|
3551
|
+
**input: Unpack[InstagramSearchProfilesContactInput],
|
|
3552
|
+
) -> Paginator[
|
|
3553
|
+
InstagramSearchProfilesContactProfile, InstagramSearchProfilesContactData
|
|
3554
|
+
]:
|
|
3555
|
+
"""Iterate Instagram Profile Search with Contact results, following pagination cursors.
|
|
3556
|
+
|
|
3557
|
+
Yields validated `InstagramSearchProfilesContactProfile` items from the `profiles` field of
|
|
3558
|
+
each page. Use `.pages()` on the returned paginator to walk whole
|
|
3559
|
+
`RunResult` pages.
|
|
3560
|
+
"""
|
|
3561
|
+
return paginate(
|
|
3562
|
+
self._client,
|
|
3563
|
+
"instagram.search_profiles_contact",
|
|
3564
|
+
dict(input),
|
|
3565
|
+
"profiles",
|
|
3566
|
+
item_model=InstagramSearchProfilesContactProfile,
|
|
3567
|
+
data_model=InstagramSearchProfilesContactData,
|
|
3568
|
+
bare=False,
|
|
3569
|
+
options=options,
|
|
3570
|
+
)
|
|
3571
|
+
|
|
3444
3572
|
def similar_profiles(
|
|
3445
3573
|
self,
|
|
3446
3574
|
*,
|
|
@@ -4522,6 +4650,53 @@ class AsyncInstagramNamespace:
|
|
|
4522
4650
|
options=options,
|
|
4523
4651
|
)
|
|
4524
4652
|
|
|
4653
|
+
async def search_profiles_contact(
|
|
4654
|
+
self,
|
|
4655
|
+
*,
|
|
4656
|
+
options: RequestOptions | None = None,
|
|
4657
|
+
**input: Unpack[InstagramSearchProfilesContactInput],
|
|
4658
|
+
) -> RunResult[InstagramSearchProfilesContactData]:
|
|
4659
|
+
"""Instagram Profile Search with Contact
|
|
4660
|
+
|
|
4661
|
+
Search public Instagram profiles by a bio or caption keyword and get each
|
|
4662
|
+
account's country, the month it joined, and the public email and phone
|
|
4663
|
+
number it lists. Charged per profile that comes back with those details.
|
|
4664
|
+
|
|
4665
|
+
Price: $0.0036 per request plus $0.0036 per result (maximum $0.09).
|
|
4666
|
+
|
|
4667
|
+
Example:
|
|
4668
|
+
res = client.instagram.search_profiles_contact(query="skincare")
|
|
4669
|
+
"""
|
|
4670
|
+
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
4671
|
+
"instagram.search_profiles_contact", dict(input), options
|
|
4672
|
+
)
|
|
4673
|
+
return RunResult[InstagramSearchProfilesContactData].model_validate(raw)
|
|
4674
|
+
|
|
4675
|
+
def iter_search_profiles_contact(
|
|
4676
|
+
self,
|
|
4677
|
+
*,
|
|
4678
|
+
options: RequestOptions | None = None,
|
|
4679
|
+
**input: Unpack[InstagramSearchProfilesContactInput],
|
|
4680
|
+
) -> AsyncPaginator[
|
|
4681
|
+
InstagramSearchProfilesContactProfile, InstagramSearchProfilesContactData
|
|
4682
|
+
]:
|
|
4683
|
+
"""Iterate Instagram Profile Search with Contact results, following pagination cursors.
|
|
4684
|
+
|
|
4685
|
+
Yields validated `InstagramSearchProfilesContactProfile` items from the `profiles` field of
|
|
4686
|
+
each page. Use `.pages()` on the returned paginator to walk whole
|
|
4687
|
+
`RunResult` pages.
|
|
4688
|
+
"""
|
|
4689
|
+
return apaginate(
|
|
4690
|
+
self._client,
|
|
4691
|
+
"instagram.search_profiles_contact",
|
|
4692
|
+
dict(input),
|
|
4693
|
+
"profiles",
|
|
4694
|
+
item_model=InstagramSearchProfilesContactProfile,
|
|
4695
|
+
data_model=InstagramSearchProfilesContactData,
|
|
4696
|
+
bare=False,
|
|
4697
|
+
options=options,
|
|
4698
|
+
)
|
|
4699
|
+
|
|
4525
4700
|
async def similar_profiles(
|
|
4526
4701
|
self,
|
|
4527
4702
|
*,
|
|
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
|