Assumption: You are using the Real Time Database and not Firestore.
Yes you can use the Real Time Database REST API to do so, have a look at the documentation:
https://firebase.google.com/docs/database/rest/start?authuser=0
https://firebase.google.com/docs/database/rest/retrieve-data?authuser=0
Below is an example of how you would fetch comments
data. Here, Axios is executed in a HTML page but you would use exactly the same code in a Vue.js method in a Vue component.
HTML Page:
<html>
<head>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<script>
axios.get('https://projectname.firebaseio.com/blogItems/23/comments.json')
.then(function (response) {
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
</script>
<body>
</html>
Real time database export:
{
"blogItems": {
"23": {
"author": "John",
"comments": [
{
"content": "Very good"
},
{
"content": "Excellent post"
}
],
"content": "lorem ipsus ...."
}
}
}
However, using the Real Time Database REST API may not be the most efficient way of querying the Real Time Database from a Vue.js web-based application. It is better to use the standard JavaScript SDK. Is there any specific reason why you need to fetch data through Axios and not use the JavaScript SDK?