An Azure service for ingesting, preparing, and transforming data at scale.
Hi Ayaan Shaikh,
To showcase you how to do extract data from an API I would like to share with you this terraform template that deploy adf and create the pipeline that extract the API response:
resource "azurerm_resource_group" "rg_experiment_adf" {
name = "rg-experiment-adf"
location = "eastus2"
}
resource "azurerm_data_factory" "adf_experiment_01" {
name = "adf-experiment-01"
location = azurerm_resource_group.rg_experiment_adf.location
resource_group_name = azurerm_resource_group.rg_experiment_adf.name
}
resource "azurerm_data_factory_pipeline" "web_scrapper_pipeline" {
name = "web-scrapper-pipeline"
data_factory_id = azurerm_data_factory.adf_experiment_01.id
variables = {
"response" = "initial_value"
}
activities_json = <<JSON
[
{
"name": "GetApiData",
"type": "WebActivity",
"typeProperties": {
"url": "https://pokeapi.co/api/v2/pokemon",
"method": "GET"
}
}
]
JSON
}
So this pipeline show the web activity and get the response :
After that you can decide what do you want to do with the output, for example transform, copy or others.
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.
Regards,
Luis