Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to fetch data from another website in javascript

const fetched_data = [];

//replace with url you want to fetch
fetch('https://url_to_fetch')
  .then(response => response.json())
  .then(data =>  fetched_data = data)
 
PREVIOUS NEXT
Tagged: #fetch #data #website #javascript
ADD COMMENT
Topic
Name
4+2 =