I am newbie here. Please someone help me as i having this error on fetch api to flickr public api https://api.flickr.com/services/feeds/photos_public.gne?format=json#. Appreciates on your help.
SyntaxError: "JSON.parse: unexpected character at line 1 column 1 of the JSON data"
document.getElementById("activate").addEventListener("click", () => {
  let play = document.getElementById("display");
  let url = "https://api.flickr.com/services/feeds/photos_public.gne?format=json&tags=" + document.getElementById("txtsearch").value;
  fetch(url)
    .then(resp => resp.json())
    .then(data => {
      data.items.forEach((i) => {
        const img = document.createElement("img");
        img.src = i.media.m;
        play.append(img);
      })
    })
    .catch(error => console.error(error))
});<label>Search</label>
<input id="txtsearch" type="text"></input>
<input type="button" id="activate" value="submit"></input>
<div id="display"></div>