---
title: "Akun Resmi WeChat Artikel Historis Akun API (V2)"
description: "Ambil riwayat artikel Akun Resmi WeChat yang diidentifikasi dengan ghid atau URL artikel. Gunakan kursor offset dari halaman sebelumnya untuk melanjutkan penelusuran arsip artikel akun."
lastUpdated: false
aiUsagePrompt: true
---

# Akun Resmi WeChat Artikel Historis Akun API \(V2\)

<ApiTester
  method="POST"
  :path='JSON.parse("\"/api/weixin/get-account-history-articles/v2\"")'
  :summary='JSON.parse("\"Artikel Historis Akun (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/wechat-official-accounts/account-historical-articles-v2-id.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[]")'
  :requestBody='JSON.parse("{\"content\":{\"application/x-www-form-urlencoded\":{\"schema\":{\"type\":\"object\",\"properties\":{\"token\":{\"type\":\"string\",\"description\":\"Token akses untuk layanan API ini.\"},\"ghid\":{\"type\":\"string\",\"default\":\"\",\"description\":\"Identifikasi asli akun resmi WeChat, menggunakan awalan gh_ yang dikembalikan oleh WeChat. Gunakan baik ghid maupun url.\"},\"url\":{\"type\":\"string\",\"default\":\"\",\"description\":\"URL artikel akun resmi WeChat yang digunakan untuk mengidentifikasi akun dan mengambil artikel historis. Gunakan baik ghid maupun url.\"},\"offset\":{\"type\":\"string\",\"default\":\"\",\"description\":\"Gunakan kursor PagingInfo.Offset dari respons sebelumnya. Kosongkan pada halaman pertama. Untuk endpoint POST ini, kirim nilainya dalam isi formulir application/x-www-form-urlencoded.\"}},\"required\":[\"token\"]}}},\"required\":true}")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"Pesan artikel bersejarah dan paginasi untuk Akun Resmi WeChat yang diminta.\",\"properties\":{\"AccountInfo\":{\"type\":\"object\",\"description\":\"Profil publik Akun Resmi WeChat.\",\"properties\":{\"UserName\":{\"type\":\"string\",\"description\":\"Identifikasi asli Akun Resmi WeChat dengan awalan gh_.\"},\"NickName\":{\"type\":\"string\",\"description\":\"Nama tampilan Akun Resmi WeChat.\"},\"HeadImgUrl\":{\"type\":\"string\",\"description\":\"URL gambar profil untuk Akun Resmi WeChat.\"},\"ServiceType\":{\"type\":\"integer\",\"description\":\"Kode jenis akun numerik yang dilaporkan untuk profil ini.\"}}},\"HasArtile\":{\"type\":\"boolean\",\"description\":\"Apakah akun memiliki artikel, sebagaimana dilaporkan oleh API.\"},\"IPWording\":{\"type\":\"string\",\"description\":\"Label lokasi IP yang ditampilkan untuk akun.\"},\"MsgList\":{\"type\":\"object\",\"description\":\"Pesan bersejarah dan informasi terkait yang dikembalikan untuk halaman ini.\",\"properties\":{\"Msg\":{\"type\":\"array\",\"description\":\"Grup pesan yang dikembalikan pada halaman ini. Setiap pesan artikel dapat berisi lebih dari satu artikel.\",\"items\":{\"type\":\"object\",\"description\":\"Satu grup pesan bersejarah.\",\"properties\":{\"BaseInfo\":{\"type\":\"object\",\"description\":\"Metadata untuk grup pesan ini.\",\"properties\":{\"MsgId\":{\"type\":\"integer\",\"description\":\"Identifikasi grup pesan bersejarah.\"},\"DateTime\":{\"type\":\"integer\",\"description\":\"Waktu tanda tangan yang dilaporkan untuk grup pesan, dalam satuan detik Unix.\"},\"MsgType\":{\"type\":\"integer\",\"description\":\"Kode jenis pesan numerik yang dilaporkan untuk grup pesan.\"},\"UniqueId\":{\"type\":\"string\",\"description\":\"Identifikasi teks yang dilaporkan untuk grup pesan ini.\"}}},\"AppMsg\":{\"type\":\"object\",\"description\":\"Pesan artikel dengan metadata dan artikel individu tersebut.\",\"properties\":{\"BaseInfo\":{\"type\":\"object\",\"description\":\"Metadata untuk pesan artikel.\",\"properties\":{\"AppMsgId\":{\"type\":\"integer\",\"description\":\"Identifikasi pesan artikel, yang sesuai dengan parameter idx dalam URL artikelnya.\"},\"Type\":{\"type\":\"integer\",\"description\":\"Kode jenis numerik yang dilaporkan untuk pesan artikel.\"},\"CreateTime\":{\"type\":\"integer\",\"description\":\"Waktu pembuatan yang dilaporkan untuk pesan artikel, dalam satuan detik Unix.\"},\"UpdateTime\":{\"type\":\"integer\",\"description\":\"Waktu pembaruan yang dilaporkan untuk pesan artikel, dalam satuan detik Unix.\"}}},\"DetailInfo\":{\"type\":\"array\",\"description\":\"Artikel individu yang terbagi di bawah pesan artikel ini.\",\"items\":{\"type\":\"object\",\"description\":\"Satu artikel dalam pesan artikel.\",\"properties\":{\"ItemIndex\":{\"type\":\"integer\",\"description\":\"Posisi artikel ini dalam pesan, sesuai dengan parameter idx dari URL artikel.\"},\"Title\":{\"type\":\"string\",\"description\":\"Judul artikel.\"},\"Digest\":{\"type\":\"string\",\"description\":\"Ringkasan artikel, yang mungkin kosong.\"},\"ShortShowDesc\":{\"type\":\"string\",\"description\":\"Deskripsi singkat yang ditampilkan untuk artikel, yang mungkin kosong.\"},\"ContentUrl\":{\"type\":\"string\",\"description\":\"URL artikel di WeChat.\"},\"SourceUrl\":{\"type\":\"string\",\"description\":\"Link sumber yang dilaporkan untuk artikel, yang mungkin kosong.\"},\"PublishTime\":{\"type\":\"string\",\"description\":\"Waktu publikasi artikel dalam format YYYY-MM-DD HH:mm:ss (UTC+8), jika diberikan.\"},\"send_time\":{\"type\":\"integer\",\"description\":\"Waktu publikasi artikel dalam format timestamp Unix dalam satuan detik.\"},\"IsOriginal\":{\"type\":\"integer\",\"description\":\"Indikator orisinalitas numerik yang dilaporkan untuk artikel.\"},\"Read\":{\"type\":\"integer\",\"description\":\"Jumlah kali artikel dibaca, sesuai laporan.\"},\"Zan\":{\"type\":\"integer\",\"description\":\"Jumlah like yang dilaporkan dalam entri artikel.\"},\"stat_info\":{\"type\":\"object\",\"description\":\"Statistik artikel opsional.\",\"properties\":{\"like_num\":{\"type\":\"integer\",\"description\":\"Jumlah like yang dilaporkan dalam objek statistik. Bisa berbeda dari Zan.\"}}},\"CoverImgUrl\":{\"type\":\"string\",\"description\":\"URL gambar sampul utama artikel.\"},\"CoverImgUrl_16_9\":{\"type\":\"string\",\"description\":\"URL gambar sampul untuk versi 16:9.\"},\"CoverImgUrl_16_9_640\":{\"type\":\"string\",\"description\":\"URL gambar sampul untuk versi 16:9 yang diidentifikasi sebagai 640.\"},\"CoverImgUrl_1_1\":{\"type\":\"string\",\"description\":\"URL gambar sampul untuk versi persegi.\"},\"CoverImgUrl_235_1\":{\"type\":\"string\",\"description\":\"URL gambar sampul untuk versi 2.35:1.\"},\"coverimgurl_3_4\":{\"type\":\"string\",\"description\":\"URL gambar sampul untuk versi 3:4.\"},\"SuggestedCoverImg\":{\"type\":\"object\",\"description\":\"Gambar sampul artikel yang disarankan beserta petunjuk ukurannya.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL gambar sampul yang disarankan.\"},\"width_hint\":{\"type\":\"integer\",\"description\":\"Petunjuk lebar gambar sampul yang disarankan.\"},\"height_hint\":{\"type\":\"integer\",\"description\":\"Petunjuk tinggi gambar sampul yang disarankan.\"}}},\"preload_picture_info\":{\"type\":\"object\",\"description\":\"Informasi gambar yang dilaporkan untuk pra-load.\",\"properties\":{\"cdn_url\":{\"type\":\"string\",\"description\":\"URL CDN untuk gambar pra-load.\"}}},\"comment_topic_id\":{\"type\":\"integer\",\"description\":\"Identifikasi topik komentar yang dilaporkan untuk artikel.\"}}}}}}}}},\"FeaturedList\":{\"type\":\"array\",\"description\":\"Daftar fitur yang ditampilkan di halaman pesan. Daftar ini mungkin kosong.\"},\"FeaturedUpdateTime\":{\"type\":\"integer\",\"description\":\"Waktu pembaruan yang dilaporkan untuk daftar fitur, dalam satuan detik Unix.\"},\"PagingInfo\":{\"type\":\"object\",\"description\":\"Informasi paginasi di dalam daftar pesan.\",\"properties\":{\"Offset\":{\"type\":\"string\",\"description\":\"Teks kursor yang dilaporkan di dalam daftar pesan.\"},\"IsEnd\":{\"type\":\"integer\",\"description\":\"Flag akhir daftar yang dilaporkan di dalam daftar pesan.\"}}}}},\"PagingInfo\":{\"type\":\"object\",\"description\":\"Informasi paginasi untuk respons. Gunakan nilai Offset dari objek ini untuk permintaan berikutnya.\",\"properties\":{\"Offset\":{\"type\":\"string\",\"description\":\"Kursor opak untuk halaman berikutnya. Sampaikan nilai offset tersebut tanpa diubah saat melanjutkan.\"},\"IsEnd\":{\"type\":\"integer\",\"description\":\"Flag akhir sejarah. Halaman yang dapat dilanjutkan akan mengembalikan nilai 0.\"}}},\"TopicList\":{\"type\":\"array\",\"description\":\"Daftar topik yang dilaporkan bersamaan dengan respons. Daftar ini mungkin kosong.\"},\"BanReason\":{\"type\":\"array\",\"description\":\"Alasan pembatasan akun ketika diberikan. Array ini mungkin kosong.\"},\"VideoFinderInfo\":{\"type\":\"object\",\"description\":\"Informasi saluran WeChat ketika diberikan. Objek ini mungkin kosong.\"}}}}},\"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/weixin/get-account-history-articles/v2\"")' />

<p>Ambil riwayat artikel Akun Resmi WeChat yang diidentifikasi dengan ghid atau URL artikel. Gunakan kursor offset dari halaman sebelumnya untuk melanjutkan penelusuran arsip artikel akun.</p>

## Body Permintaan

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

| Nama | Lokasi | Jenis | Wajib | Bawaan | Deskripsi |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | form | <code>string</code> | Ya | - | Token akses untuk layanan API ini. |
| <code>ghid</code> | form | <code>string</code> | Tidak | <code></code> | Identifikasi asli akun resmi WeChat, menggunakan awalan gh_ yang dikembalikan oleh WeChat. Gunakan baik ghid maupun url. |
| <code>url</code> | form | <code>string</code> | Tidak | <code></code> | URL artikel akun resmi WeChat yang digunakan untuk mengidentifikasi akun dan mengambil artikel historis. Gunakan baik ghid maupun url. |
| <code>offset</code> | form | <code>string</code> | Tidak | <code></code> | Gunakan kursor PagingInfo.Offset dari respons sebelumnya. Kosongkan pada halaman pertama. Untuk endpoint POST ini, kirim nilainya dalam isi formulir application/x-www-form-urlencoded. |

</div>

## Contoh Kode

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X POST 'https://api.justoneapi.com/api/weixin/get-account-history-articles/v2' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'token=YOUR_API_KEY&ghid=&url=&offset='
```

```text [🤖 Prompt AI]
Saya ingin menggunakan API "Artikel Historis Akun (V2)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/weixin/get-account-history-articles/v2
Endpoint API: BASE_URL + /api/weixin/get-account-history-articles/v2
Metode HTTP: POST
Autentikasi: Kirimkan "token" sebagai field body dalam format application/x-www-form-urlencoded.
Definisi OpenAPI: https://docs.justoneapi.com/openapi/wechat-official-accounts/account-historical-articles-v2-id.json
Header permintaan:
- Content-Type: application/x-www-form-urlencoded

Body Permintaan (Formulir):
- token (form): Token akses untuk layanan API ini. (Wajib)
- ghid (form): Identifikasi asli akun resmi WeChat, menggunakan awalan gh_ yang dikembalikan oleh WeChat. Gunakan baik ghid maupun url.
- url (form): URL artikel akun resmi WeChat yang digunakan untuk mengidentifikasi akun dan mengambil artikel historis. Gunakan baik ghid maupun url.
- offset (form): Gunakan kursor PagingInfo.Offset dari respons sebelumnya. Kosongkan pada halaman pertama. Untuk endpoint POST ini, kirim nilainya dalam isi formulir application/x-www-form-urlencoded.

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/weixin/get-account-history-articles/v2"
headers = {
    "Content-Type": "application/x-www-form-urlencoded"
}
data = "token=YOUR_API_KEY&ghid=&url=&offset="
response = requests.post(url, headers=headers, data=data, 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/weixin/get-account-history-articles/v2";

const response = await fetch(url, {
  method: "POST",
  headers: Object.fromEntries([
    ["Content-Type", "application/x-www-form-urlencoded"],
  ]),
  body: "token=YOUR_API_KEY&ghid=&url=&offset=",
  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/weixin/get-account-history-articles/v2";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .header("Content-Type", "application/x-www-form-urlencoded")
            .method("POST", HttpRequest.BodyPublishers.ofString("token=YOUR_API_KEY&ghid=&url=&offset="));

        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/weixin/get-account-history-articles/v2"
	var data = strings.NewReader("token=YOUR_API_KEY&ghid=&url=&offset=")
	req, _ := http.NewRequest("POST", url, data)
	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
	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/weixin/get-account-history-articles/v2';

$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, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, 'token=YOUR_API_KEY&ghid=&url=&offset=');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/x-www-form-urlencoded',
]);
$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/wechat-official-accounts/account-historical-articles-v2-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> | Pesan artikel bersejarah dan paginasi untuk Akun Resmi WeChat yang diminta. |
| <code>data.AccountInfo</code> | <code>object</code> | Profil publik Akun Resmi WeChat. |
| <code>data.AccountInfo.UserName</code> | <code>string</code> | Identifikasi asli Akun Resmi WeChat dengan awalan gh_. |
| <code>data.AccountInfo.NickName</code> | <code>string</code> | Nama tampilan Akun Resmi WeChat. |
| <code>data.AccountInfo.HeadImgUrl</code> | <code>string</code> | URL gambar profil untuk Akun Resmi WeChat. |
| <code>data.AccountInfo.ServiceType</code> | <code>integer</code> | Kode jenis akun numerik yang dilaporkan untuk profil ini. |
| <code>data.HasArtile</code> | <code>boolean</code> | Apakah akun memiliki artikel, sebagaimana dilaporkan oleh API. |
| <code>data.IPWording</code> | <code>string</code> | Label lokasi IP yang ditampilkan untuk akun. |
| <code>data.MsgList</code> | <code>object</code> | Pesan bersejarah dan informasi terkait yang dikembalikan untuk halaman ini. |
| <code>data.MsgList.Msg</code> | <code>array</code> | Grup pesan yang dikembalikan pada halaman ini. Setiap pesan artikel dapat berisi lebih dari satu artikel. |
| <code>data.MsgList.Msg[]</code> | <code>object</code> | Satu grup pesan bersejarah. |
| <code>data.MsgList.Msg[].BaseInfo</code> | <code>object</code> | Metadata untuk grup pesan ini. |
| <code>data.MsgList.Msg[].BaseInfo.MsgId</code> | <code>integer</code> | Identifikasi grup pesan bersejarah. |
| <code>data.MsgList.Msg[].BaseInfo.DateTime</code> | <code>integer</code> | Waktu tanda tangan yang dilaporkan untuk grup pesan, dalam satuan detik Unix. |
| <code>data.MsgList.Msg[].BaseInfo.MsgType</code> | <code>integer</code> | Kode jenis pesan numerik yang dilaporkan untuk grup pesan. |
| <code>data.MsgList.Msg[].BaseInfo.UniqueId</code> | <code>string</code> | Identifikasi teks yang dilaporkan untuk grup pesan ini. |
| <code>data.MsgList.Msg[].AppMsg</code> | <code>object</code> | Pesan artikel dengan metadata dan artikel individu tersebut. |
| <code>data.MsgList.Msg[].AppMsg.BaseInfo</code> | <code>object</code> | Metadata untuk pesan artikel. |
| <code>data.MsgList.Msg[].AppMsg.BaseInfo.AppMsgId</code> | <code>integer</code> | Identifikasi pesan artikel, yang sesuai dengan parameter idx dalam URL artikelnya. |
| <code>data.MsgList.Msg[].AppMsg.BaseInfo.Type</code> | <code>integer</code> | Kode jenis numerik yang dilaporkan untuk pesan artikel. |
| <code>data.MsgList.Msg[].AppMsg.BaseInfo.CreateTime</code> | <code>integer</code> | Waktu pembuatan yang dilaporkan untuk pesan artikel, dalam satuan detik Unix. |
| <code>data.MsgList.Msg[].AppMsg.BaseInfo.UpdateTime</code> | <code>integer</code> | Waktu pembaruan yang dilaporkan untuk pesan artikel, dalam satuan detik Unix. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo</code> | <code>array</code> | Artikel individu yang terbagi di bawah pesan artikel ini. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[]</code> | <code>object</code> | Satu artikel dalam pesan artikel. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].ItemIndex</code> | <code>integer</code> | Posisi artikel ini dalam pesan, sesuai dengan parameter idx dari URL artikel. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].Title</code> | <code>string</code> | Judul artikel. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].Digest</code> | <code>string</code> | Ringkasan artikel, yang mungkin kosong. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].ShortShowDesc</code> | <code>string</code> | Deskripsi singkat yang ditampilkan untuk artikel, yang mungkin kosong. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].ContentUrl</code> | <code>string</code> | URL artikel di WeChat. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].SourceUrl</code> | <code>string</code> | Link sumber yang dilaporkan untuk artikel, yang mungkin kosong. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].PublishTime</code> | <code>string</code> | Waktu publikasi artikel dalam format YYYY-MM-DD HH:mm:ss (UTC+8), jika diberikan. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].send_time</code> | <code>integer</code> | Waktu publikasi artikel dalam format timestamp Unix dalam satuan detik. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].IsOriginal</code> | <code>integer</code> | Indikator orisinalitas numerik yang dilaporkan untuk artikel. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].Read</code> | <code>integer</code> | Jumlah kali artikel dibaca, sesuai laporan. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].Zan</code> | <code>integer</code> | Jumlah like yang dilaporkan dalam entri artikel. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].stat_info</code> | <code>object</code> | Statistik artikel opsional. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].stat_info.like_num</code> | <code>integer</code> | Jumlah like yang dilaporkan dalam objek statistik. Bisa berbeda dari Zan. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].CoverImgUrl</code> | <code>string</code> | URL gambar sampul utama artikel. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].CoverImgUrl_16_9</code> | <code>string</code> | URL gambar sampul untuk versi 16:9. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].CoverImgUrl_16_9_640</code> | <code>string</code> | URL gambar sampul untuk versi 16:9 yang diidentifikasi sebagai 640. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].CoverImgUrl_1_1</code> | <code>string</code> | URL gambar sampul untuk versi persegi. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].CoverImgUrl_235_1</code> | <code>string</code> | URL gambar sampul untuk versi 2.35:1. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].coverimgurl_3_4</code> | <code>string</code> | URL gambar sampul untuk versi 3:4. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].SuggestedCoverImg</code> | <code>object</code> | Gambar sampul artikel yang disarankan beserta petunjuk ukurannya. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].SuggestedCoverImg.url</code> | <code>string</code> | URL gambar sampul yang disarankan. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].SuggestedCoverImg.width_hint</code> | <code>integer</code> | Petunjuk lebar gambar sampul yang disarankan. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].SuggestedCoverImg.height_hint</code> | <code>integer</code> | Petunjuk tinggi gambar sampul yang disarankan. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].preload_picture_info</code> | <code>object</code> | Informasi gambar yang dilaporkan untuk pra-load. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].preload_picture_info.cdn_url</code> | <code>string</code> | URL CDN untuk gambar pra-load. |
| <code>data.MsgList.Msg[].AppMsg.DetailInfo[].comment_topic_id</code> | <code>integer</code> | Identifikasi topik komentar yang dilaporkan untuk artikel. |
| <code>data.MsgList.FeaturedList</code> | <code>array</code> | Daftar fitur yang ditampilkan di halaman pesan. Daftar ini mungkin kosong. |
| <code>data.MsgList.FeaturedUpdateTime</code> | <code>integer</code> | Waktu pembaruan yang dilaporkan untuk daftar fitur, dalam satuan detik Unix. |
| <code>data.MsgList.PagingInfo</code> | <code>object</code> | Informasi paginasi di dalam daftar pesan. |
| <code>data.MsgList.PagingInfo.Offset</code> | <code>string</code> | Teks kursor yang dilaporkan di dalam daftar pesan. |
| <code>data.MsgList.PagingInfo.IsEnd</code> | <code>integer</code> | Flag akhir daftar yang dilaporkan di dalam daftar pesan. |
| <code>data.PagingInfo</code> | <code>object</code> | Informasi paginasi untuk respons. Gunakan nilai Offset dari objek ini untuk permintaan berikutnya. |
| <code>data.PagingInfo.Offset</code> | <code>string</code> | Kursor opak untuk halaman berikutnya. Sampaikan nilai offset tersebut tanpa diubah saat melanjutkan. |
| <code>data.PagingInfo.IsEnd</code> | <code>integer</code> | Flag akhir sejarah. Halaman yang dapat dilanjutkan akan mengembalikan nilai 0. |
| <code>data.TopicList</code> | <code>array</code> | Daftar topik yang dilaporkan bersamaan dengan respons. Daftar ini mungkin kosong. |
| <code>data.BanReason</code> | <code>array</code> | Alasan pembatasan akun ketika diberikan. Array ini mungkin kosong. |
| <code>data.VideoFinderInfo</code> | <code>object</code> | Informasi saluran WeChat ketika diberikan. Objek ini mungkin kosong. |

</div>

## Contoh Respons

<ApiExampleSection :api='JSON.parse("\"/api/weixin/get-account-history-articles/v2\"")' />

