getanyapi 0.111.0__tar.gz → 0.112.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.111.0 → getanyapi-0.112.0}/PKG-INFO +1 -1
- {getanyapi-0.111.0 → getanyapi-0.112.0}/pyproject.toml +1 -1
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/__init__.py +1 -1
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google.py +311 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/.gitignore +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/README.md +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/_account.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/_async_client.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/_client.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/_errors.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/_idempotency.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/_pagination.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/_transport.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/discovery_types.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/__init__.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/ahrefs.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/airbnb.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/alibaba.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/amazon.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/apollo.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/appstore.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/bluesky.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/booking.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/capterra.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/chatgpt.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/coinmarketcap.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/company.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/company_enrichment.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/company_identify.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/company_search.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/congress.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/contact_enrichment.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/douyin.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/ebay.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/email.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/email_finding.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/email_verification.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/facebook.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/fiverr.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/g2.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/gemini.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/github.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/glassdoor.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google_ads.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google_finance.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google_hotels.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google_shopping.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/hackernews.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/indeed.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/instagram.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/job_search.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/linkedin.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/maps.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/mobile_phone.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/naver.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/nextdoor.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/people_search.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/perplexity.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/person.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/person_enrichment.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/pexels.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/pinterest.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/playstore.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/polymarket.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/property_records.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/realtor.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/reddit.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/redfin.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/rednote.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/sec.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/semrush.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/seo.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/similarweb.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/snapchat.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/social.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/spotify.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/substack.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/technographics.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/threads.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/tiktok.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/tiktok_shop.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/tripadvisor.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/trustpilot.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/truthsocial.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/twitter.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/unsplash.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/upwork.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/walmart.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/web.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/weibo.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/yahoo_finance.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/yelp.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/youtube.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/zhihu.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/platforms/zillow.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/py.typed +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/src/getanyapi/types.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/conftest.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_account.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_client.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_durable_requests.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_envelope.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_errors.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_fixture_roundtrip.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_fixture_sweep.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_not_found_reason.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_pagination.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.0}/tests/test_transport.py +0 -0
- {getanyapi-0.111.0 → getanyapi-0.112.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.112.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
|
|
@@ -112,6 +112,44 @@ class GoogleImagesInput(TypedDict, total=False):
|
|
|
112
112
|
"""Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction)."""
|
|
113
113
|
|
|
114
114
|
|
|
115
|
+
class GoogleJobInput(TypedDict, total=False):
|
|
116
|
+
"""Input for Google Job."""
|
|
117
|
+
|
|
118
|
+
allowFallbacks: NotRequired[bool]
|
|
119
|
+
"""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."""
|
|
120
|
+
ignoreSources: NotRequired[list[str]]
|
|
121
|
+
"""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."""
|
|
122
|
+
listingToken: Required[str]
|
|
123
|
+
"""The listingToken of one listing in a google.jobs response."""
|
|
124
|
+
preferLatencyUnderMs: NotRequired[int]
|
|
125
|
+
"""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."""
|
|
126
|
+
source: NotRequired[list[str]]
|
|
127
|
+
"""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`."""
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
class GoogleJobsInput(TypedDict, total=False):
|
|
131
|
+
"""Input for Google Jobs."""
|
|
132
|
+
|
|
133
|
+
allowFallbacks: NotRequired[bool]
|
|
134
|
+
"""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."""
|
|
135
|
+
cursor: NotRequired[str]
|
|
136
|
+
"""Opaque cursor from a previous response's nextCursor. Send it with the same query, location, gl and hl to get the next page of about 10 listings; it expires about an hour after it was issued, after which you start again from page 1."""
|
|
137
|
+
gl: NotRequired[str]
|
|
138
|
+
"""Two-letter country code to search in (e.g. us, gb, de). Default: us."""
|
|
139
|
+
hl: NotRequired[str]
|
|
140
|
+
"""Language code for the listings and their details (e.g. en, de, es). Default: en."""
|
|
141
|
+
ignoreSources: NotRequired[list[str]]
|
|
142
|
+
"""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."""
|
|
143
|
+
location: NotRequired[str]
|
|
144
|
+
"""City, region or country to search around, e.g. Chicago, IL or London. Google may include nearby places."""
|
|
145
|
+
preferLatencyUnderMs: NotRequired[int]
|
|
146
|
+
"""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."""
|
|
147
|
+
query: Required[str]
|
|
148
|
+
"""Job title or keywords to search, e.g. registered nurse. A place written into the query ("barista in Austin, TX") also localizes the search."""
|
|
149
|
+
source: NotRequired[list[str]]
|
|
150
|
+
"""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`."""
|
|
151
|
+
|
|
152
|
+
|
|
115
153
|
class GoogleLensInput(TypedDict, total=False):
|
|
116
154
|
"""Input for Google Lens."""
|
|
117
155
|
|
|
@@ -462,6 +500,151 @@ class GoogleImagesItem(BaseModel):
|
|
|
462
500
|
width: int | None = Field(default=None, description="Full image width in pixels.")
|
|
463
501
|
|
|
464
502
|
|
|
503
|
+
class GoogleJobData(BaseModel):
|
|
504
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
505
|
+
|
|
506
|
+
apply_options: list[GoogleJobApplyOption] | None = Field(
|
|
507
|
+
default=None,
|
|
508
|
+
alias="applyOptions",
|
|
509
|
+
description="Where the job can be applied for. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
510
|
+
)
|
|
511
|
+
company_name: str | None = Field(
|
|
512
|
+
default=None,
|
|
513
|
+
alias="companyName",
|
|
514
|
+
description="Hiring company. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
515
|
+
)
|
|
516
|
+
company_ratings: list[GoogleJobCompanyRating] | None = Field(
|
|
517
|
+
default=None,
|
|
518
|
+
alias="companyRatings",
|
|
519
|
+
description="The employer's ratings on review sites, as Google shows them; empty when Google shows none.",
|
|
520
|
+
)
|
|
521
|
+
description: str | None = Field(
|
|
522
|
+
default=None,
|
|
523
|
+
description="The whole job description Google holds, as plain text. A few postings reach Google already shortened by the job board and end in [...]. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
524
|
+
)
|
|
525
|
+
extensions: list[str] | None = Field(
|
|
526
|
+
default=None,
|
|
527
|
+
description='The posting details Google shows, in its order and wording, e.g. ["7 days ago", "Full-time", "Health insurance"]: when it was posted, pay, job type and benefits, each only when Google shows it.',
|
|
528
|
+
)
|
|
529
|
+
job_id: str | None = Field(
|
|
530
|
+
default=None, alias="jobId", description="Google's id for the listing."
|
|
531
|
+
)
|
|
532
|
+
location: str | None = Field(
|
|
533
|
+
default=None, description="Job location as Google shows it, e.g. Chicago, IL."
|
|
534
|
+
)
|
|
535
|
+
title: str = Field(
|
|
536
|
+
description="Job title. Populated whenever the provider has data for the entity."
|
|
537
|
+
)
|
|
538
|
+
via: str | None = Field(
|
|
539
|
+
default=None,
|
|
540
|
+
description="The site Google found the listing on, e.g. LinkedIn or Indeed.",
|
|
541
|
+
)
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
class GoogleJobApplyOption(BaseModel):
|
|
545
|
+
model_config = ConfigDict(extra="allow")
|
|
546
|
+
|
|
547
|
+
title: str | None = Field(
|
|
548
|
+
default=None, description="Label, e.g. Apply on LinkedIn."
|
|
549
|
+
)
|
|
550
|
+
url: str | None = Field(
|
|
551
|
+
default=None,
|
|
552
|
+
description="Apply link with Google's tracking parameters removed.",
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
class GoogleJobCompanyRating(BaseModel):
|
|
557
|
+
model_config = ConfigDict(extra="allow")
|
|
558
|
+
|
|
559
|
+
rating: float | None = Field(
|
|
560
|
+
default=None, description="Employer star rating on that site."
|
|
561
|
+
)
|
|
562
|
+
reviews: int | None = Field(
|
|
563
|
+
default=None,
|
|
564
|
+
description="Number of reviews on that site. Rounded when Google shows an abbreviated count: 8.9K becomes 8900.",
|
|
565
|
+
)
|
|
566
|
+
source: str | None = Field(
|
|
567
|
+
default=None, description="Review site, e.g. Glassdoor or Indeed."
|
|
568
|
+
)
|
|
569
|
+
url: str | None = Field(
|
|
570
|
+
default=None,
|
|
571
|
+
description="The employer's page on that site, with Google's tracking parameters removed.",
|
|
572
|
+
)
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
class GoogleJobsData(BaseModel):
|
|
576
|
+
model_config = ConfigDict(populate_by_name=True)
|
|
577
|
+
|
|
578
|
+
items: list[GoogleJobsItem] = Field(
|
|
579
|
+
description="Job listings in Google's order. Populated whenever the provider has data for the entity."
|
|
580
|
+
)
|
|
581
|
+
next_cursor: str | None = Field(
|
|
582
|
+
default=None,
|
|
583
|
+
alias="nextCursor",
|
|
584
|
+
description="Opaque cursor for the next page of listings, or null when there are no more. Pass it back as cursor with the same query, location, gl and hl.",
|
|
585
|
+
)
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
class GoogleJobsItem(BaseModel):
|
|
589
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
590
|
+
|
|
591
|
+
apply_options: list[GoogleJobsApplyOption] | None = Field(
|
|
592
|
+
default=None,
|
|
593
|
+
alias="applyOptions",
|
|
594
|
+
description="Where the job can be applied for. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
595
|
+
)
|
|
596
|
+
company_name: str | None = Field(
|
|
597
|
+
default=None,
|
|
598
|
+
alias="companyName",
|
|
599
|
+
description="Hiring company. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
600
|
+
)
|
|
601
|
+
description: str | None = Field(
|
|
602
|
+
default=None,
|
|
603
|
+
description="Job description as plain text. Usually the full text, but for some listings (seen on German searches) Google shows only an excerpt of about 400 characters that can stop mid-word; google.job with this listing's listingToken returns the whole description Google holds. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
604
|
+
)
|
|
605
|
+
extensions: list[str] | None = Field(
|
|
606
|
+
default=None,
|
|
607
|
+
description='The posting details Google shows, in its order and wording, e.g. ["2 days ago", "36.50-58.40 an hour", "Full-time", "Health insurance"]: when it was posted, pay, job type and benefits, each only when Google shows it. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.',
|
|
608
|
+
)
|
|
609
|
+
job_id: str | None = Field(
|
|
610
|
+
default=None,
|
|
611
|
+
alias="jobId",
|
|
612
|
+
description="Google's id for the listing. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
613
|
+
)
|
|
614
|
+
listing_token: str | None = Field(
|
|
615
|
+
default=None,
|
|
616
|
+
alias="listingToken",
|
|
617
|
+
description="Token for this listing; pass it to google.job as listingToken for the listing with employer ratings. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
618
|
+
)
|
|
619
|
+
location: str | None = Field(
|
|
620
|
+
default=None,
|
|
621
|
+
description="Job location as Google shows it, e.g. Chicago, IL. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
622
|
+
)
|
|
623
|
+
position: int | None = Field(
|
|
624
|
+
default=None,
|
|
625
|
+
description="1-based rank of the listing across pages (page 2 starts at 11).",
|
|
626
|
+
)
|
|
627
|
+
title: str = Field(
|
|
628
|
+
description="Job title. Populated whenever the provider has data for the entity."
|
|
629
|
+
)
|
|
630
|
+
via: str | None = Field(
|
|
631
|
+
default=None,
|
|
632
|
+
description="The site Google found the listing on, e.g. LinkedIn or Indeed. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
633
|
+
)
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
class GoogleJobsApplyOption(BaseModel):
|
|
637
|
+
model_config = ConfigDict(extra="allow")
|
|
638
|
+
|
|
639
|
+
title: str | None = Field(
|
|
640
|
+
default=None, description="Label, e.g. Apply on LinkedIn."
|
|
641
|
+
)
|
|
642
|
+
url: str | None = Field(
|
|
643
|
+
default=None,
|
|
644
|
+
description="Apply link with Google's tracking parameters removed.",
|
|
645
|
+
)
|
|
646
|
+
|
|
647
|
+
|
|
465
648
|
class GoogleLensData(BaseModel):
|
|
466
649
|
results: list[GoogleLensResult] = Field(
|
|
467
650
|
description="Visual match result records. Populated whenever the provider has data for the entity."
|
|
@@ -940,6 +1123,70 @@ class GoogleNamespace:
|
|
|
940
1123
|
)
|
|
941
1124
|
return RunResult[GoogleImagesData].model_validate(raw)
|
|
942
1125
|
|
|
1126
|
+
def job(
|
|
1127
|
+
self, *, options: RequestOptions | None = None, **input: Unpack[GoogleJobInput]
|
|
1128
|
+
) -> RunResult[GoogleJobData]:
|
|
1129
|
+
"""Google Job
|
|
1130
|
+
|
|
1131
|
+
Fetch one Google Jobs listing by the listingToken that google.jobs returns:
|
|
1132
|
+
title, company, location, the site it was found on, the full description,
|
|
1133
|
+
apply links on every board that carries it, the posting details Google shows
|
|
1134
|
+
(posted, pay, job type, benefits), and the employer's ratings on review
|
|
1135
|
+
sites such as Glassdoor and Indeed when Google shows them.
|
|
1136
|
+
|
|
1137
|
+
Price: $0.00085 per request.
|
|
1138
|
+
|
|
1139
|
+
Example:
|
|
1140
|
+
res = client.google.job(listingToken="gcb1.eyJ2IjoxLCJvcCI6Imdvb2dsZV9qb2JzX2xpc3RpbmciLCJzY29wZSI6InctN2lTM2lzV09LSUhqZTMwaVR5NkEiLCJxIjoicmVnaXN0ZXJlZCBudXJzZSIsImZjIjoiRXN3QkNvd0JRVXBwVkRSMFRGVnBlamxoVFdaQ2FVZHpiMWh4Y0cxVE1TMDBlV2c1UWxWSFZpMWpjelpYVmtOaFpUSjBXbmRQT0ZCQ01VWXlURFl5TWs0NFgyOVFTM1pEVjFSaU5VRkZhR1JzYTBGTU1IUnRPR0Z2V1ZaemFGUk5XRlJRVTFSU2JETkZSaTFOVUV4eVkwcDJTbGd0YkZWUlZXTktjMHhMYjBWdWFHWjFPRFpZUldoUFFtVnlaRk5tYlhVU0YzbHNYMU5oZEdvM1FYRmhjbWt0WjFBME9UTlJMVkZ6R2lKQlJITnlPV1pVV2pGS05XbENSMnRyUTJkelNqbGhkelpIVnkxT1RscE1NbU5CIiwiZWkiOiJ5bF9TYXRqN0FxYXJpLWdQNDkzUS1RcyIsImlkIjoiMFRHZ0p6WW1XT0drWFZCR0FBQUFBQT09IiwidmVkIjoiMmFoVUtFd2pZaUlQeGlMLVhBeFdtMVFJSEhlTXVOTDhRcDR3Q2VnUUlKUkFCIn0")
|
|
1141
|
+
"""
|
|
1142
|
+
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
1143
|
+
"google.job", dict(input), options
|
|
1144
|
+
)
|
|
1145
|
+
return RunResult[GoogleJobData].model_validate(raw)
|
|
1146
|
+
|
|
1147
|
+
def jobs(
|
|
1148
|
+
self, *, options: RequestOptions | None = None, **input: Unpack[GoogleJobsInput]
|
|
1149
|
+
) -> RunResult[GoogleJobsData]:
|
|
1150
|
+
"""Google Jobs
|
|
1151
|
+
|
|
1152
|
+
Search Google Jobs, the job listings Google gathers from LinkedIn, Indeed,
|
|
1153
|
+
ZipRecruiter, company career sites and other boards, and get about 10
|
|
1154
|
+
listings per call: title, company, location, the site it was found on, the
|
|
1155
|
+
full description, apply links on every board that carries it, and the
|
|
1156
|
+
posting details Google shows (posted, pay, job type, benefits). Each listing
|
|
1157
|
+
carries a listingToken you can pass to google.job for employer ratings. Send
|
|
1158
|
+
nextCursor back as cursor to walk further pages.
|
|
1159
|
+
|
|
1160
|
+
Price: $0.00085 per request.
|
|
1161
|
+
|
|
1162
|
+
Example:
|
|
1163
|
+
res = client.google.jobs(gl="us", hl="en", location="Chicago, IL", query="registered nurse")
|
|
1164
|
+
"""
|
|
1165
|
+
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
1166
|
+
"google.jobs", dict(input), options
|
|
1167
|
+
)
|
|
1168
|
+
return RunResult[GoogleJobsData].model_validate(raw)
|
|
1169
|
+
|
|
1170
|
+
def iter_jobs(
|
|
1171
|
+
self, *, options: RequestOptions | None = None, **input: Unpack[GoogleJobsInput]
|
|
1172
|
+
) -> Paginator[GoogleJobsItem, GoogleJobsData]:
|
|
1173
|
+
"""Iterate Google Jobs results, following pagination cursors.
|
|
1174
|
+
|
|
1175
|
+
Yields validated `GoogleJobsItem` items from the `items` field of
|
|
1176
|
+
each page. Use `.pages()` on the returned paginator to walk whole
|
|
1177
|
+
`RunResult` pages.
|
|
1178
|
+
"""
|
|
1179
|
+
return paginate(
|
|
1180
|
+
self._client,
|
|
1181
|
+
"google.jobs",
|
|
1182
|
+
dict(input),
|
|
1183
|
+
"items",
|
|
1184
|
+
item_model=GoogleJobsItem,
|
|
1185
|
+
data_model=GoogleJobsData,
|
|
1186
|
+
bare=False,
|
|
1187
|
+
options=options,
|
|
1188
|
+
)
|
|
1189
|
+
|
|
943
1190
|
def lens(
|
|
944
1191
|
self, *, options: RequestOptions | None = None, **input: Unpack[GoogleLensInput]
|
|
945
1192
|
) -> RunResult[GoogleLensData]:
|
|
@@ -1278,6 +1525,70 @@ class AsyncGoogleNamespace:
|
|
|
1278
1525
|
)
|
|
1279
1526
|
return RunResult[GoogleImagesData].model_validate(raw)
|
|
1280
1527
|
|
|
1528
|
+
async def job(
|
|
1529
|
+
self, *, options: RequestOptions | None = None, **input: Unpack[GoogleJobInput]
|
|
1530
|
+
) -> RunResult[GoogleJobData]:
|
|
1531
|
+
"""Google Job
|
|
1532
|
+
|
|
1533
|
+
Fetch one Google Jobs listing by the listingToken that google.jobs returns:
|
|
1534
|
+
title, company, location, the site it was found on, the full description,
|
|
1535
|
+
apply links on every board that carries it, the posting details Google shows
|
|
1536
|
+
(posted, pay, job type, benefits), and the employer's ratings on review
|
|
1537
|
+
sites such as Glassdoor and Indeed when Google shows them.
|
|
1538
|
+
|
|
1539
|
+
Price: $0.00085 per request.
|
|
1540
|
+
|
|
1541
|
+
Example:
|
|
1542
|
+
res = client.google.job(listingToken="gcb1.eyJ2IjoxLCJvcCI6Imdvb2dsZV9qb2JzX2xpc3RpbmciLCJzY29wZSI6InctN2lTM2lzV09LSUhqZTMwaVR5NkEiLCJxIjoicmVnaXN0ZXJlZCBudXJzZSIsImZjIjoiRXN3QkNvd0JRVXBwVkRSMFRGVnBlamxoVFdaQ2FVZHpiMWh4Y0cxVE1TMDBlV2c1UWxWSFZpMWpjelpYVmtOaFpUSjBXbmRQT0ZCQ01VWXlURFl5TWs0NFgyOVFTM1pEVjFSaU5VRkZhR1JzYTBGTU1IUnRPR0Z2V1ZaemFGUk5XRlJRVTFSU2JETkZSaTFOVUV4eVkwcDJTbGd0YkZWUlZXTktjMHhMYjBWdWFHWjFPRFpZUldoUFFtVnlaRk5tYlhVU0YzbHNYMU5oZEdvM1FYRmhjbWt0WjFBME9UTlJMVkZ6R2lKQlJITnlPV1pVV2pGS05XbENSMnRyUTJkelNqbGhkelpIVnkxT1RscE1NbU5CIiwiZWkiOiJ5bF9TYXRqN0FxYXJpLWdQNDkzUS1RcyIsImlkIjoiMFRHZ0p6WW1XT0drWFZCR0FBQUFBQT09IiwidmVkIjoiMmFoVUtFd2pZaUlQeGlMLVhBeFdtMVFJSEhlTXVOTDhRcDR3Q2VnUUlKUkFCIn0")
|
|
1543
|
+
"""
|
|
1544
|
+
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
1545
|
+
"google.job", dict(input), options
|
|
1546
|
+
)
|
|
1547
|
+
return RunResult[GoogleJobData].model_validate(raw)
|
|
1548
|
+
|
|
1549
|
+
async def jobs(
|
|
1550
|
+
self, *, options: RequestOptions | None = None, **input: Unpack[GoogleJobsInput]
|
|
1551
|
+
) -> RunResult[GoogleJobsData]:
|
|
1552
|
+
"""Google Jobs
|
|
1553
|
+
|
|
1554
|
+
Search Google Jobs, the job listings Google gathers from LinkedIn, Indeed,
|
|
1555
|
+
ZipRecruiter, company career sites and other boards, and get about 10
|
|
1556
|
+
listings per call: title, company, location, the site it was found on, the
|
|
1557
|
+
full description, apply links on every board that carries it, and the
|
|
1558
|
+
posting details Google shows (posted, pay, job type, benefits). Each listing
|
|
1559
|
+
carries a listingToken you can pass to google.job for employer ratings. Send
|
|
1560
|
+
nextCursor back as cursor to walk further pages.
|
|
1561
|
+
|
|
1562
|
+
Price: $0.00085 per request.
|
|
1563
|
+
|
|
1564
|
+
Example:
|
|
1565
|
+
res = client.google.jobs(gl="us", hl="en", location="Chicago, IL", query="registered nurse")
|
|
1566
|
+
"""
|
|
1567
|
+
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
1568
|
+
"google.jobs", dict(input), options
|
|
1569
|
+
)
|
|
1570
|
+
return RunResult[GoogleJobsData].model_validate(raw)
|
|
1571
|
+
|
|
1572
|
+
def iter_jobs(
|
|
1573
|
+
self, *, options: RequestOptions | None = None, **input: Unpack[GoogleJobsInput]
|
|
1574
|
+
) -> AsyncPaginator[GoogleJobsItem, GoogleJobsData]:
|
|
1575
|
+
"""Iterate Google Jobs results, following pagination cursors.
|
|
1576
|
+
|
|
1577
|
+
Yields validated `GoogleJobsItem` items from the `items` field of
|
|
1578
|
+
each page. Use `.pages()` on the returned paginator to walk whole
|
|
1579
|
+
`RunResult` pages.
|
|
1580
|
+
"""
|
|
1581
|
+
return apaginate(
|
|
1582
|
+
self._client,
|
|
1583
|
+
"google.jobs",
|
|
1584
|
+
dict(input),
|
|
1585
|
+
"items",
|
|
1586
|
+
item_model=GoogleJobsItem,
|
|
1587
|
+
data_model=GoogleJobsData,
|
|
1588
|
+
bare=False,
|
|
1589
|
+
options=options,
|
|
1590
|
+
)
|
|
1591
|
+
|
|
1281
1592
|
async def lens(
|
|
1282
1593
|
self, *, options: RequestOptions | None = None, **input: Unpack[GoogleLensInput]
|
|
1283
1594
|
) -> RunResult[GoogleLensData]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|