Parameters
- query:
| undefined
| {
annotated?: boolean;
annotation?: number;
barcode?: number;
brands?: string;
count?: number;
countries?: string;
insight_types?: string;
order_by?: "random"
| "popularity";
page?: number;
predictor?: string;
server_type?: "off" | "obf" | "opff" | "opf" | "off_pro";
value_tag?: string;
}
Returns Promise<
| undefined
| {
count?: number;
insights?: {
barcode: number;
countries: string[];
id: string;
type: string;
}[];
status?: "found"
| "no_insights";
},
>
A promise that resolves to the data from the insights endpoint
MDN Reference