JSONPath avatar
JSONPath
Deprecated

Pricing

$0.10 / 1,000 results

Go to Apify Store
JSONPath

JSONPath

Deprecated

Developed by

mscraper

mscraper

Maintained by Community

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

0.0 (0)

Pricing

$0.10 / 1,000 results

1

6

1

Last modified

2 years ago

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"
]

On this page

Share Actor: