diff --git a/components/serpapi/actions/scrape-search/scrape-search.mjs b/components/serpapi/actions/scrape-search/scrape-search.mjs index c1b5905e17728..493d9a7550c5a 100644 --- a/components/serpapi/actions/scrape-search/scrape-search.mjs +++ b/components/serpapi/actions/scrape-search/scrape-search.mjs @@ -4,7 +4,7 @@ export default { key: "serpapi-scrape-search", name: "Scrape Search", description: "Scrape the results from a search engine via SerpApi service. [See the documentation](https://serpapi.com/search-api)", - version: "0.0.2", + version: "0.0.3", type: "action", props: { app, @@ -40,9 +40,11 @@ export default { engine: this.engine, }, data: { - q: this.q.join(","), + q: this.q, device: this.device, - no_cache: this.noCache, + no_cache: Boolean(this.noCache) === true + ? "true" + : "false", }, }); diff --git a/components/serpapi/package.json b/components/serpapi/package.json index caef99746dde3..58fab8d394f61 100644 --- a/components/serpapi/package.json +++ b/components/serpapi/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/serpapi", - "version": "0.1.1", + "version": "0.1.2", "description": "Pipedream SerpApi Components", "main": "serpapi.app.mjs", "keywords": [ @@ -13,6 +13,6 @@ "access": "public" }, "dependencies": { - "@pipedream/platform": "^3.0.0" + "@pipedream/platform": "^3.0.3" } } diff --git a/components/serpapi/serpapi.app.mjs b/components/serpapi/serpapi.app.mjs index d15cb6f4b10e5..843d5a422c00e 100644 --- a/components/serpapi/serpapi.app.mjs +++ b/components/serpapi/serpapi.app.mjs @@ -12,9 +12,9 @@ export default { options: constants.ENGINES, }, q: { - type: "string[]", + type: "string", label: "Query", - description: "The query or queries you want to search. When passing multiple queries you need to use a comma `,` to separate them", + description: "The query you want to search. You can use anything that you would use in a regular Google search. e.g. `inurl:`, `site:`, `intitle:`. SerpApi also supports advanced search query parameters such as `as_dt` and `as_eq`. See the [full list](https://serpapi.com/advanced-google-query-parameters) of supported advanced search query parameters.", }, device: { type: "string", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e5c25e482922d..c846e493642dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11103,7 +11103,7 @@ importers: components/serpapi: dependencies: '@pipedream/platform': - specifier: ^3.0.0 + specifier: ^3.0.3 version: 3.0.3 components/serpdog: {} @@ -33966,8 +33966,6 @@ snapshots: '@putout/operator-filesystem': 5.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3)) '@putout/operator-json': 2.2.0 putout: 36.13.1(eslint@8.57.1)(typescript@5.6.3) - transitivePeerDependencies: - - supports-color '@putout/operator-regexp@1.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3))': dependencies: