Skip to content

Axios integration

javascript
const axios = require("axios");

const options = {
    method: 'GET',
    url: 'https://api.apitube.io/v1/news/everything',
    params: {
        limit: '50',
        api_key: 'YOUR_API_KEY'
    }
};

axios.request(options).then(function (response) {
    console.log(response.data);
}).catch(function (error) {
    console.error(error);
});