title: Github user finder api, how to return multiple users per search? JS
body: <p>Hello I am using github api to create github user finder. my question is how to manipulate on api link to get users which include e.target.value of the searchbar and not only that one that exactly matches.</p>
  <p>here is my code</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const [finalData, setFinalData] = useState([]);
  
  const handleSearch = async (e) =&gt; {
  try {
    const URL = `https://api.github.com/users/${e.target.value}? 
    client_id=e25d1dbedde5215999ef&amp;client_secret=ee080580b7c4f19688ccaef6844c3fe88bb811d`;
  
    Promise.all([fetch(URL).then((res) =&gt; res.json())]).then((data) =&gt; {
      if (data) {
        setData(data);
      }
    });
    } catch (err) {
    console.log(err);
    }
    };
  
   const setData = (data) =&gt; {
    data &amp;&amp; setFinalData(data);
    };</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>