Help me to create news API request

Hi :wave:

I’m trying to set up a news feed by category and by country on the apitube.io website, I’m still running into an error. I hope the community can help me.

import requests

url = “https://api.apitube.io/v1/news/everything

querystring = {
“per_page”: 30,
“api_key”: “KEY”,
“category.name”: “real estate”
}
response = requests.request(“GET”, url, params=querystring)

print(response.text)

Hey @AllIn for http request you have to use the HTTP node. You cant perform this from a code node afaik.

See example:

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