APIs Not working!

When trying to connect to APIs I keep receiving an error message (attached below) but the response is exactly what I need.

Why is this happening and How can I remedy this?

Also, It is possible to get any sort of support for Adalo without having a dedicated account rep. I’m interested in upgrading but I won’t pay the price if I can’t ensure this feature works first. Is anyone having similar experiences?

Thanks,
Alex

Hey there. Did you set the keys accordingly in the endpoints definitions? They have to match the array you want to interpret.

If you could screenshot Step 2, we’ll be able to help.

Thanks for the reply.

I don’t see anything about it in the documentation (I am new to APIs).

Right now, I am teaching myself with https://newsapi.org/


I’ve tried with and without inserting my API key in “Results Key”. Same result. All the data I need but It just wont work with Adalo.

I’m confused about why this needs to be done as the full response is exactly what I’m looking for. Can you explain?

Let me know if there’s anything else I can include to help.

Hey, try replacing the API Key that you put in the results key with the word “articles” (without the quotation marks). Does that work?

You are working with a set of values that are belonging to a Key as in Key-Value Pair. Not to be confused with Key to authorize. :wink:

Then add a second result key “source”. That should do the trick if you want only the ID and Name. Otherwise leave the second key nd only go with “articles”

Looking at those json responses I can see that they both respond with arrays inside of curly brackets instead of square brackets. “{” instead of “[”.

At the moment our system does not interpret this response and therefore rejects it as invalid json.

I have made an internal note about this to see if there is anything we can do on our side to accept these types of responses.

2 Likes

Wow! You’re a god on earth! It finally worked for me!

So in the future, I should play around with the results keys and add in the description of what it’s giving me?

Thanks a million,
Alex

Havng the key to what you need doesnt do any harm, my friend :stuck_out_tongue: Glad I could help!

So from my understanding the “Results Key” defines what data you want to become records in a collection?

Wan’t to confirm for future reference and to help people here on the form.

Thanks,
Alex

You got that right. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.