JSON PATH
by dtrungtin
Extract, analyze, and transform data from JSON documents with precision. A developer-friendly tool to simplify data parsing and supercharge your automation workflows.
Opens on Apify.com
About JSON PATH
Ever feel like you're staring at a massive JSON blob, knowing the data you need is in there somewhere, but dreading the thought of writing another complex parser? That's where this JSON Path actor comes in. Think of it as your go-to Swiss Army knife for JSON. You can point it at any JSON document—whether it's a simple config file or a huge API response—and instantly pull out just the pieces you need. It's perfect for cleaning up messy data feeds, extracting specific values for a report, or transforming nested objects into a flat structure that's ready for a database. I use it all the time to automate parts of my workflows on Apify; instead of writing custom JavaScript for every new data source, I just configure a path expression and let the actor do the heavy lifting. It saves a ton of time and code, especially when you're dealing with inconsistent or deeply nested JSON. It handles JavaScript objects too, so it fits right into any Node.js-based automation you're building.
What does this actor do?
JSON PATH 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
JSON Path Actor
Overview
This actor processes JSON documents and JavaScript objects. It lets you filter, transform, and extract specific data using JSONPath queries and optional JavaScript transform functions. You can test your JSONPath expressions at https://jsonpath.com/.
Key Features
- Filter Data: Use JSONPath expressions to select specific items from JSON input.
- Transform Output: Apply custom JavaScript functions to reshape the filtered data.
- Flexible Input: Accepts data from a direct JSON payload or a remote URL.
- Developer Tooling: Part of the Developer Tools and Automation categories on Apify.
How to Use
Configure the actor run by providing an input object. The actor will fetch data from the specified url (or use provided JSON), apply the jsonPath filter, and then run the transformFunction on the results.
Input/Output
Input
The input is a JSON object with the following properties:
* jsonPath: (Required) A JSONPath string to filter the data (e.g., "$[?(@.price>15000000)]").
* transformFunction: (Optional) A JavaScript function string to modify the filtered results. It receives each matched item as $.
* url: (Optional) A URL pointing to a JSON dataset. If not provided, you must pass the JSON data directly into the actor's run.
{
"jsonPath": "$[?(@.price>15000000)]",
"transformFunction": "$ => ({ name: $.name, sku: $.sku })",
"url": "https://api.apify.com/v2/datasets/P88peu2dDFe53hdMK/items?clean=true&format=json"
}
Output
The output is a JSON array containing the filtered and transformed data. For the example input above, the output would include only items with a price greater than 15,000,000, each reduced to just name and sku properties.
[
{
"name": "Apple iPhone 13",
"sku": "5447919661404"
},
{
"name": "Apple iPhone 11",
"sku": "5679549432792"
}
]
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 JSON PATH now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- dtrungtin
- Pricing
- Paid
- Total Runs
- 433
- Active Users
- 6
Related Actors
Web Scraper
by apify
Cheerio Scraper
by apify
Website Content Crawler
by apify
Legacy PhantomJS Crawler
by apify
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