FDA Food Recalls Scraper
Pricing
from $0.01 / 1,000 recall record saveds
FDA Food Recalls Scraper
๐ฅซ Monitor and export FDA/OpenFDA food recall records by product, firm, risk class, status, geography, and dates.
FDA Food Recalls Scraper
Pricing
from $0.01 / 1,000 recall record saveds
๐ฅซ Monitor and export FDA/OpenFDA food recall records by product, firm, risk class, status, geography, and dates.
You can access the FDA Food Recalls Scraper programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, youโll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "query": "",12 "productKeywords": [13 "allergen"14 ],15 "recallingFirm": "",16 "classifications": [17 "Class I",18 "Class II"19 ],20 "statuses": [21 "Ongoing"22 ],23 "states": [],24 "countries": [],25 "reportDateFrom": "2024-01-01",26 "reportDateTo": "",27 "initiationDateFrom": "",28 "initiationDateTo": "",29 "maxItems": 20,30 "sortBy": "report_date",31 "sortDirection": "desc"32};33
34// Run the Actor and wait for it to finish35const run = await client.actor("automation-lab/fda-food-recalls-scraper").call(input);36
37// Fetch and print Actor results from the run's dataset (if any)38console.log('Results from dataset');39console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);40const { items } = await client.dataset(run.defaultDatasetId).listItems();41items.forEach((item) => {42 console.dir(item);43});44
45// ๐ Want to learn more ๐? Go to โ https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use FDA Food Recalls Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: