anil-brd-typescript-sdk
Version:
TypeScript SDK for Bright Data APIs - Web Unlocker, SERP, and Scraper APIs
12 lines (11 loc) • 528 B
TypeScript
import { SimpleConfig } from './config';
export declare class BrightData {
private client;
private config;
constructor(apiKey: string, config?: Omit<SimpleConfig, 'apiKey'>);
getHtml(url: string, country?: string): Promise<string>;
getMarkdown(url: string, country?: string): Promise<string>;
getScreenshot(url: string, country?: string): Promise<Buffer>;
getJson(url: string, country?: string): Promise<any>;
unlock(url: string, options?: Partial<Omit<SimpleConfig, 'apiKey'>>): Promise<any>;
}