---
title: "LinkedIn ユーザープロフィール API (V1)"
description: "ユーザー名でLinkedInプロフィールを取得します。名前やタイトルなどの主要なプロフィールフィールドを含みます。個人の職業経歴を調査したり、公開された投稿を要求する前に使用します。"
lastUpdated: false
aiUsagePrompt: true
---

# LinkedIn ユーザープロフィール API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/linkedin/get-user-detail/v1\"")'
  :summary='JSON.parse("\"ユーザープロフィール (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/linkedin/user-profile-v1-ja.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"このAPIサービスのアクセストークン。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"username\",\"in\":\"query\",\"description\":\"LinkedInプロフィールURLからのユーザー名、例えばlinkedin.com/in/jackからの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プロフィールの検索結果。レスポンスにはプロフィールフィールドがない場合のエラーコードとメッセージが含まれることがあります。\",\"properties\":{\"error_code\":{\"type\":\"string\",\"description\":\"プロフィールが利用できない場合、検索データに報告されるエラーコード。\"},\"error\":{\"type\":\"string\",\"description\":\"検索データに報告されるエラーメッセージ。\"},\"timestamp\":{\"type\":\"string\",\"description\":\"検索時に提供された場合のタイムスタンプテキスト。\"},\"id\":{\"type\":\"string\",\"description\":\"このレコードのプロフィール識別子。\"},\"linkedin_id\":{\"type\":\"string\",\"description\":\"テキスト形式で返される公開LinkedInプロフィール識別子。\"},\"linkedin_num_id\":{\"type\":\"string\",\"description\":\"テキスト形式で返される数値LinkedInプロフィール識別子。\"},\"url\":{\"type\":\"string\",\"description\":\"公開プロフィールのLinkedIn URL。\"},\"name\":{\"type\":\"string\",\"description\":\"プロフィール上に表示されるフルディスプレイ名。\"},\"first_name\":{\"type\":\"string\",\"description\":\"プロフィール上に報告される名前。\"},\"last_name\":{\"type\":\"string\",\"description\":\"プロフィール上に報告される姓。\"},\"position\":{\"type\":[\"string\",\"null\"],\"description\":\"利用可能な場合、プロフィール上に表示される役職または見出しテキスト。\"},\"about\":{\"type\":\"string\",\"description\":\"公開プロフィールの要約テキスト。\"},\"city\":{\"type\":\"string\",\"description\":\"プロフィール上に報告される都市。\"},\"country_code\":{\"type\":\"string\",\"description\":\"プロフィール上に報告される国コード。\"},\"location\":{\"type\":\"string\",\"description\":\"プロフィールの表示テキストとしての位置情報。\"},\"avatar\":{\"type\":\"string\",\"description\":\"プロフィールのアバター画像のURL。\"},\"banner_image\":{\"type\":\"string\",\"description\":\"プロフィールのバナー画像のURL。\"},\"default_avatar\":{\"type\":\"boolean\",\"description\":\"プロフィールがデフォルトアバターを使用しているかどうか。\"},\"influencer\":{\"type\":\"boolean\",\"description\":\"プロフィールに関する影響力者を示す指標。\"},\"memorialized_account\":{\"type\":\"boolean\",\"description\":\"プロフィールが記念アカウントとしてマークされているかどうか。\"},\"followers\":{\"type\":\"integer\",\"description\":\"プロフィールに関する報告されたフォロワー数。\"},\"connections\":{\"type\":\"integer\",\"description\":\"プロフィールに関する報告された接続数。\"},\"current_company\":{\"type\":\"object\",\"description\":\"プロフィール上で報告された現在の会社の詳細。\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"プロフィール上で表示される現在の会社のディスプレイ名。\"},\"company_id\":{\"type\":\"string\",\"description\":\"現在の会社の識別子。\"},\"title\":{\"type\":\"string\",\"description\":\"現在の会社での役職名。\"},\"location\":{\"type\":[\"string\",\"null\"],\"description\":\"現在の会社に関する報告された位置情報（利用可能な場合）。\"}}},\"current_company_company_id\":{\"type\":\"string\",\"description\":\"プロフィールレベルで報告された現在の会社ID。\"},\"current_company_name\":{\"type\":\"string\",\"description\":\"プロフィールレベルで報告された現在の会社名。\"},\"experience\":{\"type\":[\"array\",\"null\"],\"description\":\"プロフィール上で報告された雇用経験のエントリ。利用可能な場合。\",\"items\":{\"type\":\"object\",\"description\":\"その雇用経験のエントリにおける役職名。\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"その雇用経験のエントリにおける位置情報。\"},\"location\":{\"type\":\"string\",\"description\":\"その雇用経験のエントリにおける開始日の表示テキスト。\"},\"start_date\":{\"type\":\"string\",\"description\":\"その雇用経験のエントリにおける終了日の表示テキスト。\"},\"end_date\":{\"type\":\"string\",\"description\":\"その雇用経験のエントリにおける会社名。\"},\"company\":{\"type\":\"string\",\"description\":\"その雇用経験のエントリにおける会社の識別子。\"},\"company_id\":{\"type\":\"string\",\"description\":\"その雇用経験のエントリに関連するLinkedIn会社のURL。\"},\"url\":{\"type\":\"string\",\"description\":\"このエクスペリエンスエントリに関連するLinkedIn企業のURL。\"}}}},\"educations_details\":{\"type\":\"string\",\"description\":\"プロフィールに表示される教育概要テキスト。\"},\"education\":{\"type\":\"array\",\"description\":\"プロフィールに報告された教育エントリ。\",\"items\":{\"type\":\"object\",\"description\":\"一つの教育エントリ。\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"教育エントリのタイトルまたは機関名。\"},\"url\":{\"type\":\"string\",\"description\":\"教育エントリに関連するLinkedIn機関のURL。\"},\"start_year\":{\"type\":\"string\",\"description\":\"教育エントリの表示テキストとしての開始年。\"},\"end_year\":{\"type\":\"string\",\"description\":\"教育エントリの表示テキストとしての終了年。\"},\"degree\":{\"type\":\"string\",\"description\":\"教育エントリの表示テキストとしての学位テキスト。\"},\"field\":{\"type\":\"string\",\"description\":\"教育エントリの表示テキストとしての学問分野。\"}}}},\"posts\":{\"type\":\"array\",\"description\":\"公開プロフィールで返される投稿。\",\"items\":{\"type\":\"object\",\"description\":\"公開プロフィールで返される一つの投稿。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"この投稿の報告された識別子。\"},\"title\":{\"type\":\"string\",\"description\":\"投稿のタイトルテキスト。\"},\"attribution\":{\"type\":\"string\",\"description\":\"投稿の表示テキストとしての帰属テキスト。\"},\"link\":{\"type\":\"string\",\"description\":\"投稿のLinkedInリンク。\"},\"created_at\":{\"type\":\"string\",\"description\":\"投稿の報告された作成時間テキスト。\"},\"interaction\":{\"type\":\"string\",\"description\":\"投稿に表示されるインタラクション概要テキスト。\"}}}},\"activity\":{\"type\":\"array\",\"description\":\"公開プロフィールで返されるアクティビティエントリ。\",\"items\":{\"type\":\"object\",\"description\":\"一つのアクティビティエントリ。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"アクティビティエントリの報告された識別子。\"},\"title\":{\"type\":\"string\",\"description\":\"アクティビティエントリの表示テキストとしてのタイトルテキスト。\"},\"interaction\":{\"type\":[\"string\",\"null\"],\"description\":\"アクティビティエントリのインタラクションテキスト（利用可能な場合）。\"},\"link\":{\"type\":\"string\",\"description\":\"アクティビティエントリのLinkedInリンク。\"},\"img\":{\"type\":[\"string\",\"null\"],\"description\":\"アクティビティエントリに関連する画像URL（利用可能な場合）。\"}}}},\"people_also_viewed\":{\"type\":\"array\",\"description\":\"他の人も視聴したと表示される公開プロフィールカード。\",\"items\":{\"type\":\"object\",\"description\":\"もう見たリスト内の一つの公開プロフィールカード。\",\"properties\":{\"profile_link\":{\"type\":\"string\",\"description\":\"関連人物のLinkedInプロフィールURL。\"},\"name\":{\"type\":\"string\",\"description\":\"関連プロフィールカードに表示されるデスクリプタ名。\"},\"about\":{\"type\":[\"string\",\"null\"],\"description\":\"利用可能な場合、関連プロフィールに表示される要約テキスト。\"},\"location\":{\"type\":\"string\",\"description\":\"関連プロフィールカードに表示される場所テキスト。\"}}}},\"similar_profiles\":{\"type\":\"array\",\"description\":\"類似プロフィールとして表示される公開プロフィールカード。\",\"items\":{\"type\":\"object\",\"description\":\"一つの類似の公開プロフィールカード。\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"この類似プロフィールのLinkedInプロフィールURL。\"},\"name\":{\"type\":\"string\",\"description\":\"類似プロフィールに表示されるデスクリプタ名。\"},\"title\":{\"type\":[\"string\",\"null\"],\"description\":\"利用可能な場合、類似プロフィールに表示される見出し。\"},\"url_text\":{\"type\":\"string\",\"description\":\"類似プロフィールリンクの表示テキスト。\"}}}},\"certifications\":{\"type\":\"array\",\"description\":\"公開プロフィールに報告された認証エントリ数。\",\"items\":{\"type\":\"object\",\"description\":\"一つの認証エントリ。\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"プロフィールに表示される認証タイトル。\"},\"subtitle\":{\"type\":\"string\",\"description\":\"認証エントリに表示されるサブタイトル。\"},\"meta\":{\"type\":\"string\",\"description\":\"認証エントリの追加表示テキスト。\"}}}},\"recommendations_count\":{\"type\":\"integer\",\"description\":\"プロフィールに対する報告された推薦数。\"},\"recommendations\":{\"type\":\"array\",\"description\":\"公開プロフィールに返される推薦テキストエントリ。\",\"items\":{\"type\":\"string\",\"description\":\"テキスト形式で報告された一つの推薦。\"}}}}}},\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"有効でないリクエストパラメータまたはボディ。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"有効でないまたは無効なアクセストークン。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"権限拒否。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"リクエストレートまたは日次クォーターリミットを超過。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"内部サーバーエラー。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"サービスが一時的に利用できない。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"グローバルプロダクションAPI（デフォルト）\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

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

<p>ユーザー名でLinkedInプロフィールを取得します。名前やタイトルなどの主要なプロフィールフィールドを含みます。個人の職業経歴を調査したり、公開された投稿を要求する前に使用します。</p>

## パラメータ

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

| 名前 | パラメーターの場所 | タイプ | 必須 | デフォルト | 説明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | はい | - | このAPIサービスのアクセストークン。 |
| <code>username</code> | query | <code>string</code> | はい | - | LinkedInプロフィールURLからのユーザー名、例えばlinkedin.com/in/jackからのjack。 |

</div>

## コードサンプル

::: 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プロンプト]
私はJustOneAPIの"ユーザープロフィール (V1)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE
APIエンドポイント: BASE_URL + /api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE
HTTPメソッド: GET
認証: "token"クエリパラメーターをURLに追加します。
OpenAPI定義: https://docs.justoneapi.com/openapi/linkedin/user-profile-v1-ja.json

パラメーター:
- token (query): このAPIサービスのアクセストークン。 (必須)
- username (query): LinkedInプロフィールURLからのユーザー名、例えばlinkedin.com/in/jackからのjack。 (必須)

返信形式：実際のContent-Typeに応じて、JSONまたはテキストを安全に処理する。

レスポンスの処理とエラーコード：
1. API の処理結果はレスポンス本文の「code」フィールドで判定します。code が 0 なら成功です。
2. 推奨タイムアウト：リクエストのタイムアウトは 120 秒に設定してください。120 秒が長すぎる場合でも、最低 60 秒を確保してください。一部のリクエストは、結果を受け取る前にタイムアウトすることがあります。
3. 処理結果コード：
   - 0: 成功
   - 100: 無効または停止中のトークン
   - 301: データの取得に失敗しました。再試行してください。
   - 302: 呼び出し頻度の上限を超えました
   - 303: 日次の利用上限を超えました
   - 400: パラメーターが無効です
   - 500: サーバー内部エラー
   - 600: アクセス権限がありません
   - 601: 残高不足
   - 602: トークンの予算上限に達しました
4. コード 601 はアカウントの共有残高不足を示します。コード 602 は使用中の API トークン固有の累積予算上限に達したことを示します。トークンに予算上限を設定しても、共有残高から資金が移動することはありません。

お手伝いください。私が好むプログラミング言語でこのAPIを呼び出し、レスポンスを処理するスクリプトを作成してください。
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # オープンAPIサーバーによって提供される

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"; // オープンAPIサーバーによって提供される
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"; // オープンAPIサーバーによって提供される
        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" // オープンAPIサーバーによって提供される

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'; // オープンAPIサーバーによって提供される
$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-ja.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI定義 (JSON)]</a>
</div>

## レスポンスフィールド

成功したレスポンスのキーフィールド（`code = 0`）。

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

| フィールドパス | タイプ | 説明 |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | LinkedInプロフィールの検索結果。レスポンスにはプロフィールフィールドがない場合のエラーコードとメッセージが含まれることがあります。 |
| <code>data.error_code</code> | <code>string</code> | プロフィールが利用できない場合、検索データに報告されるエラーコード。 |
| <code>data.error</code> | <code>string</code> | 検索データに報告されるエラーメッセージ。 |
| <code>data.timestamp</code> | <code>string</code> | 検索時に提供された場合のタイムスタンプテキスト。 |
| <code>data.id</code> | <code>string</code> | このレコードのプロフィール識別子。 |
| <code>data.linkedin_id</code> | <code>string</code> | テキスト形式で返される公開LinkedInプロフィール識別子。 |
| <code>data.linkedin_num_id</code> | <code>string</code> | テキスト形式で返される数値LinkedInプロフィール識別子。 |
| <code>data.url</code> | <code>string</code> | 公開プロフィールのLinkedIn URL。 |
| <code>data.name</code> | <code>string</code> | プロフィール上に表示されるフルディスプレイ名。 |
| <code>data.first_name</code> | <code>string</code> | プロフィール上に報告される名前。 |
| <code>data.last_name</code> | <code>string</code> | プロフィール上に報告される姓。 |
| <code>data.position</code> | <code>string &#124; null</code> | 利用可能な場合、プロフィール上に表示される役職または見出しテキスト。 |
| <code>data.about</code> | <code>string</code> | 公開プロフィールの要約テキスト。 |
| <code>data.city</code> | <code>string</code> | プロフィール上に報告される都市。 |
| <code>data.country_code</code> | <code>string</code> | プロフィール上に報告される国コード。 |
| <code>data.location</code> | <code>string</code> | プロフィールの表示テキストとしての位置情報。 |
| <code>data.avatar</code> | <code>string</code> | プロフィールのアバター画像のURL。 |
| <code>data.banner_image</code> | <code>string</code> | プロフィールのバナー画像のURL。 |
| <code>data.default_avatar</code> | <code>boolean</code> | プロフィールがデフォルトアバターを使用しているかどうか。 |
| <code>data.influencer</code> | <code>boolean</code> | プロフィールに関する影響力者を示す指標。 |
| <code>data.memorialized_account</code> | <code>boolean</code> | プロフィールが記念アカウントとしてマークされているかどうか。 |
| <code>data.followers</code> | <code>integer</code> | プロフィールに関する報告されたフォロワー数。 |
| <code>data.connections</code> | <code>integer</code> | プロフィールに関する報告された接続数。 |
| <code>data.current_company</code> | <code>object</code> | プロフィール上で報告された現在の会社の詳細。 |
| <code>data.current_company.name</code> | <code>string</code> | プロフィール上で表示される現在の会社のディスプレイ名。 |
| <code>data.current_company.company_id</code> | <code>string</code> | 現在の会社の識別子。 |
| <code>data.current_company.title</code> | <code>string</code> | 現在の会社での役職名。 |
| <code>data.current_company.location</code> | <code>string &#124; null</code> | 現在の会社に関する報告された位置情報（利用可能な場合）。 |
| <code>data.current_company_company_id</code> | <code>string</code> | プロフィールレベルで報告された現在の会社ID。 |
| <code>data.current_company_name</code> | <code>string</code> | プロフィールレベルで報告された現在の会社名。 |
| <code>data.experience</code> | <code>array &#124; null</code> | プロフィール上で報告された雇用経験のエントリ。利用可能な場合。 |
| <code>data.experience[]</code> | <code>object</code> | その雇用経験のエントリにおける役職名。 |
| <code>data.experience[].title</code> | <code>string</code> | その雇用経験のエントリにおける位置情報。 |
| <code>data.experience[].location</code> | <code>string</code> | その雇用経験のエントリにおける開始日の表示テキスト。 |
| <code>data.experience[].start_date</code> | <code>string</code> | その雇用経験のエントリにおける終了日の表示テキスト。 |
| <code>data.experience[].end_date</code> | <code>string</code> | その雇用経験のエントリにおける会社名。 |
| <code>data.experience[].company</code> | <code>string</code> | その雇用経験のエントリにおける会社の識別子。 |
| <code>data.experience[].company_id</code> | <code>string</code> | その雇用経験のエントリに関連するLinkedIn会社のURL。 |
| <code>data.experience[].url</code> | <code>string</code> | このエクスペリエンスエントリに関連するLinkedIn企業のURL。 |
| <code>data.educations_details</code> | <code>string</code> | プロフィールに表示される教育概要テキスト。 |
| <code>data.education</code> | <code>array</code> | プロフィールに報告された教育エントリ。 |
| <code>data.education[]</code> | <code>object</code> | 一つの教育エントリ。 |
| <code>data.education[].title</code> | <code>string</code> | 教育エントリのタイトルまたは機関名。 |
| <code>data.education[].url</code> | <code>string</code> | 教育エントリに関連するLinkedIn機関のURL。 |
| <code>data.education[].start_year</code> | <code>string</code> | 教育エントリの表示テキストとしての開始年。 |
| <code>data.education[].end_year</code> | <code>string</code> | 教育エントリの表示テキストとしての終了年。 |
| <code>data.education[].degree</code> | <code>string</code> | 教育エントリの表示テキストとしての学位テキスト。 |
| <code>data.education[].field</code> | <code>string</code> | 教育エントリの表示テキストとしての学問分野。 |
| <code>data.posts</code> | <code>array</code> | 公開プロフィールで返される投稿。 |
| <code>data.posts[]</code> | <code>object</code> | 公開プロフィールで返される一つの投稿。 |
| <code>data.posts[].id</code> | <code>string</code> | この投稿の報告された識別子。 |
| <code>data.posts[].title</code> | <code>string</code> | 投稿のタイトルテキスト。 |
| <code>data.posts[].attribution</code> | <code>string</code> | 投稿の表示テキストとしての帰属テキスト。 |
| <code>data.posts[].link</code> | <code>string</code> | 投稿のLinkedInリンク。 |
| <code>data.posts[].created_at</code> | <code>string</code> | 投稿の報告された作成時間テキスト。 |
| <code>data.posts[].interaction</code> | <code>string</code> | 投稿に表示されるインタラクション概要テキスト。 |
| <code>data.activity</code> | <code>array</code> | 公開プロフィールで返されるアクティビティエントリ。 |
| <code>data.activity[]</code> | <code>object</code> | 一つのアクティビティエントリ。 |
| <code>data.activity[].id</code> | <code>string</code> | アクティビティエントリの報告された識別子。 |
| <code>data.activity[].title</code> | <code>string</code> | アクティビティエントリの表示テキストとしてのタイトルテキスト。 |
| <code>data.activity[].interaction</code> | <code>string &#124; null</code> | アクティビティエントリのインタラクションテキスト（利用可能な場合）。 |
| <code>data.activity[].link</code> | <code>string</code> | アクティビティエントリのLinkedInリンク。 |
| <code>data.activity[].img</code> | <code>string &#124; null</code> | アクティビティエントリに関連する画像URL（利用可能な場合）。 |
| <code>data.people_also_viewed</code> | <code>array</code> | 他の人も視聴したと表示される公開プロフィールカード。 |
| <code>data.people_also_viewed[]</code> | <code>object</code> | もう見たリスト内の一つの公開プロフィールカード。 |
| <code>data.people_also_viewed[].profile_link</code> | <code>string</code> | 関連人物のLinkedInプロフィールURL。 |
| <code>data.people_also_viewed[].name</code> | <code>string</code> | 関連プロフィールカードに表示されるデスクリプタ名。 |
| <code>data.people_also_viewed[].about</code> | <code>string &#124; null</code> | 利用可能な場合、関連プロフィールに表示される要約テキスト。 |
| <code>data.people_also_viewed[].location</code> | <code>string</code> | 関連プロフィールカードに表示される場所テキスト。 |
| <code>data.similar_profiles</code> | <code>array</code> | 類似プロフィールとして表示される公開プロフィールカード。 |
| <code>data.similar_profiles[]</code> | <code>object</code> | 一つの類似の公開プロフィールカード。 |
| <code>data.similar_profiles[].url</code> | <code>string</code> | この類似プロフィールのLinkedInプロフィールURL。 |
| <code>data.similar_profiles[].name</code> | <code>string</code> | 類似プロフィールに表示されるデスクリプタ名。 |
| <code>data.similar_profiles[].title</code> | <code>string &#124; null</code> | 利用可能な場合、類似プロフィールに表示される見出し。 |
| <code>data.similar_profiles[].url_text</code> | <code>string</code> | 類似プロフィールリンクの表示テキスト。 |
| <code>data.certifications</code> | <code>array</code> | 公開プロフィールに報告された認証エントリ数。 |
| <code>data.certifications[]</code> | <code>object</code> | 一つの認証エントリ。 |
| <code>data.certifications[].title</code> | <code>string</code> | プロフィールに表示される認証タイトル。 |
| <code>data.certifications[].subtitle</code> | <code>string</code> | 認証エントリに表示されるサブタイトル。 |
| <code>data.certifications[].meta</code> | <code>string</code> | 認証エントリの追加表示テキスト。 |
| <code>data.recommendations_count</code> | <code>integer</code> | プロフィールに対する報告された推薦数。 |
| <code>data.recommendations</code> | <code>array</code> | 公開プロフィールに返される推薦テキストエントリ。 |
| <code>data.recommendations[]</code> | <code>string</code> | テキスト形式で報告された一つの推薦。 |

</div>

## レスポンス例

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

