Diff Dataset Fields
by lukaskrivka
Compare changes in text fields between two datasets. Monitor new and updated content on websites.
Opens on Apify.com
About Diff Dataset Fields
Compare changes in text fields between two datasets. Monitor new and updated content on websites.
What does this actor do?
Diff Dataset Fields is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Compare items of two datasets to see changes in their fields. You match the items by a key field and then compare the any number of textual fields. ## Diff You can choose one or more fields to diff between two items that are matched by a key field. The diff is computed using the fast-diff package where the output is a list of text parts that are marked with a number depending if they are inserted (1), deleted (-1) or unchanged (0). ## Output The output is a JSON object with the following properties: - type: Representing how the items were compared. Can be new, removed, unchanged or updated. - oldItem: The item from the old dataset - newItem: The item from the new dataset - diff: The diff between the two items. Only present if the type is updated. ### Example input json { "oldDatasetId": "0Azg4BxggC3RmcPpY", "newDatasetId": "i4mfnrQEP8QmQAbHu", "fieldToMapBy": "url", "fieldsToDiff": ["text", "markdown"], "outputTypes": ["new", "removed", "updated", "unchanged"], } ### Example output This is one item that was matched in both datasets, the real output will have all items from both datasets. json { "type": "updated", "oldItem": { "url": "https://www.peacocktv.com/start", "text": "PeacockAdobe AudienceManagerBack ButtonSearch IconFilter Icon\nEnter your email to get started", "markdown": "# PeacockAdobe AudienceManagerBack ButtonSearch IconFilter Icon\n\n## \n\nEnter your email to get started", }, "newItem": { "url": "https://www.peacocktv.com/start", "text": "PeacockBack ButtonSearch IconFilter Icon\nEnter your email to get started", "markdown": "# PeacockBack ButtonSearch IconFilter Icon\n\n## \n\nEnter your email to get started", } , "diff":{ "text": [ [ 0, "Peacock" ], [ -1, "Adobe AudienceManager" ], [ 0, "Back ButtonSearch IconFilter Icon\nEnter your email to get started" ] ], "markdown": [ [ 0, "# Peacock" ], [ -1, "Adobe AudienceManager" ], [ 0, "Back ButtonSearch IconFilter Icon\n\n## \n\nEnter your email to get started" ] ] } }
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Diff Dataset Fields now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- lukaskrivka
- Pricing
- Paid
- Total Runs
- 1,904
- Active Users
- 33
Related Actors
Google Search Results Scraper
by apify
Website Content Crawler
by apify
🔥 Leads Generator - $3/1k 50k leads like Apollo
by microworlds
Video Transcript Scraper: Youtube, X, Facebook, Tiktok, etc.
by invideoiq
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support