Restmancer API - Users
This page documents the available REST endpoints for fetching user data from the Restmancer API.
GET /api/users
Returns a list of users. If the limit is greater than the initial data length (30), more will be generated on the fly.
Optional Query Parameters:
limit– Number of users to return.fields– Comma-separated list of fields (e.g.,name,email).
Examples:
Fields Available
idnameusernameemailpasswordrolelocationskills
The /api/users endpoint supports custom field filtering and limiting results. Use the ?field=name,email and &limit=2 query parameters to customize your output.
Example: GET /api/users?field=name,email&limit=2
import requests
url = "https://restmancer.vercel.app/api/users"
response = requests.get(url)
print(response.json())
fetch("https://restmancer.vercel.app/api/users")
.then(res => res.json())
.then(data => console.log(data));
const axios = require("axios");
axios.get("https://restmancer.vercel.app/api/users")
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
curl "https://restmancer.vercel.app/api/users"