@getanyapi/sdk 0.9.10 → 0.9.11
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20392,8 +20392,8 @@ interface UpworkJobsInput {
|
|
|
20392
20392
|
*/
|
|
20393
20393
|
jobType?: "fixed" | "hourly";
|
|
20394
20394
|
/**
|
|
20395
|
-
* Maximum number of results to return (
|
|
20396
|
-
* Range: minimum
|
|
20395
|
+
* Maximum number of results to return (10-25, default 25). You are billed per result returned, so a lower limit costs less. This search has a floor of 10 results per page.
|
|
20396
|
+
* Range: minimum 10, maximum 25.
|
|
20397
20397
|
*/
|
|
20398
20398
|
limit?: number;
|
|
20399
20399
|
/**
|
|
@@ -20722,7 +20722,7 @@ interface WebScrapeInput {
|
|
|
20722
20722
|
*/
|
|
20723
20723
|
url: string;
|
|
20724
20724
|
/**
|
|
20725
|
-
* Milliseconds to wait for the page to finish rendering before capture. Use this for JavaScript-heavy pages or single-page apps whose content loads after the initial paint. Capped at 15000 to stay within the request timeout.
|
|
20725
|
+
* Milliseconds to wait for the page to finish rendering before capture. Use this for JavaScript-heavy pages or single-page apps whose content loads after the initial paint. Capped at 15000 to stay within the request timeout. This wait is time you asked us to spend, so your response takes this much longer, and it is excluded from the latency published for this endpoint.
|
|
20726
20726
|
* Range: minimum 0, maximum 15000.
|
|
20727
20727
|
*/
|
|
20728
20728
|
waitFor?: number;
|
|
@@ -20826,10 +20826,10 @@ declare class WebNamespace {
|
|
|
20826
20826
|
*
|
|
20827
20827
|
* Scrape any web page and get its content back as clean Markdown (or HTML, or raw HTML) plus title and metadata.
|
|
20828
20828
|
*
|
|
20829
|
-
* Price: $0.
|
|
20829
|
+
* Price: $0.0005 per request.
|
|
20830
20830
|
*
|
|
20831
20831
|
* @example
|
|
20832
|
-
* const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "
|
|
20832
|
+
* const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "rawHtml"], onlyMainContent: false });
|
|
20833
20833
|
*/
|
|
20834
20834
|
scrape(input: WebScrapeInput, options?: RequestOptions): Promise<RunResult<WebScrapeData>>;
|
|
20835
20835
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -20392,8 +20392,8 @@ interface UpworkJobsInput {
|
|
|
20392
20392
|
*/
|
|
20393
20393
|
jobType?: "fixed" | "hourly";
|
|
20394
20394
|
/**
|
|
20395
|
-
* Maximum number of results to return (
|
|
20396
|
-
* Range: minimum
|
|
20395
|
+
* Maximum number of results to return (10-25, default 25). You are billed per result returned, so a lower limit costs less. This search has a floor of 10 results per page.
|
|
20396
|
+
* Range: minimum 10, maximum 25.
|
|
20397
20397
|
*/
|
|
20398
20398
|
limit?: number;
|
|
20399
20399
|
/**
|
|
@@ -20722,7 +20722,7 @@ interface WebScrapeInput {
|
|
|
20722
20722
|
*/
|
|
20723
20723
|
url: string;
|
|
20724
20724
|
/**
|
|
20725
|
-
* Milliseconds to wait for the page to finish rendering before capture. Use this for JavaScript-heavy pages or single-page apps whose content loads after the initial paint. Capped at 15000 to stay within the request timeout.
|
|
20725
|
+
* Milliseconds to wait for the page to finish rendering before capture. Use this for JavaScript-heavy pages or single-page apps whose content loads after the initial paint. Capped at 15000 to stay within the request timeout. This wait is time you asked us to spend, so your response takes this much longer, and it is excluded from the latency published for this endpoint.
|
|
20726
20726
|
* Range: minimum 0, maximum 15000.
|
|
20727
20727
|
*/
|
|
20728
20728
|
waitFor?: number;
|
|
@@ -20826,10 +20826,10 @@ declare class WebNamespace {
|
|
|
20826
20826
|
*
|
|
20827
20827
|
* Scrape any web page and get its content back as clean Markdown (or HTML, or raw HTML) plus title and metadata.
|
|
20828
20828
|
*
|
|
20829
|
-
* Price: $0.
|
|
20829
|
+
* Price: $0.0005 per request.
|
|
20830
20830
|
*
|
|
20831
20831
|
* @example
|
|
20832
|
-
* const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "
|
|
20832
|
+
* const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "rawHtml"], onlyMainContent: false });
|
|
20833
20833
|
*/
|
|
20834
20834
|
scrape(input: WebScrapeInput, options?: RequestOptions): Promise<RunResult<WebScrapeData>>;
|
|
20835
20835
|
/**
|
package/dist/index.js
CHANGED
|
@@ -5104,10 +5104,10 @@ var WebNamespace = class {
|
|
|
5104
5104
|
*
|
|
5105
5105
|
* Scrape any web page and get its content back as clean Markdown (or HTML, or raw HTML) plus title and metadata.
|
|
5106
5106
|
*
|
|
5107
|
-
* Price: $0.
|
|
5107
|
+
* Price: $0.0005 per request.
|
|
5108
5108
|
*
|
|
5109
5109
|
* @example
|
|
5110
|
-
* const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "
|
|
5110
|
+
* const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "rawHtml"], onlyMainContent: false });
|
|
5111
5111
|
*/
|
|
5112
5112
|
scrape(input, options) {
|
|
5113
5113
|
return this._core.run("web.scrape", input, options);
|