All Products
Search
Document Center

OpenSearch:Get historical session details

Last Updated:Jul 25, 2025

This topic describes the API used to retrieve historical session in OpenSearch-LLM AI chat.

Prerequisites

  • Obtain an API key for authentication: When calling OpenSearch-LLM AI chat services, authenticate your identity. For more information, see Manage API keys.

  • Obtain a service endpoint: When calling OpenSearch-LLM AI chat services, provide a service endpoint. For more information, see Obtain a service endpoint.

API information

Request method

Request protocol

Request data format

GET

HTTP

JSON

Request URL

{host}/v3/openapi/apps/{app_group_identity}/chat/{chat_id}
  • {host}: The service endpoint. You can call API operations over the Internet or using a VPC endpoint. For more information, see Obtain a service endpoint.

  • {app_group_identity}: The application name. Log on to the OpenSearch-LLM AI chat console and view the application name of the corresponding instance in Instance Management.

Request parameters

Header parameters

Parameter

Type

Required

Description

Example

Content-Type

string

Yes

The data format of the request. Only the JSON format is supported. Set the value to application/json.

application/json

Authorization

string

Yes

The API key used for request authentication. The value must start with Bearer.

Bearer OS-d1**2a

Body parameters

Parameter

Type

Required

Description

Example

chat_id

string

Yes

The ID of the historical session.

1751****6901

Request example

curl -X GET "{host}/v3/openapi/apps/{app_group_identity}/chat/{chat_id}" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {API Key}"
Note

You can obtain {chat_id} by calling the Historical session list API.

Response parameters

Parameter

Type

Description

request_id

string

The ID of the request.

result

map

The returned result.

result.latency

float

The time consumed by the API operation when the request is successful. Unit: milliseconds.

result.source

string

The type of the Q&A.

  • Deep search: DEEP_SEARCH.

  • Common Q&A: COMMON.

result.data

list

The response data.

result.data[0].user

string

The user session.

result.data[0].assistant

list

The model response.

result.data[0].time

date

The time of the Q&A.

result.data[0].type

string

The type of the Q&A.

  • Deep search: DEEP_SEARCH.

  • Common Q&A: COMMON.

code

string

The error code that is returned if an error occurs.

message

string

The error message that is returned if an error occurs.

Response example

{
  "request_id": "33ac*****************abda",
  "status": "OK",
  "latency": 0,
  "source": "COMMON",
  "result": [
    {
      "user": "Recommend a Jay Chou album for me",
      "assistant": [
        {
          "answer": "The user is asking for a recommendation of a Jay Chou album, and needs to be provided with one of his most representative albums. I need to search for Jay Chou's album list and information about their influence and reviews.",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "THINK",
          "event_status": "FINISHED"
        },
        {
          "answer": "What are Jay Chou's most popular albums",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "ACTION",
          "event_status": "FINISHED"
        },
        {
          "answer": "According to search results, Jay Chou's most popular albums include the following:\n\n1. **\"Fantasy\" (2001)**  \n2. **\"JAY\" (2000)**  \n3. **\"Ye Hui Mei\" (2003)**  \n4. **\"The Eight Dimensions\" (2002)**  \n5. **\"Common Jasmine Orange\" (2004)**  \n6. **\"Still Fantasy\" (2006)**  \n7. **\"On the Run\" (2007)**  \n8. **\"November's Chopin\" (2005)**  \n\nThese albums have performed exceptionally well in sales, playback counts, and reputation, with **\"Fantasy\", \"Ye Hui Mei\", and \"The Eight Dimensions\"** frequently mentioned as classic works.",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "ANSWER",
          "event_status": "FINISHED"
        },
        {
          "answer": "According to search results, Jay Chou's most popular albums include \"Fantasy\", \"Ye Hui Mei\", \"The Eight Dimensions\", etc. I need to further search for specific information about these albums, including sales, reviews, and representative songs, to make the best recommendation.",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "THINK",
          "event_status": "FINISHED"
        },
        {
          "answer": "Jay Chou's \"Fantasy\" album sales, reviews, and representative songs",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "ACTION",
          "event_status": "FINISHED"
        },
        {
          "answer": "Sales: As of July 2022, \"Fantasy\" sold 1.7 million copies in Asia (other data suggests cumulative total sales exceeding 7.8 million copies).  \nReviews: Won 5 major awards at the 13th Golden Melody Awards including Best Pop Music Album, establishing Jay Chou's position in Chinese music scene, with a music style that integrates multiple genres.  \nRepresentative songs: \"Nunchucks\", \"Simple Love\", \"Love Before BC\", \"Can't Express Myself\", \"Ninja\", \"William Castle\", etc.",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "ANSWER",
          "event_status": "FINISHED"
        },
        {
          "answer": "\"Fantasy\" album has excellent sales and reviews, but I need to compare it with other popular albums. Next, I'll search for information about the \"Ye Hui Mei\" album's sales, reviews, and representative songs.",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "THINK",
          "event_status": "FINISHED"
        },
        {
          "answer": "Jay Chou's \"Ye Hui Mei\" album sales, reviews, and representative songs",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "ACTION",
          "event_status": "FINISHED"
        },
        {
          "answer": "Sales: 3 million copies across Asia, making it the top-selling album in Asia that year.  \nReviews: Acclaimed as a masterpiece in Chinese music, winning multiple honors including Best Pop Music Album at the 15th Taiwan Golden Melody Awards, with diverse music styles and strong artistic value.  \nRepresentative songs: \"In the Name of the Father\", \"Sunny Day\", \"East Wind Breaks\".",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "ANSWER",
          "event_status": "FINISHED"
        },
        {
          "answer": "\"Ye Hui Mei\" album has outstanding sales and reviews. Now I need to search for information about \"The Eight Dimensions\" album to complete the comparison.",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "THINK",
          "event_status": "FINISHED"
        },
        {
          "answer": "Jay Chou's \"The Eight Dimensions\" album sales, reviews, and representative songs",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "ACTION",
          "event_status": "FINISHED"
        },
        {
          "answer": "Sales:  \n- Data varies significantly from different sources, with reports of **1 million copies** (2002 statistics) and **2.2 million copies** (historical album rankings).  \n\nReviews:  \n- Won multiple awards such as G-Music Top Ten Gold Albums and IFPI Highest Sales Mandarin Album, praised for being \"diverse, rich, and full of cinematic feeling.\"  \n- Some music critics consider its style \"fresh, artistic, and somewhat adolescent,\" calling it Jay Chou's \"most youthful album.\"  \n\nRepresentative songs:  \n- \"Half-Beast\", \"Dragon Fist\", \"Where is the Train Going\", \"Grandpa's Tea\", \"Peninsula Iron Box\", \"Back to the Past\", \"The Last Battle\".",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "ANSWER",
          "event_status": "FINISHED"
        },
        {
          "answer": "\nHmm, the user is asking for a Jay Chou album recommendation for the third time, showing continued interest in previous recommendations. I previously focused on recommending \"Ye Hui Mei,\" so this time I should provide a new perspective to avoid repetition. The user might want to explore different album characteristics or test my recommendation diversity.\n\nFrom the documents, besides \"Ye Hui Mei,\" both \"Fantasy\" and \"The Eight Dimensions\" have impressive data. \"Fantasy\" ranks second in playback statistics (31.13 million plays per day) and won multiple Golden Melody Awards. \"The Eight Dimensions\" also has outstanding playback data (tied for second with 31.13 million plays per day), though slightly lower sales (2.2 million copies). Since the user hasn't specified any preference direction, this recommendation should emphasize artistic breakthrough.\n\nI'll recommend \"Fantasy\" for three reasons: historical significance (establishing Jay Chou's style), data support (playback counts & awards), and the additional highlight that \"Still Fantasy\" sold 3.6 million copies as mentioned in the documents. I should avoid directly copying previous structures and organize content using new dimensions.\n\nI'll use \"musical revolution\" as the core theme, highlighting three points: 1) innovation (first to introduce the music film concept); 2) technical details (like Japanese sampling in \"Ninja\"); 3) long-term influence (still being imitated 20 years later). I'll compare playback counts, awards, and sales in a table, but need to note that \"Fantasy\" has two data sources reporting 1.7 million and 3 million copies, to maintain accuracy.\n\nFinally, I'll add related information about \"Still Fantasy\" to provide extended listening suggestions. This maintains professionalism while avoiding repetition of previous recommendation logic.\n",
          "type": "TEXT_MARKDOWN",
          "reference": [],
          "rich_text_ref": [],
          "event": "THINK",
          "event_status": "FINISHED"
        },
        {
          "answer": "\nI recommend Jay Chou's **\"Fantasy\"** (released in 2001), which is not only a milestone in Jay Chou's music career but also completely revolutionized the creative approach in Chinese music. Here's my recommendation based on multi-dimensional analysis:\n\n---\n\n### Core Recommendation Reasons: A Revolution in Chinese Music\n| Dimension | Key Information | Supporting Source |\n|--------------|--------------------------------------------------------------------------|-------------------|\n| **Historical Position** | Jay Chou's second album, establishing his \"music genius\" status and creating the \"Chou-style\" paradigm | [^7^][^8^] |\n| **Playback Data** | **31.13 million plays per day** among non-new albums (second only to \"Greatest Works\"), with extremely strong long-tail effect | [^3^]         |\n| **Award Recognition** | **5 major Golden Melody Awards**: Best Album, Best Producer, Best Composer, etc., first artist to win Best Album consecutively | [^7^][^15^] |\n| **Sales Performance** | **1.7 million copies** in Asia (official), cumulative sales exceeding **7.8 million copies** (including subsequent versions) | [^7^][^9^][^14^] |\n\n---\n\n### Three Irreplaceable Values\n#### 1. **Peak of Musical Experimentation**  \n- **Genre Fusion Revolution**: First seamless integration of R&B, Hip-Hop, Rock, Japanese folk music (\"Ninja\"), (\"William Castle\")  \n- **Lyrical Narrative Innovation**: Vincent Fang created \"historical sci-fi love songs\" with \"Love Before BC\", \"Nunchucks\" deconstructs pop music using martial arts philosophy  \n- **Technical Easter Eggs**: Impromptu addition of \"Bullfight\" rap at the end of \"Silence\", breaking traditional song structure [^9^]\n\n#### 2. **Birth of Cultural Symbols**  \n- Created national-level classics like \"Nunchucks\", \"Simple Love\", \"Can't Express Myself\", with \"Nunchucks\" becoming a cultural symbol of \"anti-stereotyping\"  \n- Album inner page ninja styling and MV time-crossing aesthetics (like \"Love Before BC\" cuneiform text effects) defined millennium visual trends [^9^]\n\n#### 3. **Enduring Vitality**  \n- Still ranks TOP2 in playback counts 20 years later, with over 30 million daily plays (2023 data)  \n- Derivative influence: Released sequel \"Still Fantasy\" in 2006, selling over 3.6 million copies [^10^][^12^]\n\n---\n\n### Full Track Analysis (10 Masterpiece Matrix)\n| Song | Breakthrough Contribution | Phenomenal Impact |\n|--------------|------------------------------------------|--------------------------|\n| **Love Before BC** | First \"archaeological love song\" theme | Sparked historical humanities creative trend |\n| **Nunchucks** | Fusion of metal rock + erhu, lyrics conveying anti-violence philosophy | Nationwide \"heng heng ha xi\" imitation phenomenon |\n| **Simple Love** | Minimalist youth romance, defining campus pure love template | Dominated KTV charts for 20 years |\n| **Ninja** | Japanese sampling + electronic sound effects, constructing Edo period shogunate space-time | Classic soundtrack in anime culture circles |\n| **William Castle** | Gothic piano + vampire narrative, dark fairy tale pioneer | Enlightenment of dark-themed Chinese music |\n\n---\n\n### Why Choose \"Fantasy\" First?\n- **For new listeners**: Can directly experience Jay Chou's tradition-breaking creativity, understanding the starting point of \"Chou's music universe\"  \n- **For old fans**: Revisit how this masterpiece explored domestic violence in \"Dad I'm Back\" and wartime romance in \"Shanghai 1943\", showing depth beyond its era  \n- **Collection value**: Physical album design received IFPI certification as \"Best Packaging of the Year\", vinyl reissue has both acoustic and collection value [^7^][^25^]\n\n> **Extended suggestion**: If you enjoy \"Fantasy\", you can continue listening to its spiritual sequels \"The Eight Dimensions\" (also ranked TOP2 in playback) and \"Ye Hui Mei\" (artistic peak), to fully experience Jay Chou's \"musical evolution trilogy\".",
          "type": "TEXT_MARKDOWN",
          "reference": [
            {
              "title": "The Beloved Choice of Jay Chou Fans—Exploring Jay Chou's Most Popular Albums",
              "category": "webSearch",
              "url": "https://baijiahao.baidu.com/s?id=1764038527417118309"
            },
            {
              "title": "Top Ten Hottest Albums by Jay Chou",
              "category": "webSearch",
              "url": "http://www.ttpaihang.com/news/daynews/2023/23052718921.htm"
            },
            {
              "title": "Do You Know Which Is Jay Chou's Most Popular Album? The Answer Will Surprise You.",
              "category": "webSearch",
              "url": "https://m.toutiao.com/w/1766744842139648/"
            },
            {
              "title": "Jay Chou's Top Ten Classic Albums: A Diverse Presentation of Style and Influence",
              "category": "webSearch",
              "url": "https://baijiahao.baidu.com/s?id=1833477299374351532"
            },
            {
              "title": "Jay Chou's Albums and Hit Songs Since His Debut",
              "category": "webSearch",
              "url": "https://baijiahao.baidu.com/s?id=1767215982527658032"
            },
            {
              "title": "A Review of Classic Works from Jay Chou's Albums Over the Years",
              "category": "webSearch",
              "url": "https://m.sohu.com/a/736438552_121769698/?pvid=000115_3w_a"
            },
            {
              "title": "Fantasy",
              "category": "webSearch",
              "url": "https://m.baike.com/wikiid/1500827714195725005"
            },
            {
              "title": "How to Review Jay Chou's Music Album \"Fantasy\"?",
              "category": "webSearch",
              "url": "https://zhidao.baidu.com/question/274648780788045725.html"
            },
            {
              "title": "Jay Chou Was Only 22 When \"Fantasy\" Was Released, and This Year \"Fantasy\" Turns 20",
              "category": "webSearch",
              "url": "https://m.thepaper.cn/newsDetail_forward_13026286"
            },
            {
              "title": "What Are the Sales and Reviews for Jay Chou's \"Still Fantasy\"?",
              "category": "webSearch",
              "url": "https://zhidao.baidu.com/question/1312431472441436379.html"
            },
            {
              "title": "\"The Growth History of a Musician\": A Look Behind Jay Chou's Album Sales and Playback Counts Since His Debut",
              "category": "webSearch",
              "url": "https://m.toutiao.com/w/1759218244961295/"
            },
            {
              "title": "Jay Chou's Six Highest-Selling Albums in History, \"Fantasy\" Is Only Second, This Is Number One!",
              "category": "webSearch",
              "url": "https://baijiahao.baidu.com/s?id=1608765659210443546"
            },
            {
              "title": "Fantasy",
              "category": "webSearch",
              "url": "https://m.douban.com/music/subject/1403307"
            },
            {
              "title": "Jay Chou's Historical Album Sales Chart",
              "category": "webSearch",
              "url": "https://m.toutiao.com/w/1738116311250948/"
            },
            {
              "title": "In-depth Album Analysis—\"Fantasy\"",
              "category": "webSearch",
              "url": "https://m.sohu.com/a/595603853_121390699/?pvid=000115_3w_a"
            },
            {
              "title": "How Many Copies Has Jay Chou's \"Fantasy\" Sold to Date?",
              "category": "webSearch",
              "url": "https://wap.zol.com.cn/ask/x_26942399.html"
            },
            {
              "title": "Sales Create Another Miracle: Jay Chou's New Album \"Ye Hui Mei\" Unveiled (Photo Gallery)",
              "category": "webSearch",
              "url": "https://ent.sina.com.cn/2003-08-06/0840181819.html"
            },
            {
              "title": "\"Ye Hui Mei\"",
              "category": "webSearch",
              "url": "https://m.maigoo.com/citiao/389095.html"
            },
            {
              "title": "Jay Chou's Album \"Ye Hui Mei\" (Jay Chou's Fourth Album)",
              "category": "webSearch",
              "url": "https://m.huanghepiao.com/wenda/5847.html"
            },
            {
              "title": "Ye Hui Mei",
              "category": "webSearch",
              "url": "https://m.baike.com/wikiid/5894455393752876217"
            },
            {
              "title": "Jay Chou's Highest-Selling Albums \"Still Fantasy\" and \"Ye Hui Mei\" Both Sold Over Three Million Copies (Pirated Copies Sold Even More Back Then), and His New Album Already Has Nearly Five Million Pre-orders on QQ Music",
              "category": "webSearch",
              "url": "https://m.toutiao.com/w/1737498607815751/"
            },
            {
              "title": "\"Ye Hui Mei\" Album Introduction",
              "category": "webSearch",
              "url": "https://www.jaychou.wiki/composition/cd/03/"
            },
            {
              "title": "A Review of Jay Chou's Album \"The Eight Dimensions\" and Its Classic Songs",
              "category": "webSearch",
              "url": "https://baijiahao.baidu.com/s?id=1794049663861850337"
            },
            {
              "title": "\"The Eight Dimensions\"",
              "category": "webSearch",
              "url": "https://m.maigoo.com/citiao/389096.html"
            },
            {
              "title": "Partial Award Records for Jay Chou's \"The Eight Dimensions\"",
              "category": "webSearch",
              "url": "https://www.bilibili.com/read/mobile?id=17924872"
            },
            {
              "title": "\"The Eight Dimensions\"…………..Fresh, Artistic, and Adolescent: Jay Chou's Most Youthful Album",
              "category": "webSearch",
              "url": "https://m.douban.com/music/review/16247313//"
            },
            {
              "title": "The Eight Dimensions",
              "category": "webSearch",
              "url": "https://m.baike.com/wikiid/7243270511429222452"
            }
          ],
          "rich_text_ref": [],
          "event": "SUMMARY",
          "event_status": "FINISHED"
        }
      ],
      "time": "2025-07-04 21:38:06",
      "type": "COMMON"
    }
  ],
  "errors": []
}