@getanyapi/sdk 0.111.0 → 0.112.0
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.
- package/dist/index.cjs +42 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +265 -1
- package/dist/index.d.ts +265 -1
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3224,6 +3224,48 @@ var GoogleNamespace = class {
|
|
|
3224
3224
|
images(input, options) {
|
|
3225
3225
|
return this._core.run("google.images", input, options);
|
|
3226
3226
|
}
|
|
3227
|
+
/**
|
|
3228
|
+
* Google Job
|
|
3229
|
+
*
|
|
3230
|
+
* Fetch one Google Jobs listing by the listingToken that google.jobs returns: title, company, location, the site it was found on, the full description, apply links on every board that carries it, the posting details Google shows (posted, pay, job type, benefits), and the employer's ratings on review sites such as Glassdoor and Indeed when Google shows them.
|
|
3231
|
+
*
|
|
3232
|
+
* Price: $0.00085 per request.
|
|
3233
|
+
*
|
|
3234
|
+
* @example
|
|
3235
|
+
* const res = await client.google.job({ listingToken: "gcb1.eyJ2IjoxLCJvcCI6Imdvb2dsZV9qb2JzX2xpc3RpbmciLCJzY29wZSI6InctN2lTM2lzV09LSUhqZTMwaVR5NkEiLCJxIjoicmVnaXN0ZXJlZCBudXJzZSIsImZjIjoiRXN3QkNvd0JRVXBwVkRSMFRGVnBlamxoVFdaQ2FVZHpiMWh4Y0cxVE1TMDBlV2c1UWxWSFZpMWpjelpYVmtOaFpUSjBXbmRQT0ZCQ01VWXlURFl5TWs0NFgyOVFTM1pEVjFSaU5VRkZhR1JzYTBGTU1IUnRPR0Z2V1ZaemFGUk5XRlJRVTFSU2JETkZSaTFOVUV4eVkwcDJTbGd0YkZWUlZXTktjMHhMYjBWdWFHWjFPRFpZUldoUFFtVnlaRk5tYlhVU0YzbHNYMU5oZEdvM1FYRmhjbWt0WjFBME9UTlJMVkZ6R2lKQlJITnlPV1pVV2pGS05XbENSMnRyUTJkelNqbGhkelpIVnkxT1RscE1NbU5CIiwiZWkiOiJ5bF9TYXRqN0FxYXJpLWdQNDkzUS1RcyIsImlkIjoiMFRHZ0p6WW1XT0drWFZCR0FBQUFBQT09IiwidmVkIjoiMmFoVUtFd2pZaUlQeGlMLVhBeFdtMVFJSEhlTXVOTDhRcDR3Q2VnUUlKUkFCIn0" });
|
|
3236
|
+
*/
|
|
3237
|
+
job(input, options) {
|
|
3238
|
+
return this._core.run("google.job", input, options);
|
|
3239
|
+
}
|
|
3240
|
+
/**
|
|
3241
|
+
* Google Jobs
|
|
3242
|
+
*
|
|
3243
|
+
* Search Google Jobs, the job listings Google gathers from LinkedIn, Indeed, ZipRecruiter, company career sites and other boards, and get about 10 listings per call: title, company, location, the site it was found on, the full description, apply links on every board that carries it, and the posting details Google shows (posted, pay, job type, benefits). Each listing carries a listingToken you can pass to google.job for employer ratings. Send nextCursor back as cursor to walk further pages.
|
|
3244
|
+
*
|
|
3245
|
+
* Price: $0.00085 per request.
|
|
3246
|
+
*
|
|
3247
|
+
* @example
|
|
3248
|
+
* const res = await client.google.jobs({ query: "registered nurse", gl: "us", hl: "en", location: "Chicago, IL" });
|
|
3249
|
+
*/
|
|
3250
|
+
jobs(input, options) {
|
|
3251
|
+
return this._core.run("google.jobs", input, options);
|
|
3252
|
+
}
|
|
3253
|
+
/**
|
|
3254
|
+
* Iterate every result of Google Jobs across pages.
|
|
3255
|
+
*
|
|
3256
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
3257
|
+
* result pages instead (each carries its own costUsd).
|
|
3258
|
+
*/
|
|
3259
|
+
iterJobs(input, options) {
|
|
3260
|
+
return paginate(
|
|
3261
|
+
this._core,
|
|
3262
|
+
"google.jobs",
|
|
3263
|
+
input,
|
|
3264
|
+
"items",
|
|
3265
|
+
false,
|
|
3266
|
+
options
|
|
3267
|
+
);
|
|
3268
|
+
}
|
|
3227
3269
|
/**
|
|
3228
3270
|
* Google Lens
|
|
3229
3271
|
*
|