getanyapi 0.110.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.
Files changed (109) hide show
  1. {getanyapi-0.110.0 → getanyapi-0.112.0}/PKG-INFO +1 -1
  2. {getanyapi-0.110.0 → getanyapi-0.112.0}/pyproject.toml +1 -1
  3. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/__init__.py +1 -1
  4. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google.py +473 -0
  5. {getanyapi-0.110.0 → getanyapi-0.112.0}/.gitignore +0 -0
  6. {getanyapi-0.110.0 → getanyapi-0.112.0}/README.md +0 -0
  7. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/_account.py +0 -0
  8. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/_async_client.py +0 -0
  9. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/_client.py +0 -0
  10. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/_errors.py +0 -0
  11. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/_idempotency.py +0 -0
  12. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/_pagination.py +0 -0
  13. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/_transport.py +0 -0
  14. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/discovery_types.py +0 -0
  15. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/__init__.py +0 -0
  16. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/ahrefs.py +0 -0
  17. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/airbnb.py +0 -0
  18. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/alibaba.py +0 -0
  19. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/amazon.py +0 -0
  20. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/apollo.py +0 -0
  21. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/appstore.py +0 -0
  22. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/bluesky.py +0 -0
  23. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/booking.py +0 -0
  24. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/capterra.py +0 -0
  25. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/chatgpt.py +0 -0
  26. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/coinmarketcap.py +0 -0
  27. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/company.py +0 -0
  28. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/company_enrichment.py +0 -0
  29. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/company_identify.py +0 -0
  30. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/company_search.py +0 -0
  31. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/congress.py +0 -0
  32. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/contact_enrichment.py +0 -0
  33. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/douyin.py +0 -0
  34. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/ebay.py +0 -0
  35. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/email.py +0 -0
  36. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/email_finding.py +0 -0
  37. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/email_verification.py +0 -0
  38. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/facebook.py +0 -0
  39. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/fiverr.py +0 -0
  40. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/g2.py +0 -0
  41. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/gemini.py +0 -0
  42. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/github.py +0 -0
  43. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/glassdoor.py +0 -0
  44. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google_ads.py +0 -0
  45. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google_finance.py +0 -0
  46. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google_hotels.py +0 -0
  47. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/google_shopping.py +0 -0
  48. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/hackernews.py +0 -0
  49. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/indeed.py +0 -0
  50. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/instagram.py +0 -0
  51. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/job_search.py +0 -0
  52. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/linkedin.py +0 -0
  53. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/maps.py +0 -0
  54. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/mobile_phone.py +0 -0
  55. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/naver.py +0 -0
  56. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/nextdoor.py +0 -0
  57. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/people_search.py +0 -0
  58. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/perplexity.py +0 -0
  59. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/person.py +0 -0
  60. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/person_enrichment.py +0 -0
  61. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/pexels.py +0 -0
  62. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/pinterest.py +0 -0
  63. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/playstore.py +0 -0
  64. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/polymarket.py +0 -0
  65. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/property_records.py +0 -0
  66. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/realtor.py +0 -0
  67. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/reddit.py +0 -0
  68. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/redfin.py +0 -0
  69. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/rednote.py +0 -0
  70. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/sec.py +0 -0
  71. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/semrush.py +0 -0
  72. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/seo.py +0 -0
  73. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/similarweb.py +0 -0
  74. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/snapchat.py +0 -0
  75. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/social.py +0 -0
  76. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/spotify.py +0 -0
  77. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/substack.py +0 -0
  78. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/technographics.py +0 -0
  79. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/threads.py +0 -0
  80. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/tiktok.py +0 -0
  81. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/tiktok_shop.py +0 -0
  82. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/tripadvisor.py +0 -0
  83. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/trustpilot.py +0 -0
  84. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/truthsocial.py +0 -0
  85. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/twitter.py +0 -0
  86. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/unsplash.py +0 -0
  87. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/upwork.py +0 -0
  88. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/walmart.py +0 -0
  89. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/web.py +0 -0
  90. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/weibo.py +0 -0
  91. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/yahoo_finance.py +0 -0
  92. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/yelp.py +0 -0
  93. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/youtube.py +0 -0
  94. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/zhihu.py +0 -0
  95. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/platforms/zillow.py +0 -0
  96. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/py.typed +0 -0
  97. {getanyapi-0.110.0 → getanyapi-0.112.0}/src/getanyapi/types.py +0 -0
  98. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/conftest.py +0 -0
  99. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_account.py +0 -0
  100. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_client.py +0 -0
  101. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_durable_requests.py +0 -0
  102. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_envelope.py +0 -0
  103. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_errors.py +0 -0
  104. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_fixture_roundtrip.py +0 -0
  105. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_fixture_sweep.py +0 -0
  106. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_not_found_reason.py +0 -0
  107. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_pagination.py +0 -0
  108. {getanyapi-0.110.0 → getanyapi-0.112.0}/tests/test_transport.py +0 -0
  109. {getanyapi-0.110.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.110.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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "getanyapi"
7
- version = "0.110.0"
7
+ version = "0.112.0"
8
8
  description = "Official typed Python SDK for AnyAPI: any API, one wallet, USD, no subscriptions."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -55,7 +55,7 @@ from .types import (
55
55
  unwrap,
56
56
  )
57
57
 
58
- __version__ = "0.110.0"
58
+ __version__ = "0.112.0"
59
59
 
60
60
  __all__ = [
61
61
  # clients + top-level functions
@@ -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
 
@@ -127,6 +165,38 @@ class GoogleLensInput(TypedDict, total=False):
127
165
  """Public URL of the image to search with."""
128
166
 
129
167
 
168
+ class GoogleLocalServicesInput(TypedDict, total=False):
169
+ """Input for Google Local Services."""
170
+
171
+ allowFallbacks: NotRequired[bool]
172
+ """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."""
173
+ ignoreSources: NotRequired[list[str]]
174
+ """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."""
175
+ limit: NotRequired[int]
176
+ """Maximum number of businesses to return (1-20, default 20). Google lists at most 20 businesses for one service in one city, so there are no further pages. Range: 1 to 20."""
177
+ location: Required[str]
178
+ """The US city to search, with its state (e.g. Denver, CO or Austin, TX)."""
179
+ preferLatencyUnderMs: NotRequired[int]
180
+ """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."""
181
+ query: Required[str]
182
+ """The service to find businesses for, in everyday words (e.g. plumber, electrician, house cleaning, roofer)."""
183
+ requireFields: NotRequired[
184
+ list[
185
+ Literal[
186
+ "highlights",
187
+ "hours",
188
+ "image",
189
+ "isOpenNow",
190
+ "responseTime",
191
+ "yearsInBusiness",
192
+ ]
193
+ ]
194
+ ]
195
+ """Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `yearsInBusiness` or `hours`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be null on a business that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge."""
196
+ source: NotRequired[list[str]]
197
+ """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`."""
198
+
199
+
130
200
  class GoogleNewsInput(TypedDict, total=False):
131
201
  """Input for Google News."""
132
202
 
@@ -430,6 +500,151 @@ class GoogleImagesItem(BaseModel):
430
500
  width: int | None = Field(default=None, description="Full image width in pixels.")
431
501
 
432
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
+
433
648
  class GoogleLensData(BaseModel):
434
649
  results: list[GoogleLensResult] = Field(
435
650
  description="Visual match result records. Populated whenever the provider has data for the entity."
@@ -455,6 +670,90 @@ class GoogleLensResult(BaseModel):
455
670
  )
456
671
 
457
672
 
673
+ class GoogleLocalServicesData(BaseModel):
674
+ items: list[GoogleLocalServicesItem] = Field(
675
+ description="Businesses Google lists in Local Services ads for the service and location, in Google's order. Populated whenever the provider has data for the entity."
676
+ )
677
+
678
+
679
+ class GoogleLocalServicesItem(BaseModel):
680
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
681
+
682
+ bid: str | None = Field(
683
+ default=None,
684
+ description="Google Local Services business id (bid). Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
685
+ )
686
+ category: str | None = Field(
687
+ default=None,
688
+ description="Google's service category for the business (e.g. Plumbers, Electricians). Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
689
+ )
690
+ cid: str | None = Field(
691
+ default=None,
692
+ description="Google customer id (cid) of the business. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
693
+ )
694
+ highlights: list[str] | None = Field(
695
+ default=None,
696
+ description="Selling points the business lists, such as Flat rate pricing or Free in-home estimate. Null when this source does not report them.",
697
+ )
698
+ hours: str | None = Field(
699
+ default=None,
700
+ description="Opening status as Google shows it at request time (e.g. Open 24 hours). Null when this source does not report it.",
701
+ )
702
+ image: str | None = Field(
703
+ default=None,
704
+ description="Business logo or photo URL. Null when the business has none or this source does not report it.",
705
+ )
706
+ is_open_now: bool | None = Field(
707
+ default=None,
708
+ alias="isOpenNow",
709
+ description="Whether the business was open when the request ran, as Google shows it. Null when this source does not report it.",
710
+ )
711
+ name: str = Field(
712
+ description="Business name. Populated whenever the provider has data for the entity."
713
+ )
714
+ phone: str | None = Field(
715
+ default=None,
716
+ description="Business phone number in E.164 format (e.g. +17205550123). Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
717
+ )
718
+ pid: str | None = Field(
719
+ default=None,
720
+ description="Google Local Services provider id (pid). Null when Google assigns none, which is common.",
721
+ )
722
+ position: int | None = Field(
723
+ default=None,
724
+ description="1-based position of the business in Google's list. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
725
+ )
726
+ profile_url: str | None = Field(
727
+ default=None,
728
+ alias="profileUrl",
729
+ description="The business's Google Local Services profile page. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
730
+ )
731
+ rating: float | None = Field(
732
+ default=None,
733
+ description="Average Google star rating out of 5. Null for a business with no reviews yet. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
734
+ )
735
+ response_time: str | None = Field(
736
+ default=None,
737
+ alias="responseTime",
738
+ description="How quickly the business usually replies, as Google shows it (e.g. Typically replies in 15 min). Null when Google shows none or this source does not report it.",
739
+ )
740
+ review_count: int | None = Field(
741
+ default=None,
742
+ alias="reviewCount",
743
+ description="Number of Google reviews behind the rating. Null for a business with no reviews yet. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
744
+ )
745
+ service_area: str | None = Field(
746
+ default=None,
747
+ alias="serviceArea",
748
+ description="The area Google says the business serves (e.g. Denver). Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
749
+ )
750
+ years_in_business: int | None = Field(
751
+ default=None,
752
+ alias="yearsInBusiness",
753
+ description='Years in business as Google shows it ("8+ years in business" reads 8). Null when Google shows none or this source does not report it.',
754
+ )
755
+
756
+
458
757
  class GoogleNewsData(BaseModel):
459
758
  items: list[GoogleNewsItem] = Field(
460
759
  description="Article records: headline, source name, article link, and publish time. Populated whenever the provider has data for the entity."
@@ -824,6 +1123,70 @@ class GoogleNamespace:
824
1123
  )
825
1124
  return RunResult[GoogleImagesData].model_validate(raw)
826
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
+
827
1190
  def lens(
828
1191
  self, *, options: RequestOptions | None = None, **input: Unpack[GoogleLensInput]
829
1192
  ) -> RunResult[GoogleLensData]:
@@ -841,6 +1204,29 @@ class GoogleNamespace:
841
1204
  )
842
1205
  return RunResult[GoogleLensData].model_validate(raw)
843
1206
 
1207
+ def local_services(
1208
+ self,
1209
+ *,
1210
+ options: RequestOptions | None = None,
1211
+ **input: Unpack[GoogleLocalServicesInput],
1212
+ ) -> RunResult[GoogleLocalServicesData]:
1213
+ """Google Local Services
1214
+
1215
+ Find the businesses Google lists in Local Services ads for a service in a US
1216
+ city (plumbers, electricians, cleaners...): up to 20 per request, each with
1217
+ phone, star rating, review count, category, service area and Google profile
1218
+ link.
1219
+
1220
+ Price: $0.00085 per request.
1221
+
1222
+ Example:
1223
+ res = client.google.local_services(limit=5, location="Denver, CO", query="plumber")
1224
+ """
1225
+ raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
1226
+ "google.local_services", dict(input), options
1227
+ )
1228
+ return RunResult[GoogleLocalServicesData].model_validate(raw)
1229
+
844
1230
  def news(
845
1231
  self, *, options: RequestOptions | None = None, **input: Unpack[GoogleNewsInput]
846
1232
  ) -> RunResult[GoogleNewsData]:
@@ -1139,6 +1525,70 @@ class AsyncGoogleNamespace:
1139
1525
  )
1140
1526
  return RunResult[GoogleImagesData].model_validate(raw)
1141
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
+
1142
1592
  async def lens(
1143
1593
  self, *, options: RequestOptions | None = None, **input: Unpack[GoogleLensInput]
1144
1594
  ) -> RunResult[GoogleLensData]:
@@ -1156,6 +1606,29 @@ class AsyncGoogleNamespace:
1156
1606
  )
1157
1607
  return RunResult[GoogleLensData].model_validate(raw)
1158
1608
 
1609
+ async def local_services(
1610
+ self,
1611
+ *,
1612
+ options: RequestOptions | None = None,
1613
+ **input: Unpack[GoogleLocalServicesInput],
1614
+ ) -> RunResult[GoogleLocalServicesData]:
1615
+ """Google Local Services
1616
+
1617
+ Find the businesses Google lists in Local Services ads for a service in a US
1618
+ city (plumbers, electricians, cleaners...): up to 20 per request, each with
1619
+ phone, star rating, review count, category, service area and Google profile
1620
+ link.
1621
+
1622
+ Price: $0.00085 per request.
1623
+
1624
+ Example:
1625
+ res = client.google.local_services(limit=5, location="Denver, CO", query="plumber")
1626
+ """
1627
+ raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
1628
+ "google.local_services", dict(input), options
1629
+ )
1630
+ return RunResult[GoogleLocalServicesData].model_validate(raw)
1631
+
1159
1632
  async def news(
1160
1633
  self, *, options: RequestOptions | None = None, **input: Unpack[GoogleNewsInput]
1161
1634
  ) -> RunResult[GoogleNewsData]:
File without changes
File without changes
File without changes