Voiceflow PartnersVPVoiceflow Partners
Powered by
KaleksyK
Voiceflow Partners•5mo ago•
2 replies
Kaleksy

Accessing API data

Hi community!

I would like to ask question related to handling API data. How to target and use data coming from API call?


const url =
https://rinki-api.vercel.app/api/points?municipality=Enontekiö
https://rinki-api.vercel.app/api/points?municipality=Enontekiö
;
const data = await fetch(url, { parse: true });

const firstWhatever = data[0];
const type = typeof firstWhatever;

return {
trace: [
{
type: "text",
payload: {
message:
Testing API for "${data}" and "${firstWhatever}"
Testing API for "${data}" and "${firstWhatever}"

}
}
]
};



Result is:
"Testing API for "[object Object]" and "undefined""
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

Help with Accessing Nested JSON Data in API Response
abstract-purpleAabstract-purple / ❓┃ask-a-question
2y ago
API tool not populating data into airtable
kalaniKkalani / ❓┃ask-a-question
7mo ago
Using API step's data in function step
KaleksyKKaleksy / ❓┃ask-a-question
5mo ago
Trouble saving meta data from API GET Call
static-pinkSstatic-pink / ❓┃ask-a-question
2y ago