UNPKG

@harvestapi/scraper

Version:

HarvestAPI provides LinkedIn data scraping tools for real-time, high-performance scraping at a low cost. API allows to search for Linkedin `jobs`, `companies`, `profiles`, and `posts` using a wide range of filters.

31 lines (30 loc) 758 B
export interface BaseApiResponse { entityId: string | null; requestId: string; status: number; error: any; query: Record<string, any>; originalQuery: Record<string, any>; liUrl?: string | string[]; user?: { membershipTier: string; requestsConcurrency: number; }; payments: string[]; const: number; } export type ApiItemResponse<TItem> = BaseApiResponse & { element: TItem; }; export type ApiPagination = { totalPages: number; totalElements: number; pageNumber: number; previousElements: number; pageSize: number; paginationToken?: string | null; }; export type ApiListResponse<TItem> = BaseApiResponse & { pagination: ApiPagination | null; elements: TItem[]; };