The GET method requests a representation of the specified resource. GET requests should only retrieve data and have no other effect on the resource. Because GET requests do not modify state, they are considered safe and idempotent.
Common Use Cases
- Fetching a user profile or account details
- Listing collections of resources such as products or posts
- Retrieving a single resource by its identifier
- Loading configuration or settings data
- Querying search results with query parameters
GET /api/users/123 HTTP/1.1
Host: api.example.com
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: max-age=60
{
"id": 123,
"name": "Alice Johnson",
"email": "alice@example.com",
"role": "admin",
"createdAt": "2025-08-14T10:30:00Z"
}