@getanyapi/sdk 0.9.10 → 0.10.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.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 (1-25, default 25). You are billed per result returned, so a lower limit costs less.
20396
- * Range: minimum 1, maximum 25.
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
  /**
@@ -20716,13 +20716,18 @@ interface WebScrapeInput {
20716
20716
  * Default: true.
20717
20717
  */
20718
20718
  onlyMainContent?: boolean;
20719
+ /**
20720
+ * When true, fetch through a stealth proxy that gets past bot protection which refuses an ordinary request. This costs materially more per request (see the pricing ceiling), so leave it off unless a normal scrape of the site comes back blocked or empty.
20721
+ * Default: false.
20722
+ */
20723
+ stealth?: boolean;
20719
20724
  /**
20720
20725
  * The URL of the page to scrape.
20721
20726
  * Format: uri.
20722
20727
  */
20723
20728
  url: string;
20724
20729
  /**
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.
20730
+ * 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
20731
  * Range: minimum 0, maximum 15000.
20727
20732
  */
20728
20733
  waitFor?: number;
@@ -20826,10 +20831,10 @@ declare class WebNamespace {
20826
20831
  *
20827
20832
  * Scrape any web page and get its content back as clean Markdown (or HTML, or raw HTML) plus title and metadata.
20828
20833
  *
20829
- * Price: $0.0009 per request.
20834
+ * Price: $0.0005 per request.
20830
20835
  *
20831
20836
  * @example
20832
- * const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "html", "rawHtml"], onlyMainContent: true });
20837
+ * const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "rawHtml"], onlyMainContent: false });
20833
20838
  */
20834
20839
  scrape(input: WebScrapeInput, options?: RequestOptions): Promise<RunResult<WebScrapeData>>;
20835
20840
  /**
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 (1-25, default 25). You are billed per result returned, so a lower limit costs less.
20396
- * Range: minimum 1, maximum 25.
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
  /**
@@ -20716,13 +20716,18 @@ interface WebScrapeInput {
20716
20716
  * Default: true.
20717
20717
  */
20718
20718
  onlyMainContent?: boolean;
20719
+ /**
20720
+ * When true, fetch through a stealth proxy that gets past bot protection which refuses an ordinary request. This costs materially more per request (see the pricing ceiling), so leave it off unless a normal scrape of the site comes back blocked or empty.
20721
+ * Default: false.
20722
+ */
20723
+ stealth?: boolean;
20719
20724
  /**
20720
20725
  * The URL of the page to scrape.
20721
20726
  * Format: uri.
20722
20727
  */
20723
20728
  url: string;
20724
20729
  /**
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.
20730
+ * 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
20731
  * Range: minimum 0, maximum 15000.
20727
20732
  */
20728
20733
  waitFor?: number;
@@ -20826,10 +20831,10 @@ declare class WebNamespace {
20826
20831
  *
20827
20832
  * Scrape any web page and get its content back as clean Markdown (or HTML, or raw HTML) plus title and metadata.
20828
20833
  *
20829
- * Price: $0.0009 per request.
20834
+ * Price: $0.0005 per request.
20830
20835
  *
20831
20836
  * @example
20832
- * const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "html", "rawHtml"], onlyMainContent: true });
20837
+ * const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "rawHtml"], onlyMainContent: false });
20833
20838
  */
20834
20839
  scrape(input: WebScrapeInput, options?: RequestOptions): Promise<RunResult<WebScrapeData>>;
20835
20840
  /**
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.0009 per request.
5107
+ * Price: $0.0005 per request.
5108
5108
  *
5109
5109
  * @example
5110
- * const res = await client.web.scrape({ url: "https://example.com", formats: ["markdown", "html", "rawHtml"], onlyMainContent: true });
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);