UNPKG

friday-sdk

Version:

Official JavaScript/TypeScript SDK for the Friday API

17 lines (16 loc) 896 B
import { SDKOptions } from "./types"; import { ScrapeOptions, ScrapeResponse } from "./endpoints/scrape"; import { CrawlOptions, CrawlResponse } from "./endpoints/crawl"; import { AnalyzeCompanyResponse } from "./endpoints/analyzeCompany"; import { LinkedInProfileResponse } from "./endpoints/profile"; export declare class FridayClient { private client; constructor(options: SDKOptions); get_status(): Promise<any>; scrape(url: string, options: ScrapeOptions): Promise<ScrapeResponse>; crawl(url: string, options: CrawlOptions): Promise<CrawlResponse>; analyzeCompany(linkedinUrl: string): Promise<AnalyzeCompanyResponse>; extract(url: string, query: string, customSchema?: Record<string, any>): Promise<string>; search(query: string, location: string, numResults: number): Promise<string>; getProfile(profileUrl: string): Promise<LinkedInProfileResponse>; }