You can build a variety of different applications using the OpenCage API. With it, you can develop geocoding, time zone, reverse geocoding, and structured data lookup applications. It offers an easy-to-use API, with a variety of language bindings, that makes it easy to work with geographic data.
Some possible applications that can be built with the OpenCage API include:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
opencage: {
type: "app",
app: "opencage",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.opencagedata.com/geocode/v1/json`,
params: {
key: `${this.opencage.$auth.api_key}`,
"q": `51.952659%2C+7.632473`,
pretty: `1`,
no_annotations: `1`,
},
})
},
})
OpenCage uses API keys for authentication. When you connect your OpenCage account, Pipedream securely stores the keys so you can easily authenticate to OpenCage APIs in both code and no-code steps.
The API Key for OpenCage is in the Dashboard. See OpenCage API Quickstart for getting the API Key.