Create varied random data for testing application logic.
Testing applications requires diverse input data to ensure all code paths are exercised. Manually creating test data is tedious and often lacks variety.
Use the Random Generator API to create varied test inputs instantly. Generate random numbers, strings, and phone numbers to thoroughly test your validation logic, data processing, and edge cases.
const res = await fetch("https://api.apiverve.com/v1/randomgenerator?type=number&count=10&includeAvatar=true", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);