getanyapi 0.99.0__tar.gz → 0.100.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.99.0 → getanyapi-0.100.0}/PKG-INFO +1 -1
- {getanyapi-0.99.0 → getanyapi-0.100.0}/pyproject.toml +1 -1
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/__init__.py +1 -1
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/booking.py +2 -2
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/google.py +112 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/google_hotels.py +4 -4
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/reddit.py +6 -6
- {getanyapi-0.99.0 → getanyapi-0.100.0}/.gitignore +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/README.md +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/_account.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/_async_client.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/_client.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/_errors.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/_idempotency.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/_pagination.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/_transport.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/discovery_types.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/__init__.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/ahrefs.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/airbnb.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/alibaba.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/amazon.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/apollo.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/appstore.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/bluesky.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/capterra.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/chatgpt.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/coinmarketcap.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/company.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/company_enrichment.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/company_identify.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/company_search.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/congress.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/contact_enrichment.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/douyin.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/ebay.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/email.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/email_finding.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/email_verification.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/facebook.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/fiverr.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/g2.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/gemini.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/github.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/glassdoor.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/google_ads.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/google_finance.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/google_shopping.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/hackernews.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/indeed.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/instagram.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/job_search.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/linkedin.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/maps.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/mobile_phone.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/naver.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/nextdoor.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/people_search.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/perplexity.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/person.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/person_enrichment.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/pexels.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/pinterest.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/playstore.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/polymarket.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/property_records.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/realtor.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/redfin.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/rednote.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/sec.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/semrush.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/seo.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/similarweb.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/snapchat.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/social.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/spotify.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/substack.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/technographics.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/threads.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/tiktok.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/tiktok_shop.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/tripadvisor.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/trustpilot.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/truthsocial.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/twitter.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/unsplash.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/upwork.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/walmart.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/web.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/weibo.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/yahoo_finance.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/yelp.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/youtube.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/zhihu.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/platforms/zillow.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/py.typed +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/src/getanyapi/types.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/conftest.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_account.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_client.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_durable_requests.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_envelope.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_errors.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_fixture_roundtrip.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_fixture_sweep.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_not_found_reason.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_pagination.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.0}/tests/test_transport.py +0 -0
- {getanyapi-0.99.0 → getanyapi-0.100.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.100.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
|
|
@@ -153,7 +153,7 @@ class BookingNamespace:
|
|
|
153
153
|
Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
154
154
|
|
|
155
155
|
Example:
|
|
156
|
-
res = client.booking.search(adults=2, checkIn="2026-11-
|
|
156
|
+
res = client.booking.search(adults=2, checkIn="2026-11-12", checkOut="2026-11-14", limit=3, query="New York")
|
|
157
157
|
"""
|
|
158
158
|
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
159
159
|
"booking.search", dict(input), options
|
|
@@ -182,7 +182,7 @@ class AsyncBookingNamespace:
|
|
|
182
182
|
Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
183
183
|
|
|
184
184
|
Example:
|
|
185
|
-
res = client.booking.search(adults=2, checkIn="2026-11-
|
|
185
|
+
res = client.booking.search(adults=2, checkIn="2026-11-12", checkOut="2026-11-14", limit=3, query="New York")
|
|
186
186
|
"""
|
|
187
187
|
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
188
188
|
"booking.search", dict(input), options
|
|
@@ -238,6 +238,27 @@ class GoogleSearch100Input(TypedDict, total=False):
|
|
|
238
238
|
"""Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction)."""
|
|
239
239
|
|
|
240
240
|
|
|
241
|
+
class GoogleTrendsInput(TypedDict, total=False):
|
|
242
|
+
"""Input for Google Trends."""
|
|
243
|
+
|
|
244
|
+
allowFallbacks: NotRequired[bool]
|
|
245
|
+
"""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."""
|
|
246
|
+
geo: NotRequired[str]
|
|
247
|
+
"""Where the searches came from: an uppercase ISO country code (US, GB, DE) or a country subdivision (US-CA, GB-ENG). Omit it, or send worldwide, for worldwide interest. Default: worldwide."""
|
|
248
|
+
ignoreSources: NotRequired[list[str]]
|
|
249
|
+
"""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."""
|
|
250
|
+
keywords: Required[list[str]]
|
|
251
|
+
"""Search terms to compare, 1 to 5, each 2 to 100 characters and without commas (e.g. ["coffee", "tea"]). Values are relative across the whole set, so the same term scores differently next to different terms."""
|
|
252
|
+
preferLatencyUnderMs: NotRequired[int]
|
|
253
|
+
"""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."""
|
|
254
|
+
source: NotRequired[list[str]]
|
|
255
|
+
"""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`."""
|
|
256
|
+
timeframe: NotRequired[
|
|
257
|
+
Literal["1h", "4h", "1d", "7d", "1m", "3m", "12m", "5y", "all"]
|
|
258
|
+
]
|
|
259
|
+
"""The window to chart, ending now: 1h, 4h, 1d or 7d (hours and days), 1m or 3m (months), 12m, 5y, or all (back to January 2004). Buckets grow with the window: minutes up to 1d, hours for 7d, days for 1m and 3m, weeks for 12m and 5y, months for all. Default: 12m."""
|
|
260
|
+
|
|
261
|
+
|
|
241
262
|
class GoogleVideosInput(TypedDict, total=False):
|
|
242
263
|
"""Input for Google Videos."""
|
|
243
264
|
|
|
@@ -615,6 +636,45 @@ class GoogleSearch100Result(BaseModel):
|
|
|
615
636
|
)
|
|
616
637
|
|
|
617
638
|
|
|
639
|
+
class GoogleTrendsData(BaseModel):
|
|
640
|
+
geo: str = Field(
|
|
641
|
+
description="The place the series cover: the country or subdivision code you sent, or worldwide."
|
|
642
|
+
)
|
|
643
|
+
series: list[GoogleTrendsSerie] = Field(
|
|
644
|
+
description="One series per search term, in the order you sent the terms. All series share one 0-100 scale. Populated whenever the provider has data for the entity."
|
|
645
|
+
)
|
|
646
|
+
timeframe: str = Field(
|
|
647
|
+
description="The window the series cover: the timeframe you sent, or 12m when you sent none."
|
|
648
|
+
)
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
class GoogleTrendsSerie(BaseModel):
|
|
652
|
+
model_config = ConfigDict(extra="allow")
|
|
653
|
+
|
|
654
|
+
keyword: str = Field(
|
|
655
|
+
description="The search term this series charts. Populated whenever the provider has data for the entity."
|
|
656
|
+
)
|
|
657
|
+
points: list[GoogleTrendsPoint] = Field(
|
|
658
|
+
description="One point per time bucket, oldest first. Populated whenever the provider has data for the entity."
|
|
659
|
+
)
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
class GoogleTrendsPoint(BaseModel):
|
|
663
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
664
|
+
|
|
665
|
+
partial: bool | None = Field(
|
|
666
|
+
default=None,
|
|
667
|
+
description="True when Google is still counting this bucket, normally the newest one, so it reads lower than it will end. Present only when the source reports it.",
|
|
668
|
+
)
|
|
669
|
+
start_utc: float = Field(
|
|
670
|
+
alias="startUtc",
|
|
671
|
+
description="Start of the time bucket. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.",
|
|
672
|
+
)
|
|
673
|
+
value: int = Field(
|
|
674
|
+
description="Search interest in this bucket on Google's 0-100 scale, where 100 is the peak of any term in the response and 0 means there was not enough data. Populated whenever the provider has data for the entity. Range: 0 to 100."
|
|
675
|
+
)
|
|
676
|
+
|
|
677
|
+
|
|
618
678
|
class GoogleVideosData(BaseModel):
|
|
619
679
|
query: str = Field(description="The query that was searched.")
|
|
620
680
|
results: list[GoogleVideosResult] = Field(
|
|
@@ -910,6 +970,32 @@ class GoogleNamespace:
|
|
|
910
970
|
)
|
|
911
971
|
return RunResult[GoogleSearch100Data].model_validate(raw)
|
|
912
972
|
|
|
973
|
+
def trends(
|
|
974
|
+
self,
|
|
975
|
+
*,
|
|
976
|
+
options: RequestOptions | None = None,
|
|
977
|
+
**input: Unpack[GoogleTrendsInput],
|
|
978
|
+
) -> RunResult[GoogleTrendsData]:
|
|
979
|
+
"""Google Trends
|
|
980
|
+
|
|
981
|
+
Google Trends interest over time for up to 5 search terms compared on one
|
|
982
|
+
0-100 scale, where 100 is the peak search interest of any term in the
|
|
983
|
+
window. Returns one series per term, in the order you sent them, with a
|
|
984
|
+
value for every time bucket. Choose the country or region with geo
|
|
985
|
+
(worldwide when omitted) and the window with timeframe (the past 12 months
|
|
986
|
+
when omitted); both are echoed in the response. Interest over time only, not
|
|
987
|
+
related queries or regions.
|
|
988
|
+
|
|
989
|
+
Price: $0.0007 per request.
|
|
990
|
+
|
|
991
|
+
Example:
|
|
992
|
+
res = client.google.trends(geo="US", keywords=["coffee", "tea"], timeframe="12m")
|
|
993
|
+
"""
|
|
994
|
+
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
995
|
+
"google.trends", dict(input), options
|
|
996
|
+
)
|
|
997
|
+
return RunResult[GoogleTrendsData].model_validate(raw)
|
|
998
|
+
|
|
913
999
|
def videos(
|
|
914
1000
|
self,
|
|
915
1001
|
*,
|
|
@@ -1199,6 +1285,32 @@ class AsyncGoogleNamespace:
|
|
|
1199
1285
|
)
|
|
1200
1286
|
return RunResult[GoogleSearch100Data].model_validate(raw)
|
|
1201
1287
|
|
|
1288
|
+
async def trends(
|
|
1289
|
+
self,
|
|
1290
|
+
*,
|
|
1291
|
+
options: RequestOptions | None = None,
|
|
1292
|
+
**input: Unpack[GoogleTrendsInput],
|
|
1293
|
+
) -> RunResult[GoogleTrendsData]:
|
|
1294
|
+
"""Google Trends
|
|
1295
|
+
|
|
1296
|
+
Google Trends interest over time for up to 5 search terms compared on one
|
|
1297
|
+
0-100 scale, where 100 is the peak search interest of any term in the
|
|
1298
|
+
window. Returns one series per term, in the order you sent them, with a
|
|
1299
|
+
value for every time bucket. Choose the country or region with geo
|
|
1300
|
+
(worldwide when omitted) and the window with timeframe (the past 12 months
|
|
1301
|
+
when omitted); both are echoed in the response. Interest over time only, not
|
|
1302
|
+
related queries or regions.
|
|
1303
|
+
|
|
1304
|
+
Price: $0.0007 per request.
|
|
1305
|
+
|
|
1306
|
+
Example:
|
|
1307
|
+
res = client.google.trends(geo="US", keywords=["coffee", "tea"], timeframe="12m")
|
|
1308
|
+
"""
|
|
1309
|
+
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
1310
|
+
"google.trends", dict(input), options
|
|
1311
|
+
)
|
|
1312
|
+
return RunResult[GoogleTrendsData].model_validate(raw)
|
|
1313
|
+
|
|
1202
1314
|
async def videos(
|
|
1203
1315
|
self,
|
|
1204
1316
|
*,
|
|
@@ -695,7 +695,7 @@ class GoogleHotelsNamespace:
|
|
|
695
695
|
Price: $0.0015 per request.
|
|
696
696
|
|
|
697
697
|
Example:
|
|
698
|
-
res = client.google_hotels.details(checkIn="2026-11-
|
|
698
|
+
res = client.google_hotels.details(checkIn="2026-11-12", checkOut="2026-11-14", country="us", propertyToken="ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB")
|
|
699
699
|
"""
|
|
700
700
|
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
701
701
|
"google_hotels.details", dict(input), options
|
|
@@ -717,7 +717,7 @@ class GoogleHotelsNamespace:
|
|
|
717
717
|
Price: $0.0015 per request.
|
|
718
718
|
|
|
719
719
|
Example:
|
|
720
|
-
res = client.google_hotels.search(checkIn="2026-11-
|
|
720
|
+
res = client.google_hotels.search(checkIn="2026-11-12", checkOut="2026-11-14", country="us", query="hotels near times square new york")
|
|
721
721
|
"""
|
|
722
722
|
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
723
723
|
"google_hotels.search", dict(input), options
|
|
@@ -746,7 +746,7 @@ class AsyncGoogleHotelsNamespace:
|
|
|
746
746
|
Price: $0.0015 per request.
|
|
747
747
|
|
|
748
748
|
Example:
|
|
749
|
-
res = client.google_hotels.details(checkIn="2026-11-
|
|
749
|
+
res = client.google_hotels.details(checkIn="2026-11-12", checkOut="2026-11-14", country="us", propertyToken="ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB")
|
|
750
750
|
"""
|
|
751
751
|
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
752
752
|
"google_hotels.details", dict(input), options
|
|
@@ -768,7 +768,7 @@ class AsyncGoogleHotelsNamespace:
|
|
|
768
768
|
Price: $0.0015 per request.
|
|
769
769
|
|
|
770
770
|
Example:
|
|
771
|
-
res = client.google_hotels.search(checkIn="2026-11-
|
|
771
|
+
res = client.google_hotels.search(checkIn="2026-11-12", checkOut="2026-11-14", country="us", query="hotels near times square new york")
|
|
772
772
|
"""
|
|
773
773
|
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
774
774
|
"google_hotels.search", dict(input), options
|
|
@@ -1009,7 +1009,7 @@ class RedditNamespace:
|
|
|
1009
1009
|
The cheapest Reddit user lookup; use reddit.profile for bio, trophies, and
|
|
1010
1010
|
post and comment counts.
|
|
1011
1011
|
|
|
1012
|
-
Price: $0.
|
|
1012
|
+
Price: $0.0012 per request.
|
|
1013
1013
|
|
|
1014
1014
|
Example:
|
|
1015
1015
|
res = client.reddit.avatar(username="spez")
|
|
@@ -1196,7 +1196,7 @@ class RedditNamespace:
|
|
|
1196
1196
|
|
|
1197
1197
|
Fetch posts from a subreddit listing (hot, new, or top).
|
|
1198
1198
|
|
|
1199
|
-
Price: $0.
|
|
1199
|
+
Price: $0.0005 per request.
|
|
1200
1200
|
|
|
1201
1201
|
Example:
|
|
1202
1202
|
res = client.reddit.subreddit_posts(limit=5, subreddit="programming")
|
|
@@ -1239,7 +1239,7 @@ class RedditNamespace:
|
|
|
1239
1239
|
|
|
1240
1240
|
Search posts within a single subreddit by query, sort, and timeframe.
|
|
1241
1241
|
|
|
1242
|
-
Price: $0.
|
|
1242
|
+
Price: $0.0005 per request.
|
|
1243
1243
|
|
|
1244
1244
|
Example:
|
|
1245
1245
|
res = client.reddit.subreddit_search(query="push ups", subreddit="Fitness")
|
|
@@ -1404,7 +1404,7 @@ class AsyncRedditNamespace:
|
|
|
1404
1404
|
The cheapest Reddit user lookup; use reddit.profile for bio, trophies, and
|
|
1405
1405
|
post and comment counts.
|
|
1406
1406
|
|
|
1407
|
-
Price: $0.
|
|
1407
|
+
Price: $0.0012 per request.
|
|
1408
1408
|
|
|
1409
1409
|
Example:
|
|
1410
1410
|
res = client.reddit.avatar(username="spez")
|
|
@@ -1591,7 +1591,7 @@ class AsyncRedditNamespace:
|
|
|
1591
1591
|
|
|
1592
1592
|
Fetch posts from a subreddit listing (hot, new, or top).
|
|
1593
1593
|
|
|
1594
|
-
Price: $0.
|
|
1594
|
+
Price: $0.0005 per request.
|
|
1595
1595
|
|
|
1596
1596
|
Example:
|
|
1597
1597
|
res = client.reddit.subreddit_posts(limit=5, subreddit="programming")
|
|
@@ -1634,7 +1634,7 @@ class AsyncRedditNamespace:
|
|
|
1634
1634
|
|
|
1635
1635
|
Search posts within a single subreddit by query, sort, and timeframe.
|
|
1636
1636
|
|
|
1637
|
-
Price: $0.
|
|
1637
|
+
Price: $0.0005 per request.
|
|
1638
1638
|
|
|
1639
1639
|
Example:
|
|
1640
1640
|
res = client.reddit.subreddit_search(query="push ups", subreddit="Fitness")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|