---
title: "LinkedIn Profil Pengguna API (V1)"
description: "Mengambil profil LinkedIn berdasarkan nama pengguna, termasuk bidang profil inti yang terdaftar seperti nama dan judul. Digunakan untuk memeriksa latar belakang profesional seseorang atau sebelum meminta postingan yang telah diterbitkan."
lastUpdated: false
aiUsagePrompt: true
---

# LinkedIn Profil Pengguna API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/linkedin/get-user-detail/v1\"")'
  :summary='JSON.parse("\"Profil Pengguna (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/linkedin/user-profile-v1-id.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Token akses untuk layanan API ini.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"username\",\"in\":\"query\",\"description\":\"Nama pengguna LinkedIn dari URL profil, misalnya jack dari 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\":\"Hasil pencarian profil LinkedIn. Tanggapan dapat berisi kode dan pesan kesalahan tanpa field profil.\",\"properties\":{\"error_code\":{\"type\":\"string\",\"description\":\"Kode kesalahan yang dilaporkan dalam data pencarian ketika profil tidak tersedia.\"},\"error\":{\"type\":\"string\",\"description\":\"Pesan kesalahan yang dilaporkan dalam data pencarian.\"},\"timestamp\":{\"type\":\"string\",\"description\":\"Teks tanggal waktu yang dilaporkan untuk pencarian, jika diberikan.\"},\"id\":{\"type\":\"string\",\"description\":\"Identifikasi profil untuk rekaman ini.\"},\"linkedin_id\":{\"type\":\"string\",\"description\":\"Identifikasi profil LinkedIn publik, dikembalikan sebagai teks.\"},\"linkedin_num_id\":{\"type\":\"string\",\"description\":\"Identifikasi profil LinkedIn numerik, dikembalikan sebagai teks.\"},\"url\":{\"type\":\"string\",\"description\":\"URL LinkedIn untuk profil publik.\"},\"name\":{\"type\":\"string\",\"description\":\"Nama lengkap yang ditampilkan pada profil.\"},\"first_name\":{\"type\":\"string\",\"description\":\"Nama depan yang dilaporkan pada profil.\"},\"last_name\":{\"type\":\"string\",\"description\":\"Nama keluarga yang dilaporkan pada profil.\"},\"position\":{\"type\":[\"string\",\"null\"],\"description\":\"Judul atau teks posisi yang ditampilkan pada profil, jika tersedia.\"},\"about\":{\"type\":\"string\",\"description\":\"Teks ringkasan profil publik.\"},\"city\":{\"type\":\"string\",\"description\":\"Kota yang dilaporkan dalam profil.\"},\"country_code\":{\"type\":\"string\",\"description\":\"Kode negara yang dilaporkan dalam profil.\"},\"location\":{\"type\":\"string\",\"description\":\"Lokasi profil sebagai teks tampilan.\"},\"avatar\":{\"type\":\"string\",\"description\":\"URL gambar avatar profil.\"},\"banner_image\":{\"type\":\"string\",\"description\":\"URL gambar banner profil.\"},\"default_avatar\":{\"type\":\"boolean\",\"description\":\"Apakah profil ditandai sebagai menggunakan avatar default.\"},\"influencer\":{\"type\":\"boolean\",\"description\":\"Indikator influencer yang dilaporkan untuk profil.\"},\"memorialized_account\":{\"type\":\"boolean\",\"description\":\"Apakah profil ditandai sebagai akun yang telah dihapus.\"},\"followers\":{\"type\":\"integer\",\"description\":\"Jumlah pengikut yang dilaporkan untuk profil.\"},\"connections\":{\"type\":\"integer\",\"description\":\"Jumlah koneksi yang dilaporkan untuk profil.\"},\"current_company\":{\"type\":\"object\",\"description\":\"Detail perusahaan saat dilaporkan pada profil.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Nama perusahaan yang ditampilkan saat ini.\"},\"company_id\":{\"type\":\"string\",\"description\":\"Identifikasi perusahaan saat ini.\"},\"title\":{\"type\":\"string\",\"description\":\"Judul peran di perusahaan saat ini.\"},\"location\":{\"type\":[\"string\",\"null\"],\"description\":\"Teks lokasi yang dilaporkan untuk perusahaan saat ini, jika tersedia.\"}}},\"current_company_company_id\":{\"type\":\"string\",\"description\":\"ID perusahaan saat ini yang dilaporkan pada tingkat profil.\"},\"current_company_name\":{\"type\":\"string\",\"description\":\"Nama perusahaan saat ini yang dilaporkan pada tingkat profil.\"},\"experience\":{\"type\":[\"array\",\"null\"],\"description\":\"Entri pengalaman kerja yang dilaporkan pada profil, jika tersedia.\",\"items\":{\"type\":\"object\",\"description\":\"Satu entri pengalaman kerja.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Judul peran dalam entri pengalaman kerja ini.\"},\"location\":{\"type\":\"string\",\"description\":\"Teks lokasi untuk entri pengalaman kerja ini.\"},\"start_date\":{\"type\":\"string\",\"description\":\"Tanggal mulai sebagai teks tampilan untuk entri pengalaman kerja ini.\"},\"end_date\":{\"type\":\"string\",\"description\":\"Tanggal akhir sebagai teks tampilan untuk entri pengalaman kerja ini.\"},\"company\":{\"type\":\"string\",\"description\":\"Nama perusahaan dalam entri pengalaman kerja ini.\"},\"company_id\":{\"type\":\"string\",\"description\":\"Identifikasi perusahaan dalam entri pengalaman kerja ini.\"},\"url\":{\"type\":\"string\",\"description\":\"URL perusahaan LinkedIn yang terkait dengan entri pengalaman kerja ini.\"}}}},\"educations_details\":{\"type\":\"string\",\"description\":\"Ringkasan pendidikan yang ditampilkan pada profil.\"},\"education\":{\"type\":\"array\",\"description\":\"Entri pendidikan yang dilaporkan pada profil.\",\"items\":{\"type\":\"object\",\"description\":\"Satu entri pendidikan.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Judul atau nama institusi yang ditampilkan untuk entri pendidikan.\"},\"url\":{\"type\":\"string\",\"description\":\"URL institusi LinkedIn yang terkait dengan entri pendidikan.\"},\"start_year\":{\"type\":\"string\",\"description\":\"Tahun mulai sebagai teks tampilan untuk entri pendidikan.\"},\"end_year\":{\"type\":\"string\",\"description\":\"Tahun akhir sebagai teks tampilan untuk entri pendidikan.\"},\"degree\":{\"type\":\"string\",\"description\":\"Teks gelar yang ditampilkan untuk entri pendidikan.\"},\"field\":{\"type\":\"string\",\"description\":\"Bidang studi yang ditampilkan untuk entri pendidikan.\"}}}},\"posts\":{\"type\":\"array\",\"description\":\"Post yang dikembalikan dengan profil publik.\",\"items\":{\"type\":\"object\",\"description\":\"Satu post yang dikembalikan dengan profil publik.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Identifikasi yang dilaporkan untuk post ini.\"},\"title\":{\"type\":\"string\",\"description\":\"Teks judul post.\"},\"attribution\":{\"type\":\"string\",\"description\":\"Teks atribusi yang ditampilkan untuk post.\"},\"link\":{\"type\":\"string\",\"description\":\"Link LinkedIn untuk post.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Teks waktu pembuatan yang dilaporkan untuk post.\"},\"interaction\":{\"type\":\"string\",\"description\":\"Ringkasan interaksi yang ditampilkan bersama post.\"}}}},\"activity\":{\"type\":\"array\",\"description\":\"Entri aktivitas yang dikembalikan dengan profil publik.\",\"items\":{\"type\":\"object\",\"description\":\"Satu entri aktivitas.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Identifikasi yang dilaporkan untuk entri aktivitas.\"},\"title\":{\"type\":\"string\",\"description\":\"Teks judul yang ditampilkan untuk entri aktivitas.\"},\"interaction\":{\"type\":[\"string\",\"null\"],\"description\":\"Teks interaksi yang ditampilkan untuk entri aktivitas, jika tersedia.\"},\"link\":{\"type\":\"string\",\"description\":\"Link LinkedIn untuk entri aktivitas.\"},\"img\":{\"type\":[\"string\",\"null\"],\"description\":\"URL gambar yang terkait dengan entri aktivitas, jika tersedia.\"}}}},\"people_also_viewed\":{\"type\":\"array\",\"description\":\"Kartu profil publik yang ditampilkan sebagai hal yang dilihat oleh orang lain.\",\"items\":{\"type\":\"object\",\"description\":\"Satu kartu profil publik dalam daftar hal yang dilihat.\",\"properties\":{\"profile_link\":{\"type\":\"string\",\"description\":\"URL profil LinkedIn untuk orang terkait.\"},\"name\":{\"type\":\"string\",\"description\":\"Nama tampilan yang ditampilkan pada kartu profil terkait.\"},\"about\":{\"type\":[\"string\",\"null\"],\"description\":\"Teks ringkasan yang ditampilkan untuk profil terkait, jika tersedia.\"},\"location\":{\"type\":\"string\",\"description\":\"Teks lokasi yang ditampilkan pada kartu profil terkait.\"}}}},\"similar_profiles\":{\"type\":\"array\",\"description\":\"Kartu profil publik yang ditampilkan sebagai profil serupa.\",\"items\":{\"type\":\"object\",\"description\":\"Satu kartu profil publik serupa.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL profil LinkedIn untuk profil serupa ini.\"},\"name\":{\"type\":\"string\",\"description\":\"Nama tampilan yang ditampilkan untuk profil serupa.\"},\"title\":{\"type\":[\"string\",\"null\"],\"description\":\"Judul yang ditampilkan untuk profil serupa, jika tersedia.\"},\"url_text\":{\"type\":\"string\",\"description\":\"Teks tampilan untuk tautan profil serupa.\"}}}},\"certifications\":{\"type\":\"array\",\"description\":\"Entri sertifikat yang dilaporkan pada profil publik.\",\"items\":{\"type\":\"object\",\"description\":\"Satu entri sertifikat.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Judul sertifikat yang ditampilkan pada profil.\"},\"subtitle\":{\"type\":\"string\",\"description\":\"Subjudul yang ditampilkan untuk entri sertifikat.\"},\"meta\":{\"type\":\"string\",\"description\":\"Teks tampilan tambahan untuk entri sertifikat.\"}}}},\"recommendations_count\":{\"type\":\"integer\",\"description\":\"Jumlah rekomendasi yang dilaporkan untuk profil.\"},\"recommendations\":{\"type\":\"array\",\"description\":\"Entri teks rekomendasi yang dikembalikan bersama profil publik.\",\"items\":{\"type\":\"string\",\"description\":\"Satu rekomendasi yang dilaporkan sebagai teks.\"}}}}}},\"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\":\"Parameter atau isi permintaan yang tidak valid\",\"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\":\"Token akses yang tidak valid atau tidak aktif\",\"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\":\"Izin ditolak\",\"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\":\"Laju permintaan atau batas kuota harian terlampaui\",\"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\":\"Kesalahan server internal\",\"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\":\"Layanan sementara tidak tersedia\",\"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 produksi global (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

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

<p>Mengambil profil LinkedIn berdasarkan nama pengguna, termasuk bidang profil inti yang terdaftar seperti nama dan judul. Digunakan untuk memeriksa latar belakang profesional seseorang atau sebelum meminta postingan yang telah diterbitkan.</p>

## Parameter

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

| Nama | Lokasi | Jenis | Wajib | Bawaan | Deskripsi |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Ya | - | Token akses untuk layanan API ini. |
| <code>username</code> | query | <code>string</code> | Ya | - | Nama pengguna LinkedIn dari URL profil, misalnya jack dari linkedin.com/in/jack. |

</div>

## Contoh Kode

::: 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 [🤖 Prompt AI]
Saya ingin menggunakan API "Profil Pengguna (V1)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE
Endpoint API: BASE_URL + /api/linkedin/get-user-detail/v1?token=YOUR_API_KEY&username=VALUE
Metode HTTP: GET
Autentikasi: Tambahkan parameter query "token" ke URL.
Definisi OpenAPI: https://docs.justoneapi.com/openapi/linkedin/user-profile-v1-id.json

Parameter:
- token (query): Token akses untuk layanan API ini. (Wajib)
- username (query): Nama pengguna LinkedIn dari URL profil, misalnya jack dari linkedin.com/in/jack. (Wajib)

Format Kembalian: tangani dengan aman JSON atau teks sesuai dengan Content-Type yang sebenarnya.

Penanganan respons dan kode kesalahan:
1. Tentukan hasil pemrosesan dari kolom "code" dalam isi respons (code 0 berarti berhasil).
2. Batas waktu yang disarankan: Atur batas waktu permintaan menjadi 120 detik. Jika 120 detik terlalu lama untuk kebutuhan Anda, gunakan setidaknya 60 detik. Sebagian kecil permintaan mungkin mencapai batas waktu sebelum hasil diterima.
3. Kode hasil:
   - 0: Berhasil
   - 100: Token tidak valid atau tidak aktif
   - 301: Gagal mengambil data. Silakan coba lagi.
   - 302: Batas frekuensi permintaan terlampaui
   - 303: Kuota harian terlampaui
   - 400: Parameter tidak valid
   - 500: Kesalahan internal server
   - 600: Akses ditolak
   - 601: Saldo tidak mencukupi
   - 602: Batas anggaran token tercapai
4. Kode 601 berarti saldo bersama akun tidak mencukupi. Kode 602 berarti token API yang digunakan telah mencapai batas anggaran kumulatifnya sendiri. Menetapkan batas anggaran token tidak memindahkan dana dari saldo bersama akun.

Tolong bantu saya menulis skrip dalam bahasa pemrograman favorit saya untuk memanggil API ini dan menangani responsnya.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Diberikan oleh server OpenAPI

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"; // Diberikan oleh server OpenAPI
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"; // Diberikan oleh server OpenAPI
        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" // Diberikan oleh server OpenAPI

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'; // Diberikan oleh server OpenAPI
$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-id.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[Definisi OpenAPI (JSON)]</a>
</div>

## Field Respons

Field Kunci dalam respons yang sukses (`code = 0`).

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

| Jalur Field | Jenis | Deskripsi |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Hasil pencarian profil LinkedIn. Tanggapan dapat berisi kode dan pesan kesalahan tanpa field profil. |
| <code>data.error_code</code> | <code>string</code> | Kode kesalahan yang dilaporkan dalam data pencarian ketika profil tidak tersedia. |
| <code>data.error</code> | <code>string</code> | Pesan kesalahan yang dilaporkan dalam data pencarian. |
| <code>data.timestamp</code> | <code>string</code> | Teks tanggal waktu yang dilaporkan untuk pencarian, jika diberikan. |
| <code>data.id</code> | <code>string</code> | Identifikasi profil untuk rekaman ini. |
| <code>data.linkedin_id</code> | <code>string</code> | Identifikasi profil LinkedIn publik, dikembalikan sebagai teks. |
| <code>data.linkedin_num_id</code> | <code>string</code> | Identifikasi profil LinkedIn numerik, dikembalikan sebagai teks. |
| <code>data.url</code> | <code>string</code> | URL LinkedIn untuk profil publik. |
| <code>data.name</code> | <code>string</code> | Nama lengkap yang ditampilkan pada profil. |
| <code>data.first_name</code> | <code>string</code> | Nama depan yang dilaporkan pada profil. |
| <code>data.last_name</code> | <code>string</code> | Nama keluarga yang dilaporkan pada profil. |
| <code>data.position</code> | <code>string &#124; null</code> | Judul atau teks posisi yang ditampilkan pada profil, jika tersedia. |
| <code>data.about</code> | <code>string</code> | Teks ringkasan profil publik. |
| <code>data.city</code> | <code>string</code> | Kota yang dilaporkan dalam profil. |
| <code>data.country_code</code> | <code>string</code> | Kode negara yang dilaporkan dalam profil. |
| <code>data.location</code> | <code>string</code> | Lokasi profil sebagai teks tampilan. |
| <code>data.avatar</code> | <code>string</code> | URL gambar avatar profil. |
| <code>data.banner_image</code> | <code>string</code> | URL gambar banner profil. |
| <code>data.default_avatar</code> | <code>boolean</code> | Apakah profil ditandai sebagai menggunakan avatar default. |
| <code>data.influencer</code> | <code>boolean</code> | Indikator influencer yang dilaporkan untuk profil. |
| <code>data.memorialized_account</code> | <code>boolean</code> | Apakah profil ditandai sebagai akun yang telah dihapus. |
| <code>data.followers</code> | <code>integer</code> | Jumlah pengikut yang dilaporkan untuk profil. |
| <code>data.connections</code> | <code>integer</code> | Jumlah koneksi yang dilaporkan untuk profil. |
| <code>data.current_company</code> | <code>object</code> | Detail perusahaan saat dilaporkan pada profil. |
| <code>data.current_company.name</code> | <code>string</code> | Nama perusahaan yang ditampilkan saat ini. |
| <code>data.current_company.company_id</code> | <code>string</code> | Identifikasi perusahaan saat ini. |
| <code>data.current_company.title</code> | <code>string</code> | Judul peran di perusahaan saat ini. |
| <code>data.current_company.location</code> | <code>string &#124; null</code> | Teks lokasi yang dilaporkan untuk perusahaan saat ini, jika tersedia. |
| <code>data.current_company_company_id</code> | <code>string</code> | ID perusahaan saat ini yang dilaporkan pada tingkat profil. |
| <code>data.current_company_name</code> | <code>string</code> | Nama perusahaan saat ini yang dilaporkan pada tingkat profil. |
| <code>data.experience</code> | <code>array &#124; null</code> | Entri pengalaman kerja yang dilaporkan pada profil, jika tersedia. |
| <code>data.experience[]</code> | <code>object</code> | Satu entri pengalaman kerja. |
| <code>data.experience[].title</code> | <code>string</code> | Judul peran dalam entri pengalaman kerja ini. |
| <code>data.experience[].location</code> | <code>string</code> | Teks lokasi untuk entri pengalaman kerja ini. |
| <code>data.experience[].start_date</code> | <code>string</code> | Tanggal mulai sebagai teks tampilan untuk entri pengalaman kerja ini. |
| <code>data.experience[].end_date</code> | <code>string</code> | Tanggal akhir sebagai teks tampilan untuk entri pengalaman kerja ini. |
| <code>data.experience[].company</code> | <code>string</code> | Nama perusahaan dalam entri pengalaman kerja ini. |
| <code>data.experience[].company_id</code> | <code>string</code> | Identifikasi perusahaan dalam entri pengalaman kerja ini. |
| <code>data.experience[].url</code> | <code>string</code> | URL perusahaan LinkedIn yang terkait dengan entri pengalaman kerja ini. |
| <code>data.educations_details</code> | <code>string</code> | Ringkasan pendidikan yang ditampilkan pada profil. |
| <code>data.education</code> | <code>array</code> | Entri pendidikan yang dilaporkan pada profil. |
| <code>data.education[]</code> | <code>object</code> | Satu entri pendidikan. |
| <code>data.education[].title</code> | <code>string</code> | Judul atau nama institusi yang ditampilkan untuk entri pendidikan. |
| <code>data.education[].url</code> | <code>string</code> | URL institusi LinkedIn yang terkait dengan entri pendidikan. |
| <code>data.education[].start_year</code> | <code>string</code> | Tahun mulai sebagai teks tampilan untuk entri pendidikan. |
| <code>data.education[].end_year</code> | <code>string</code> | Tahun akhir sebagai teks tampilan untuk entri pendidikan. |
| <code>data.education[].degree</code> | <code>string</code> | Teks gelar yang ditampilkan untuk entri pendidikan. |
| <code>data.education[].field</code> | <code>string</code> | Bidang studi yang ditampilkan untuk entri pendidikan. |
| <code>data.posts</code> | <code>array</code> | Post yang dikembalikan dengan profil publik. |
| <code>data.posts[]</code> | <code>object</code> | Satu post yang dikembalikan dengan profil publik. |
| <code>data.posts[].id</code> | <code>string</code> | Identifikasi yang dilaporkan untuk post ini. |
| <code>data.posts[].title</code> | <code>string</code> | Teks judul post. |
| <code>data.posts[].attribution</code> | <code>string</code> | Teks atribusi yang ditampilkan untuk post. |
| <code>data.posts[].link</code> | <code>string</code> | Link LinkedIn untuk post. |
| <code>data.posts[].created_at</code> | <code>string</code> | Teks waktu pembuatan yang dilaporkan untuk post. |
| <code>data.posts[].interaction</code> | <code>string</code> | Ringkasan interaksi yang ditampilkan bersama post. |
| <code>data.activity</code> | <code>array</code> | Entri aktivitas yang dikembalikan dengan profil publik. |
| <code>data.activity[]</code> | <code>object</code> | Satu entri aktivitas. |
| <code>data.activity[].id</code> | <code>string</code> | Identifikasi yang dilaporkan untuk entri aktivitas. |
| <code>data.activity[].title</code> | <code>string</code> | Teks judul yang ditampilkan untuk entri aktivitas. |
| <code>data.activity[].interaction</code> | <code>string &#124; null</code> | Teks interaksi yang ditampilkan untuk entri aktivitas, jika tersedia. |
| <code>data.activity[].link</code> | <code>string</code> | Link LinkedIn untuk entri aktivitas. |
| <code>data.activity[].img</code> | <code>string &#124; null</code> | URL gambar yang terkait dengan entri aktivitas, jika tersedia. |
| <code>data.people_also_viewed</code> | <code>array</code> | Kartu profil publik yang ditampilkan sebagai hal yang dilihat oleh orang lain. |
| <code>data.people_also_viewed[]</code> | <code>object</code> | Satu kartu profil publik dalam daftar hal yang dilihat. |
| <code>data.people_also_viewed[].profile_link</code> | <code>string</code> | URL profil LinkedIn untuk orang terkait. |
| <code>data.people_also_viewed[].name</code> | <code>string</code> | Nama tampilan yang ditampilkan pada kartu profil terkait. |
| <code>data.people_also_viewed[].about</code> | <code>string &#124; null</code> | Teks ringkasan yang ditampilkan untuk profil terkait, jika tersedia. |
| <code>data.people_also_viewed[].location</code> | <code>string</code> | Teks lokasi yang ditampilkan pada kartu profil terkait. |
| <code>data.similar_profiles</code> | <code>array</code> | Kartu profil publik yang ditampilkan sebagai profil serupa. |
| <code>data.similar_profiles[]</code> | <code>object</code> | Satu kartu profil publik serupa. |
| <code>data.similar_profiles[].url</code> | <code>string</code> | URL profil LinkedIn untuk profil serupa ini. |
| <code>data.similar_profiles[].name</code> | <code>string</code> | Nama tampilan yang ditampilkan untuk profil serupa. |
| <code>data.similar_profiles[].title</code> | <code>string &#124; null</code> | Judul yang ditampilkan untuk profil serupa, jika tersedia. |
| <code>data.similar_profiles[].url_text</code> | <code>string</code> | Teks tampilan untuk tautan profil serupa. |
| <code>data.certifications</code> | <code>array</code> | Entri sertifikat yang dilaporkan pada profil publik. |
| <code>data.certifications[]</code> | <code>object</code> | Satu entri sertifikat. |
| <code>data.certifications[].title</code> | <code>string</code> | Judul sertifikat yang ditampilkan pada profil. |
| <code>data.certifications[].subtitle</code> | <code>string</code> | Subjudul yang ditampilkan untuk entri sertifikat. |
| <code>data.certifications[].meta</code> | <code>string</code> | Teks tampilan tambahan untuk entri sertifikat. |
| <code>data.recommendations_count</code> | <code>integer</code> | Jumlah rekomendasi yang dilaporkan untuk profil. |
| <code>data.recommendations</code> | <code>array</code> | Entri teks rekomendasi yang dikembalikan bersama profil publik. |
| <code>data.recommendations[]</code> | <code>string</code> | Satu rekomendasi yang dilaporkan sebagai teks. |

</div>

## Contoh Respons

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

