@getanyapi/sdk 0.110.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 +55 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +412 -1
- package/dist/index.d.ts +412 -1
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3102,6 +3102,48 @@ var GoogleNamespace = class {
|
|
|
3102
3102
|
images(input, options) {
|
|
3103
3103
|
return this._core.run("google.images", input, options);
|
|
3104
3104
|
}
|
|
3105
|
+
/**
|
|
3106
|
+
* Google Job
|
|
3107
|
+
*
|
|
3108
|
+
* 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.
|
|
3109
|
+
*
|
|
3110
|
+
* Price: $0.00085 per request.
|
|
3111
|
+
*
|
|
3112
|
+
* @example
|
|
3113
|
+
* const res = await client.google.job({ listingToken: "gcb1.eyJ2IjoxLCJvcCI6Imdvb2dsZV9qb2JzX2xpc3RpbmciLCJzY29wZSI6InctN2lTM2lzV09LSUhqZTMwaVR5NkEiLCJxIjoicmVnaXN0ZXJlZCBudXJzZSIsImZjIjoiRXN3QkNvd0JRVXBwVkRSMFRGVnBlamxoVFdaQ2FVZHpiMWh4Y0cxVE1TMDBlV2c1UWxWSFZpMWpjelpYVmtOaFpUSjBXbmRQT0ZCQ01VWXlURFl5TWs0NFgyOVFTM1pEVjFSaU5VRkZhR1JzYTBGTU1IUnRPR0Z2V1ZaemFGUk5XRlJRVTFSU2JETkZSaTFOVUV4eVkwcDJTbGd0YkZWUlZXTktjMHhMYjBWdWFHWjFPRFpZUldoUFFtVnlaRk5tYlhVU0YzbHNYMU5oZEdvM1FYRmhjbWt0WjFBME9UTlJMVkZ6R2lKQlJITnlPV1pVV2pGS05XbENSMnRyUTJkelNqbGhkelpIVnkxT1RscE1NbU5CIiwiZWkiOiJ5bF9TYXRqN0FxYXJpLWdQNDkzUS1RcyIsImlkIjoiMFRHZ0p6WW1XT0drWFZCR0FBQUFBQT09IiwidmVkIjoiMmFoVUtFd2pZaUlQeGlMLVhBeFdtMVFJSEhlTXVOTDhRcDR3Q2VnUUlKUkFCIn0" });
|
|
3114
|
+
*/
|
|
3115
|
+
job(input, options) {
|
|
3116
|
+
return this._core.run("google.job", input, options);
|
|
3117
|
+
}
|
|
3118
|
+
/**
|
|
3119
|
+
* Google Jobs
|
|
3120
|
+
*
|
|
3121
|
+
* 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.
|
|
3122
|
+
*
|
|
3123
|
+
* Price: $0.00085 per request.
|
|
3124
|
+
*
|
|
3125
|
+
* @example
|
|
3126
|
+
* const res = await client.google.jobs({ query: "registered nurse", gl: "us", hl: "en", location: "Chicago, IL" });
|
|
3127
|
+
*/
|
|
3128
|
+
jobs(input, options) {
|
|
3129
|
+
return this._core.run("google.jobs", input, options);
|
|
3130
|
+
}
|
|
3131
|
+
/**
|
|
3132
|
+
* Iterate every result of Google Jobs across pages.
|
|
3133
|
+
*
|
|
3134
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
3135
|
+
* result pages instead (each carries its own costUsd).
|
|
3136
|
+
*/
|
|
3137
|
+
iterJobs(input, options) {
|
|
3138
|
+
return paginate(
|
|
3139
|
+
this._core,
|
|
3140
|
+
"google.jobs",
|
|
3141
|
+
input,
|
|
3142
|
+
"items",
|
|
3143
|
+
false,
|
|
3144
|
+
options
|
|
3145
|
+
);
|
|
3146
|
+
}
|
|
3105
3147
|
/**
|
|
3106
3148
|
* Google Lens
|
|
3107
3149
|
*
|
|
@@ -3115,6 +3157,19 @@ var GoogleNamespace = class {
|
|
|
3115
3157
|
lens(input, options) {
|
|
3116
3158
|
return this._core.run("google.lens", input, options);
|
|
3117
3159
|
}
|
|
3160
|
+
/**
|
|
3161
|
+
* Google Local Services
|
|
3162
|
+
*
|
|
3163
|
+
* Find the businesses Google lists in Local Services ads for a service in a US city (plumbers, electricians, cleaners...): up to 20 per request, each with phone, star rating, review count, category, service area and Google profile link.
|
|
3164
|
+
*
|
|
3165
|
+
* Price: $0.00085 per request.
|
|
3166
|
+
*
|
|
3167
|
+
* @example
|
|
3168
|
+
* const res = await client.google.localServices({ location: "Denver, CO", query: "plumber", limit: 5 });
|
|
3169
|
+
*/
|
|
3170
|
+
localServices(input, options) {
|
|
3171
|
+
return this._core.run("google.local_services", input, options);
|
|
3172
|
+
}
|
|
3118
3173
|
/**
|
|
3119
3174
|
* Google News
|
|
3120
3175
|
*
|