---
title: "LinkedIn User Profile API (V1)"
description: "Retrieves a LinkedIn profile by username, including documented core profile fields such as name and headline. Use it to inspect a person's professional background or before requesting published posts."
aiUsagePrompt: true
---

# LinkedIn User Profile API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/linkedin/get-user-detail/v1\"")'
  :summary='JSON.parse("\"User Profile (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/linkedin/user-profile-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Access token for this API service.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"username\",\"in\":\"query\",\"description\":\"LinkedIn username from the profile URL, for example jack from linkedin.com/in/jack.\",\"required\":true,\"schema\":{\"type\":\"string\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"LinkedIn profile lookup result. The response can contain an error code and message without profile fields.\",\"properties\":{\"error_code\":{\"type\":\"string\",\"description\":\"Error code reported in the lookup data when the profile is unavailable.\"},\"error\":{\"type\":\"string\",\"description\":\"Error message reported in the lookup data.\"},\"timestamp\":{\"type\":\"string\",\"description\":\"Timestamp text reported for the lookup, when provided.\"},\"id\":{\"type\":\"string\",\"description\":\"Profile identifier reported for this record.\"},\"linkedin_id\":{\"type\":\"string\",\"description\":\"Public LinkedIn profile identifier, returned as text.\"},\"linkedin_num_id\":{\"type\":\"string\",\"description\":\"Numeric LinkedIn profile identifier returned as text.\"},\"url\":{\"type\":\"string\",\"description\":\"LinkedIn URL for the public profile.\"},\"name\":{\"type\":\"string\",\"description\":\"Full display name shown on the profile.\"},\"first_name\":{\"type\":\"string\",\"description\":\"Given name reported on the profile.\"},\"last_name\":{\"type\":\"string\",\"description\":\"Family name reported on the profile.\"},\"position\":{\"type\":[\"string\",\"null\"],\"description\":\"Position or headline text shown on the profile, when available.\"},\"about\":{\"type\":\"string\",\"description\":\"Public profile summary text.\"},\"city\":{\"type\":\"string\",\"description\":\"City reported in the profile.\"},\"country_code\":{\"type\":\"string\",\"description\":\"Country code reported in the profile.\"},\"location\":{\"type\":\"string\",\"description\":\"Profile location as display text.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Profile avatar image URL.\"},\"banner_image\":{\"type\":\"string\",\"description\":\"Profile banner image URL.\"},\"default_avatar\":{\"type\":\"boolean\",\"description\":\"Whether the profile is marked as using a default avatar.\"},\"influencer\":{\"type\":\"boolean\",\"description\":\"Influencer indicator reported for the profile.\"},\"memorialized_account\":{\"type\":\"boolean\",\"description\":\"Whether the profile is marked as a memorialized account.\"},\"followers\":{\"type\":\"integer\",\"description\":\"Reported follower count for the profile.\"},\"connections\":{\"type\":\"integer\",\"description\":\"Reported connection count for the profile.\"},\"current_company\":{\"type\":\"object\",\"description\":\"Current company details when reported on the profile.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Current company display name.\"},\"company_id\":{\"type\":\"string\",\"description\":\"Identifier of the current company.\"},\"title\":{\"type\":\"string\",\"description\":\"Reported role title at the current company.\"},\"location\":{\"type\":[\"string\",\"null\"],\"description\":\"Location text reported for the current company, when available.\"}}},\"current_company_company_id\":{\"type\":\"string\",\"description\":\"Current company ID reported at the profile level.\"},\"current_company_name\":{\"type\":\"string\",\"description\":\"Current company name reported at the profile level.\"},\"experience\":{\"type\":[\"array\",\"null\"],\"description\":\"Employment experience entries reported on the profile, when available.\",\"items\":{\"type\":\"object\",\"description\":\"One employment experience entry.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Role title in this experience entry.\"},\"location\":{\"type\":\"string\",\"description\":\"Location text for this experience entry.\"},\"start_date\":{\"type\":\"string\",\"description\":\"Start date as display text for this experience entry.\"},\"end_date\":{\"type\":\"string\",\"description\":\"End date as display text for this experience entry.\"},\"company\":{\"type\":\"string\",\"description\":\"Company name in the experience entry.\"},\"company_id\":{\"type\":\"string\",\"description\":\"Identifier of the company in this experience entry.\"},\"url\":{\"type\":\"string\",\"description\":\"LinkedIn company URL associated with this experience entry.\"}}}},\"educations_details\":{\"type\":\"string\",\"description\":\"Education summary text shown on the profile.\"},\"education\":{\"type\":\"array\",\"description\":\"Education entries reported on the profile.\",\"items\":{\"type\":\"object\",\"description\":\"One education entry.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Title or institution name shown for the education entry.\"},\"url\":{\"type\":\"string\",\"description\":\"LinkedIn institution URL associated with the education entry.\"},\"start_year\":{\"type\":\"string\",\"description\":\"Start year as display text for the education entry.\"},\"end_year\":{\"type\":\"string\",\"description\":\"End year as display text for the education entry.\"},\"degree\":{\"type\":\"string\",\"description\":\"Degree text shown for the education entry.\"},\"field\":{\"type\":\"string\",\"description\":\"Field of study shown for the education entry.\"}}}},\"posts\":{\"type\":\"array\",\"description\":\"Posts returned with the public profile.\",\"items\":{\"type\":\"object\",\"description\":\"One post returned with the public profile.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Identifier reported for this post.\"},\"title\":{\"type\":\"string\",\"description\":\"Post title text.\"},\"attribution\":{\"type\":\"string\",\"description\":\"Attribution text shown for the post.\"},\"link\":{\"type\":\"string\",\"description\":\"LinkedIn link for the post.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Creation time text reported for the post.\"},\"interaction\":{\"type\":\"string\",\"description\":\"Interaction summary text shown with the post.\"}}}},\"activity\":{\"type\":\"array\",\"description\":\"Activity entries returned with the public profile.\",\"items\":{\"type\":\"object\",\"description\":\"One activity entry.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Identifier reported for the activity entry.\"},\"title\":{\"type\":\"string\",\"description\":\"Title text shown for the activity entry.\"},\"interaction\":{\"type\":[\"string\",\"null\"],\"description\":\"Interaction text shown for the activity entry, when available.\"},\"link\":{\"type\":\"string\",\"description\":\"LinkedIn link for the activity entry.\"},\"img\":{\"type\":[\"string\",\"null\"],\"description\":\"Image URL associated with the activity entry, when available.\"}}}},\"people_also_viewed\":{\"type\":\"array\",\"description\":\"Public profile cards shown as other people also viewed.\",\"items\":{\"type\":\"object\",\"description\":\"One public profile card in the also-viewed list.\",\"properties\":{\"profile_link\":{\"type\":\"string\",\"description\":\"LinkedIn profile URL for the related person.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name shown on the related profile card.\"},\"about\":{\"type\":[\"string\",\"null\"],\"description\":\"Summary text shown for the related profile, when available.\"},\"location\":{\"type\":\"string\",\"description\":\"Location text shown on the related profile card.\"}}}},\"similar_profiles\":{\"type\":\"array\",\"description\":\"Public profile cards shown as similar profiles.\",\"items\":{\"type\":\"object\",\"description\":\"One similar public profile card.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"LinkedIn profile URL for this similar profile.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name shown for the similar profile.\"},\"title\":{\"type\":[\"string\",\"null\"],\"description\":\"Headline shown for the similar profile, when available.\"},\"url_text\":{\"type\":\"string\",\"description\":\"Display text for the similar profile link.\"}}}},\"certifications\":{\"type\":\"array\",\"description\":\"Certification entries reported on the public profile.\",\"items\":{\"type\":\"object\",\"description\":\"One certification entry.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Certification title shown on the profile.\"},\"subtitle\":{\"type\":\"string\",\"description\":\"Subtitle shown for the certification entry.\"},\"meta\":{\"type\":\"string\",\"description\":\"Additional display text for the certification entry.\"}}}},\"recommendations_count\":{\"type\":\"integer\",\"description\":\"Reported number of recommendations for the profile.\"},\"recommendations\":{\"type\":\"array\",\"description\":\"Recommendation text entries returned with the public profile.\",\"items\":{\"type\":\"string\",\"description\":\"One reported recommendation as text.\"}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Invalid request parameters or body\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Invalid or inactive access token\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Permission denied\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Request rate or daily quota limit exceeded\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Internal server error\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Service temporarily unavailable\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/linkedin/get-user-detail/v1\"")' />

<p>Retrieves a LinkedIn profile by username, including documented core profile fields such as name and headline. Use it to inspect a person's professional background or before requesting published posts.</p>

## Parameters

<div class="api-doc-table api-doc-table--params">

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | Access token for this API service. |
| <code>username</code> | query | <code>string</code> | Yes | - | LinkedIn username from the profile URL, for example jack from linkedin.com/in/jack. |

</div>

## Code Samples

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "User Profile (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE
API Endpoint: BASE_URL + /api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/linkedin/user-profile-v1-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- username (query): LinkedIn username from the profile URL, for example jack from linkedin.com/in/jack. (Required)

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/linkedin/user-profile-v1-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

Key fields in a successful response (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | LinkedIn profile lookup result. The response can contain an error code and message without profile fields. |
| <code>data.error_code</code> | <code>string</code> | Error code reported in the lookup data when the profile is unavailable. |
| <code>data.error</code> | <code>string</code> | Error message reported in the lookup data. |
| <code>data.timestamp</code> | <code>string</code> | Timestamp text reported for the lookup, when provided. |
| <code>data.id</code> | <code>string</code> | Profile identifier reported for this record. |
| <code>data.linkedin_id</code> | <code>string</code> | Public LinkedIn profile identifier, returned as text. |
| <code>data.linkedin_num_id</code> | <code>string</code> | Numeric LinkedIn profile identifier returned as text. |
| <code>data.url</code> | <code>string</code> | LinkedIn URL for the public profile. |
| <code>data.name</code> | <code>string</code> | Full display name shown on the profile. |
| <code>data.first_name</code> | <code>string</code> | Given name reported on the profile. |
| <code>data.last_name</code> | <code>string</code> | Family name reported on the profile. |
| <code>data.position</code> | <code>string &#124; null</code> | Position or headline text shown on the profile, when available. |
| <code>data.about</code> | <code>string</code> | Public profile summary text. |
| <code>data.city</code> | <code>string</code> | City reported in the profile. |
| <code>data.country_code</code> | <code>string</code> | Country code reported in the profile. |
| <code>data.location</code> | <code>string</code> | Profile location as display text. |
| <code>data.avatar</code> | <code>string</code> | Profile avatar image URL. |
| <code>data.banner_image</code> | <code>string</code> | Profile banner image URL. |
| <code>data.default_avatar</code> | <code>boolean</code> | Whether the profile is marked as using a default avatar. |
| <code>data.influencer</code> | <code>boolean</code> | Influencer indicator reported for the profile. |
| <code>data.memorialized_account</code> | <code>boolean</code> | Whether the profile is marked as a memorialized account. |
| <code>data.followers</code> | <code>integer</code> | Reported follower count for the profile. |
| <code>data.connections</code> | <code>integer</code> | Reported connection count for the profile. |
| <code>data.current_company</code> | <code>object</code> | Current company details when reported on the profile. |
| <code>data.current_company.name</code> | <code>string</code> | Current company display name. |
| <code>data.current_company.company_id</code> | <code>string</code> | Identifier of the current company. |
| <code>data.current_company.title</code> | <code>string</code> | Reported role title at the current company. |
| <code>data.current_company.location</code> | <code>string &#124; null</code> | Location text reported for the current company, when available. |
| <code>data.current_company_company_id</code> | <code>string</code> | Current company ID reported at the profile level. |
| <code>data.current_company_name</code> | <code>string</code> | Current company name reported at the profile level. |
| <code>data.experience</code> | <code>array &#124; null</code> | Employment experience entries reported on the profile, when available. |
| <code>data.experience[]</code> | <code>object</code> | One employment experience entry. |
| <code>data.experience[].title</code> | <code>string</code> | Role title in this experience entry. |
| <code>data.experience[].location</code> | <code>string</code> | Location text for this experience entry. |
| <code>data.experience[].start_date</code> | <code>string</code> | Start date as display text for this experience entry. |
| <code>data.experience[].end_date</code> | <code>string</code> | End date as display text for this experience entry. |
| <code>data.experience[].company</code> | <code>string</code> | Company name in the experience entry. |
| <code>data.experience[].company_id</code> | <code>string</code> | Identifier of the company in this experience entry. |
| <code>data.experience[].url</code> | <code>string</code> | LinkedIn company URL associated with this experience entry. |
| <code>data.educations_details</code> | <code>string</code> | Education summary text shown on the profile. |
| <code>data.education</code> | <code>array</code> | Education entries reported on the profile. |
| <code>data.education[]</code> | <code>object</code> | One education entry. |
| <code>data.education[].title</code> | <code>string</code> | Title or institution name shown for the education entry. |
| <code>data.education[].url</code> | <code>string</code> | LinkedIn institution URL associated with the education entry. |
| <code>data.education[].start_year</code> | <code>string</code> | Start year as display text for the education entry. |
| <code>data.education[].end_year</code> | <code>string</code> | End year as display text for the education entry. |
| <code>data.education[].degree</code> | <code>string</code> | Degree text shown for the education entry. |
| <code>data.education[].field</code> | <code>string</code> | Field of study shown for the education entry. |
| <code>data.posts</code> | <code>array</code> | Posts returned with the public profile. |
| <code>data.posts[]</code> | <code>object</code> | One post returned with the public profile. |
| <code>data.posts[].id</code> | <code>string</code> | Identifier reported for this post. |
| <code>data.posts[].title</code> | <code>string</code> | Post title text. |
| <code>data.posts[].attribution</code> | <code>string</code> | Attribution text shown for the post. |
| <code>data.posts[].link</code> | <code>string</code> | LinkedIn link for the post. |
| <code>data.posts[].created_at</code> | <code>string</code> | Creation time text reported for the post. |
| <code>data.posts[].interaction</code> | <code>string</code> | Interaction summary text shown with the post. |
| <code>data.activity</code> | <code>array</code> | Activity entries returned with the public profile. |
| <code>data.activity[]</code> | <code>object</code> | One activity entry. |
| <code>data.activity[].id</code> | <code>string</code> | Identifier reported for the activity entry. |
| <code>data.activity[].title</code> | <code>string</code> | Title text shown for the activity entry. |
| <code>data.activity[].interaction</code> | <code>string &#124; null</code> | Interaction text shown for the activity entry, when available. |
| <code>data.activity[].link</code> | <code>string</code> | LinkedIn link for the activity entry. |
| <code>data.activity[].img</code> | <code>string &#124; null</code> | Image URL associated with the activity entry, when available. |
| <code>data.people_also_viewed</code> | <code>array</code> | Public profile cards shown as other people also viewed. |
| <code>data.people_also_viewed[]</code> | <code>object</code> | One public profile card in the also-viewed list. |
| <code>data.people_also_viewed[].profile_link</code> | <code>string</code> | LinkedIn profile URL for the related person. |
| <code>data.people_also_viewed[].name</code> | <code>string</code> | Display name shown on the related profile card. |
| <code>data.people_also_viewed[].about</code> | <code>string &#124; null</code> | Summary text shown for the related profile, when available. |
| <code>data.people_also_viewed[].location</code> | <code>string</code> | Location text shown on the related profile card. |
| <code>data.similar_profiles</code> | <code>array</code> | Public profile cards shown as similar profiles. |
| <code>data.similar_profiles[]</code> | <code>object</code> | One similar public profile card. |
| <code>data.similar_profiles[].url</code> | <code>string</code> | LinkedIn profile URL for this similar profile. |
| <code>data.similar_profiles[].name</code> | <code>string</code> | Display name shown for the similar profile. |
| <code>data.similar_profiles[].title</code> | <code>string &#124; null</code> | Headline shown for the similar profile, when available. |
| <code>data.similar_profiles[].url_text</code> | <code>string</code> | Display text for the similar profile link. |
| <code>data.certifications</code> | <code>array</code> | Certification entries reported on the public profile. |
| <code>data.certifications[]</code> | <code>object</code> | One certification entry. |
| <code>data.certifications[].title</code> | <code>string</code> | Certification title shown on the profile. |
| <code>data.certifications[].subtitle</code> | <code>string</code> | Subtitle shown for the certification entry. |
| <code>data.certifications[].meta</code> | <code>string</code> | Additional display text for the certification entry. |
| <code>data.recommendations_count</code> | <code>integer</code> | Reported number of recommendations for the profile. |
| <code>data.recommendations</code> | <code>array</code> | Recommendation text entries returned with the public profile. |
| <code>data.recommendations[]</code> | <code>string</code> | One reported recommendation as text. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/linkedin/get-user-detail/v1\"")' />

