Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

385
Views
How to Parse JSON Array Response when using Axios

I want to get all string on https://animechan.vercel.app/api/available/anime but suddenly i can't get it, anyone would help me? heres my code:

axios.get('https://animechan.vercel.app/api/available/anime')
  .then(response => {
    console.log("Source of Anime Qoutes: \n\n\n" + JSON.parse(response.data));
  })
  .catch(error => {
    console.log(error);
});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Axios automagically deserializes the response body from JSON to a Javascript object, assuming the response's content type is application/json or you tell Axios to do so regardless. See the documentation at

https://axios-http.com/docs/intro

All you should need is:

var axios = require("axios");

axios.get( 'https://animechan.vercel.app/api/available/anime' )
.then( response => {
  console.log(`Source of Anime Qoutes:`);
  console.log( response.data.join('\n') );
})
.catch(error => {
  console.log(error);
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!