using params to make api call axios code example
Example: how to send data in query param in axios in get request
const res = await axios.get('https://httpbin.org/get', { params: { answer: 42 } });
const res = await axios.get('https://httpbin.org/get', { params: { answer: 42 } });