with CDC - National Environmental Public Health Tracking and Getty Images?
The CDC - National Environmental Public Health Tracking API provides access to a treasure trove of environmental and public health data. Harness this API to monitor trends, perform analyses, and spark proactive interventions. It's a goldmine for public health officials, researchers, and policy makers, offering data on air quality, water contaminants, climate change, and disease statistics. Leverage Pipedream's platform to automate data retrieval, gain insights, and connect with other services for a seamless data-driven decision-making process.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cdc_national_environmental_public_health_tracking: {
type: "app",
app: "cdc_national_environmental_public_health_tracking",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://ephtracking.cdc.gov/apigateway/api/v1/contentareas/json`,
params: {
apiToken: `${this.cdc_national_environmental_public_health_tracking.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
getty_images: {
type: "app",
app: "getty_images",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.gettyimages.com/v3/products`,
headers: {
Authorization: `Bearer ${this.getty_images.$auth.oauth_access_token}`,
"accept": `application/json`,
"api-key": `${this.getty_images.$auth.api_key}`,
},
})
},
})