JSONPath avatar

JSONPath

Deprecated

Pricing

$0.10 / 1,000 results

Go to Apify Store
JSONPath

JSONPath

Deprecated

Pick JSON data from an URL and transform it into the desired format. Scraper saves data to the key-value store.

Pricing

$0.10 / 1,000 results

Rating

0.0

(0)

Developer

mscraper

mscraper

Maintained by Community

Actor stats

1

Bookmarked

6

Total users

1

Monthly active users

a month ago

Last modified

Share

Pick data from datasets and transform it into the desired format. It saves data to the key-value store.

Example of usage

That configuration takes WizzAir airports from their config, and returns links where we can take the aiport name.

{
"jsonPath": "$.cities[?(@.currencyCode=='CZK')].iata",
"startUrls": [
{
"url": "https://be.wizzair.com/17.7.0/Api/asset/map?languageCode=en-gb"
}
],
"transformFunction": "async ({ result }) => result.map((name) => `https://www.iata.org/en/publications/directories/code-search/?airport.search=${name}`)"
}

Result:

[
"PED",
"PRG"
]

Transformed result:

[
"https://www.iata.org/en/publications/directories/code-search/?airport.search=PED",
"https://www.iata.org/en/publications/directories/code-search/?airport.search=PRG"
]