Get User Profile
curl --request GET \
--url https://api.lobstr.io/v1/me \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/me"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/me")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"email_verified": true,
"plan": [
{}
],
"login_count": 123,
"profile_image": {},
"is_staff": true,
"credit_interval": "<string>"
}User
Get User Profile
Retrieve authenticated user’s profile data including personal details, account status, and subscription information
GET
/
v1
/
me
Get User Profile
curl --request GET \
--url https://api.lobstr.io/v1/me \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/me"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/me")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"email_verified": true,
"plan": [
{}
],
"login_count": 123,
"profile_image": {},
"is_staff": true,
"credit_interval": "<string>"
}This endpoint returns the authenticated user’s complete profile data in a single API call. Use it to verify authentication, retrieve user details, and check account status.
This is typically the first endpoint you’ll call after authentication to confirm your credentials are working correctly.
Headers
string
required
Your API authentication token. Value:
Token YOUR_API_KEYstring
default:"application/json"
Content type of the request. Value:
application/jsonResponse Field Explanations
string
User’s first name. Example:
"John"string
User’s last name. Example:
"Doe"string
User’s email address. Example:
"user@example.com"boolean
Whether the user’s email address has been verified. Example:
truearray
List of active subscription plan objects for the user.
integer
Total number of times the user has logged in. Example:
42string | null
URL of the user’s profile image, or
null if not set.boolean
Whether the user has staff/admin access. Example:
falsestring
The user’s credit reset interval (e.g., monthly billing cycle). Example:
"monthly"Use this endpoint to verify your authentication is working before making other API calls. A successful response means your API key is valid.
The response includes rate limit information in the headers. Check the
X-RateLimit-Remaining header to monitor your API usage.Code Examples
curl -X GET "https://api.lobstr.io/v1/me" \
-H "Authorization: Token YOUR_API_KEY" \
-H "Content-Type: application/json"
import requests
headers = {
"Authorization": "Token YOUR_API_KEY",
"Content-Type": "application/json",
}
response = requests.get(
"https://api.lobstr.io/v1/me",
headers=headers
)
print(response.json())
Response
200
{
"first_name": "John",
"last_name": "Doe",
"email": "user@example.com",
"email_verified": true,
"plan": [],
"login_count": 42,
"profile_image": null,
"is_staff": false,
"credit_interval": "monthly"
}