Gorest API

Beginner's Pick Development / OAuth Advanced HTTPS
65 C
Measured Score 0 50 100 Speed 14/30 Consistency 13/20 Security 20/20 Browser access 10/15 Transparency 8/15 TESTED 2026-08-10

Overview

Gorest is a free online REST API service designed for testing, prototyping, and development — it provides fake but realistic user, post, comment, and todo data via standard CRUD endpoints. All write operations (POST, PUT, PATCH, DELETE) require a free access token, while GET requests can be made without authentication. It is an excellent sandbox for learning REST API concepts without needing to set up your own backend.

Beginner Tip

Gorest is one of the friendliest APIs for learning REST concepts because it supports all HTTP methods on real-looking data. Register for a free token at gorest.co.in to unlock write operations. Note that data you create is shared across all users and may be deleted periodically — do not use it for production.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://gorest.co.in/public/v2/users?page=1&per_page=10
Result
HTTP 200 · application/json · 1,205 bytes · compressed
Response time
280 ms (median of 3) · fastest 236 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
Browser CORS
Allowed — Access-Control-Allow-Origin: https://apisscore.com
Served by
cloudflare
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
id integer 8574949
name string Deeptendu Pandey II
email string [email protected]
gender string female
status string active

Captured Response

Captured from a real request to https://gorest.co.in/public/v2/users?page=1&per_page=10 on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
[
  {
    "id": 8574949,
    "name": "Deeptendu Pandey II",
    "email": "[email protected]",
    "gender": "female",
    "status": "active"
  }
]

Field Reference

id Unique numeric identifier for the resource.
name Full name of the user.
email Email address of the user; must be unique across all Gorest users.
gender Gender of the user; accepted values are male or female.
status Activity status of the user; either active or inactive.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://gorest.co.in/public/v2/users?page=1&per_page=10";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "Authorization": "Bearer YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist application/json
{
  "message": "Resource not found"
}

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

401 Unauthorized on POST/PUT/DELETE Write operations require a Bearer token that is missing from the Authorization header.
Register at gorest.co.in for a free token and include it as: Authorization: Bearer YOUR_TOKEN.
422 Unprocessable Entity Required fields such as name, email, gender, and status for user creation are missing or invalid.
Check the API documentation for required fields per resource type; for users you must include name, email, gender, and status.
404 Not Found Attempting to access a resource ID that has been deleted or never existed.
Use the list endpoint first to get valid IDs before attempting GET, PUT, or DELETE on a specific resource.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 14/30
Consistency 13/20
Security 20/20
Browser access 10/15
Transparency 8/15
Endpoint Response Time 280ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth OAuth
HTTPS REQUIRED
CORS UNKNOWN
Category Development
Difficulty Advanced
Endpoint last called: 2026-08-10

Similar APIs

View All →