getanyapi 0.76.0__tar.gz → 0.77.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.76.0 → getanyapi-0.77.0}/PKG-INFO +1 -1
- {getanyapi-0.76.0 → getanyapi-0.77.0}/pyproject.toml +1 -1
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/__init__.py +1 -1
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/google.py +2 -2
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/youtube.py +71 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/.gitignore +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/README.md +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/_account.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/_async_client.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/_client.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/_errors.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/_idempotency.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/_pagination.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/_transport.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/discovery_types.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/__init__.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/ahrefs.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/airbnb.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/alibaba.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/amazon.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/apollo.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/appstore.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/bluesky.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/booking.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/capterra.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/chatgpt.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/coinmarketcap.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/company.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/company_enrichment.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/company_identify.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/company_search.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/congress.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/contact_enrichment.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/douyin.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/ebay.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/email.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/email_finding.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/email_verification.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/facebook.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/fiverr.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/g2.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/gemini.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/github.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/glassdoor.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/google_ads.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/google_finance.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/google_shopping.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/hackernews.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/indeed.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/instagram.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/job_search.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/linkedin.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/maps.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/mobile_phone.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/naver.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/nextdoor.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/people_search.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/perplexity.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/person.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/person_enrichment.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/pinterest.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/playstore.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/polymarket.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/property_records.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/realtor.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/reddit.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/redfin.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/rednote.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/sec.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/semrush.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/seo.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/similarweb.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/snapchat.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/social.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/spotify.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/substack.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/technographics.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/threads.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/tiktok.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/tiktok_shop.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/tripadvisor.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/trustpilot.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/truthsocial.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/twitter.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/upwork.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/walmart.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/web.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/weibo.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/yahoo_finance.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/yelp.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/zhihu.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/platforms/zillow.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/py.typed +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/src/getanyapi/types.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/conftest.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_account.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_client.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_durable_requests.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_envelope.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_errors.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_fixture_roundtrip.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_fixture_sweep.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_not_found_reason.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_pagination.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.0}/tests/test_transport.py +0 -0
- {getanyapi-0.76.0 → getanyapi-0.77.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.77.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.0005 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.0005 per request.
|
|
1057
1057
|
|
|
1058
1058
|
Example:
|
|
1059
1059
|
res = client.google.search(gl="us", hl="en", limit=10, query="best coffee maker")
|
|
@@ -116,6 +116,23 @@ class YoutubeChannelPlaylistsInput(TypedDict, total=False):
|
|
|
116
116
|
"""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`."""
|
|
117
117
|
|
|
118
118
|
|
|
119
|
+
class YoutubeChannelPublicEmailInput(TypedDict, total=False):
|
|
120
|
+
"""Input for YouTube Channel Public Email."""
|
|
121
|
+
|
|
122
|
+
allowFallbacks: NotRequired[bool]
|
|
123
|
+
"""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."""
|
|
124
|
+
channelId: NotRequired[str]
|
|
125
|
+
"""YouTube channel ID (UC...)."""
|
|
126
|
+
handle: NotRequired[str]
|
|
127
|
+
"""YouTube channel handle, with or without the leading @."""
|
|
128
|
+
ignoreSources: NotRequired[list[str]]
|
|
129
|
+
"""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."""
|
|
130
|
+
preferLatencyUnderMs: NotRequired[int]
|
|
131
|
+
"""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."""
|
|
132
|
+
source: NotRequired[list[str]]
|
|
133
|
+
"""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`."""
|
|
134
|
+
|
|
135
|
+
|
|
119
136
|
class YoutubeChannelShortsInput(TypedDict, total=False):
|
|
120
137
|
"""Input for YouTube Channel Shorts."""
|
|
121
138
|
|
|
@@ -553,6 +570,14 @@ class YoutubeChannelPlaylistsPlaylist(BaseModel):
|
|
|
553
570
|
)
|
|
554
571
|
|
|
555
572
|
|
|
573
|
+
class YoutubeChannelPublicEmailData(BaseModel):
|
|
574
|
+
model_config = ConfigDict(extra="allow")
|
|
575
|
+
|
|
576
|
+
email: str = Field(
|
|
577
|
+
description="The email address written in the channel's public description. A description holding several addresses returns one of them."
|
|
578
|
+
)
|
|
579
|
+
|
|
580
|
+
|
|
556
581
|
class YoutubeChannelShortsData(BaseModel):
|
|
557
582
|
model_config = ConfigDict(populate_by_name=True)
|
|
558
583
|
|
|
@@ -1468,6 +1493,29 @@ class YoutubeNamespace:
|
|
|
1468
1493
|
options=options,
|
|
1469
1494
|
)
|
|
1470
1495
|
|
|
1496
|
+
def channel_public_email(
|
|
1497
|
+
self,
|
|
1498
|
+
*,
|
|
1499
|
+
options: RequestOptions | None = None,
|
|
1500
|
+
**input: Unpack[YoutubeChannelPublicEmailInput],
|
|
1501
|
+
) -> RunResult[YoutubeChannelPublicEmailData]:
|
|
1502
|
+
"""YouTube Channel Public Email
|
|
1503
|
+
|
|
1504
|
+
Get the email address a YouTube creator writes in the channel's public
|
|
1505
|
+
description, the text anyone can read on the About tab. It never returns the
|
|
1506
|
+
business email YouTube hides behind the View email address button;
|
|
1507
|
+
youtube.channel_contact reveals that one.
|
|
1508
|
+
|
|
1509
|
+
Price: $0.0012 per request.
|
|
1510
|
+
|
|
1511
|
+
Example:
|
|
1512
|
+
res = client.youtube.channel_public_email(handle="@mkbhd")
|
|
1513
|
+
"""
|
|
1514
|
+
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
1515
|
+
"youtube.channel_public_email", dict(input), options
|
|
1516
|
+
)
|
|
1517
|
+
return RunResult[YoutubeChannelPublicEmailData].model_validate(raw)
|
|
1518
|
+
|
|
1471
1519
|
def channel_shorts(
|
|
1472
1520
|
self,
|
|
1473
1521
|
*,
|
|
@@ -2085,6 +2133,29 @@ class AsyncYoutubeNamespace:
|
|
|
2085
2133
|
options=options,
|
|
2086
2134
|
)
|
|
2087
2135
|
|
|
2136
|
+
async def channel_public_email(
|
|
2137
|
+
self,
|
|
2138
|
+
*,
|
|
2139
|
+
options: RequestOptions | None = None,
|
|
2140
|
+
**input: Unpack[YoutubeChannelPublicEmailInput],
|
|
2141
|
+
) -> RunResult[YoutubeChannelPublicEmailData]:
|
|
2142
|
+
"""YouTube Channel Public Email
|
|
2143
|
+
|
|
2144
|
+
Get the email address a YouTube creator writes in the channel's public
|
|
2145
|
+
description, the text anyone can read on the About tab. It never returns the
|
|
2146
|
+
business email YouTube hides behind the View email address button;
|
|
2147
|
+
youtube.channel_contact reveals that one.
|
|
2148
|
+
|
|
2149
|
+
Price: $0.0012 per request.
|
|
2150
|
+
|
|
2151
|
+
Example:
|
|
2152
|
+
res = client.youtube.channel_public_email(handle="@mkbhd")
|
|
2153
|
+
"""
|
|
2154
|
+
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
2155
|
+
"youtube.channel_public_email", dict(input), options
|
|
2156
|
+
)
|
|
2157
|
+
return RunResult[YoutubeChannelPublicEmailData].model_validate(raw)
|
|
2158
|
+
|
|
2088
2159
|
async def channel_shorts(
|
|
2089
2160
|
self,
|
|
2090
2161
|
*,
|
|
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
|