How to extract URL from JSON file that is available in public?

Justin Doh 860 Reputation points
2025-08-22T22:07:35.36+00:00

I am trying to extract certain URL information from JSON file that is available in public.

I am referring to this URL:

https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/hicp-9999?show-reference-ids=true

What I need to get is extract this particular URL on a daily basis.

distribution --> data --> downloadURL

User's image

What is big picture of objects (architecture) that I could use in Logic App?

Eventually, this is a csv file, so I need to also load the csv file in Azure.

Thanks.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Marcin Policht 68,145 Reputation points MVP Volunteer Moderator
    2025-08-22T22:27:34.1233333+00:00

    So it looks like you want to set up an Azure Logic App pipeline that does the following every day:

    1. Fetch JSON metadata (the one at https://data.cms.gov/provider-data/api/...).
    2. Extract the distribution → data → downloadURL value (the actual CSV link).
    3. Download the CSV file from that link.
    4. Store the CSV in Azure (e.g., in Blob Storage, Data Lake, or SQL depending on your use case).

    If so, here's a high-level flow:

    1. Trigger
      • Recurrence trigger → runs daily.
    2. HTTP Request (GET)
      • Use HTTP action to call the JSON metadata API (https://data.cms.gov/provider-data/api/...).
    3. Parse JSON
      • Use Parse JSON action with the schema from the API response.
      • This will let you navigate to distribution[0].data.downloadURL.
    4. Extract URL
      • From the parsed JSON, get the field downloadURL.
    5. HTTP Request (GET CSV)
      • Use the extracted downloadURL in another HTTP action to download the CSV file.
    6. Save File to Azure
      • Use Azure Blob Storage - Create blob action (or Data Lake equivalent).
      • File name can include timestamp (e.g., NH_HlthInsp_@{utcNow()}.csv).

    +------------------+ | Recurrence | | (Daily Trigger) | +------------------+ | v +---------------------+ | HTTP - GET JSON | | (CMS API Metadata) | +---------------------+ | v +---------------------+ | Parse JSON | | (extract downloadURL)| +---------------------+ | v +---------------------+ | HTTP - GET CSV | | (use downloadURL) | +---------------------+ | v +--------------------------+ | Azure Blob Storage | | (Save CSV file) | +--------------------------+

    
    
    ---
    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
    
    hth
    
    Marcin
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.