-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
I recently discovered that api/appdetails does not follow the l attribute to return the game description.
Take Sid Meier’s Civilization® VI as an example.
If we don't send any attributes, like this:
GET /api/appdetails/?appids=289070&v=1 HTTP/1.1
Host: store.steampowered.comWe got English and USD:
"detailed_description": "<h1>Digital Deluxe Edition<\/h1><p><img src=\"https:\/\/steamcdn-a.akamaihd.net\/steam\/apps\/289070\/extras\/2KGMKT_CIV6_DIGITALDELUXE_STEAM_banner.jpg?t=1534546985\" ><br>Expand your empire further with the <i>Civilization VI Digital Deluxe<\/i> which includes the full base game, the 25th Anniversary Digital Soundtrack, and access to six DLC packs* that will add new civilizations, leaders, scenarios, and more for a bundled discount: <br><ul class=\"bb_ul\"><li>Civilization VI \u2013 Vikings Scenario Pack<br><\/li><li>Civilization VI \u2013 Poland Civilization & Scenario Pack<br><\/li><li>Civilization VI \u2013 Australia Civilization & Scenario Pack<br><\/li><li>Civilization VI \u2013 Persia and Macedon Civilization & Scenario Pack<br><\/li><li>Civilization VI \u2013 Nubia Civilization & Scenario Pack <br><\/li><li>Civilization VI \u2013 Khmer and Indonesia Civilization & Scenario Pack<\/li><\/ul><\/p><br><h1>About the Game<\/h1>Originally created by legendary game designer Sid Meier, <i>Civilization<\/i> is a turn-based strategy game in which you attempt to build an empire to stand the test of time. Become Ruler of the World by establishing and leading a civilization from the Stone Age to the Information Age. Wage war, conduct diplomacy, advance your culture, and go head-to-head with history\u2019s greatest leaders as you attempt to build the greatest civilization the world has ever known.<br><br><i>Civilization VI<\/i> offers new ways to engage with your world: cities now physically expand across the map, active research in technology and culture unlocks new potential, and competing leaders will pursue their own agendas based on their historical traits as you race for one of five ways to achieve victory in the game.<br><br><ul class=\"bb_ul\"><li><strong><h2 class=\"bb_tag\">EXPANSIVE EMPIRES: <\/h2><\/strong>See the marvels of your empire spread across the map like never before. Each city spans multiple tiles so you can custom build your cities to take full advantage of the local terrain.<br><\/li><li><strong><h2 class=\"bb_tag\">ACTIVE RESEARCH: <\/h2><\/strong>Unlock boosts that speed your civilization\u2019s progress through history. To advance more quickly, use your units to actively explore, develop your environment, and discover new cultures. <br><\/li><li><strong><h2 class=\"bb_tag\">DYNAMIC DIPLOMACY:<\/h2><\/strong> Interactions with other civilizations change over the course of the game, from primitive first interactions where conflict is a fact of life, to late game alliances and negotiations. <br><\/li><li><strong><h2 class=\"bb_tag\">COMBINED ARMS:<\/h2><\/strong> Expanding on the \u201cone unit per tile\u201d design, support units can now be embedded with other units, like anti-tank support with infantry, or a warrior with settlers. Similar units can also be combined to form powerful \u201cCorps\u201d units.<br><\/li><li><strong><h2 class=\"bb_tag\">ENHANCED MULTIPLAYER:<\/h2><\/strong> In addition to traditional multiplayer modes, cooperate and compete with your friends in a wide variety of situations all designed to be easily completed in a single session. <br><\/li><li><strong><h2 class=\"bb_tag\">A CIV FOR ALL PLAYERS:<\/h2><\/strong> <i>Civilization VI<\/i> provides veteran players new ways to build and tune their civilization for the greatest chance of success. New tutorial systems introduce new players to the underlying concepts so they can easily get started.<\/li><\/ul>",
"about_the_game": "Originally created by legendary game designer Sid Meier, <i>Civilization<\/i> is a turn-based strategy game in which you attempt to build an empire to stand the test of time. Become Ruler of the World by establishing and leading a civilization from the Stone Age to the Information Age. Wage war, conduct diplomacy, advance your culture, and go head-to-head with history\u2019s greatest leaders as you attempt to build the greatest civilization the world has ever known.<br><br><i>Civilization VI<\/i> offers new ways to engage with your world: cities now physically expand across the map, active research in technology and culture unlocks new potential, and competing leaders will pursue their own agendas based on their historical traits as you race for one of five ways to achieve victory in the game.<br><br><ul class=\"bb_ul\"><li><strong><h2 class=\"bb_tag\">EXPANSIVE EMPIRES: <\/h2><\/strong>See the marvels of your empire spread across the map like never before. Each city spans multiple tiles so you can custom build your cities to take full advantage of the local terrain.<br><\/li><li><strong><h2 class=\"bb_tag\">ACTIVE RESEARCH: <\/h2><\/strong>Unlock boosts that speed your civilization\u2019s progress through history. To advance more quickly, use your units to actively explore, develop your environment, and discover new cultures. <br><\/li><li><strong><h2 class=\"bb_tag\">DYNAMIC DIPLOMACY:<\/h2><\/strong> Interactions with other civilizations change over the course of the game, from primitive first interactions where conflict is a fact of life, to late game alliances and negotiations. <br><\/li><li><strong><h2 class=\"bb_tag\">COMBINED ARMS:<\/h2><\/strong> Expanding on the \u201cone unit per tile\u201d design, support units can now be embedded with other units, like anti-tank support with infantry, or a warrior with settlers. Similar units can also be combined to form powerful \u201cCorps\u201d units.<br><\/li><li><strong><h2 class=\"bb_tag\">ENHANCED MULTIPLAYER:<\/h2><\/strong> In addition to traditional multiplayer modes, cooperate and compete with your friends in a wide variety of situations all designed to be easily completed in a single session. <br><\/li><li><strong><h2 class=\"bb_tag\">A CIV FOR ALL PLAYERS:<\/h2><\/strong> <i>Civilization VI<\/i> provides veteran players new ways to build and tune their civilization for the greatest chance of success. New tutorial systems introduce new players to the underlying concepts so they can easily get started.<\/li><\/ul>",
"short_description": "Civilization VI offers new ways to interact with your world, expand your empire across the map, advance your culture, and compete against history\u2019s greatest leaders to build a civilization that will stand the test of time. Play as one of 20 historical leaders including Roosevelt (America) and Victoria (England).",
"price_overview":
{
"currency": "USD",
"initial": 5999,
"final": 5999,
"discount_percent": 0
}If we add the cc and l attributes, like this:
GET /api/appdetails/?appids=289070&cc=jp&l=ja&v=1 HTTP/1.1
Host: store.steampowered.comWe get this data:
"detailed_description": "<h1>Digital Deluxe Edition<\/h1><p><img src=\"https:\/\/steamcdn-a.akamaihd.net\/steam\/apps\/289070\/extras\/2KGMKT_CIV6_DIGITALDELUXE_STEAM_banner.jpg?t=1534546985\" ><br>Expand your empire further with the <i>Civilization VI Digital Deluxe<\/i> which includes the full base game, the 25th Anniversary Digital Soundtrack, and access to six DLC packs* that will add new civilizations, leaders, scenarios, and more for a bundled discount: <br><ul class=\"bb_ul\"><li>Civilization VI \u2013 Vikings Scenario Pack<br><\/li><li>Civilization VI \u2013 Poland Civilization & Scenario Pack<br><\/li><li>Civilization VI \u2013 Australia Civilization & Scenario Pack<br><\/li><li>Civilization VI \u2013 Persia and Macedon Civilization & Scenario Pack<br><\/li><li>Civilization VI \u2013 Nubia Civilization & Scenario Pack <br><\/li><li>Civilization VI \u2013 Khmer and Indonesia Civilization & Scenario Pack<\/li><\/ul><\/p><br><h1>About the Game<\/h1>Originally created by legendary game designer Sid Meier, <i>Civilization<\/i> is a turn-based strategy game in which you attempt to build an empire to stand the test of time. Become Ruler of the World by establishing and leading a civilization from the Stone Age to the Information Age. Wage war, conduct diplomacy, advance your culture, and go head-to-head with history\u2019s greatest leaders as you attempt to build the greatest civilization the world has ever known.<br><br><i>Civilization VI<\/i> offers new ways to engage with your world: cities now physically expand across the map, active research in technology and culture unlocks new potential, and competing leaders will pursue their own agendas based on their historical traits as you race for one of five ways to achieve victory in the game.<br><br><ul class=\"bb_ul\"><li><strong><h2 class=\"bb_tag\">EXPANSIVE EMPIRES: <\/h2><\/strong>See the marvels of your empire spread across the map like never before. Each city spans multiple tiles so you can custom build your cities to take full advantage of the local terrain.<br><\/li><li><strong><h2 class=\"bb_tag\">ACTIVE RESEARCH: <\/h2><\/strong>Unlock boosts that speed your civilization\u2019s progress through history. To advance more quickly, use your units to actively explore, develop your environment, and discover new cultures. <br><\/li><li><strong><h2 class=\"bb_tag\">DYNAMIC DIPLOMACY:<\/h2><\/strong> Interactions with other civilizations change over the course of the game, from primitive first interactions where conflict is a fact of life, to late game alliances and negotiations. <br><\/li><li><strong><h2 class=\"bb_tag\">COMBINED ARMS:<\/h2><\/strong> Expanding on the \u201cone unit per tile\u201d design, support units can now be embedded with other units, like anti-tank support with infantry, or a warrior with settlers. Similar units can also be combined to form powerful \u201cCorps\u201d units.<br><\/li><li><strong><h2 class=\"bb_tag\">ENHANCED MULTIPLAYER:<\/h2><\/strong> In addition to traditional multiplayer modes, cooperate and compete with your friends in a wide variety of situations all designed to be easily completed in a single session. <br><\/li><li><strong><h2 class=\"bb_tag\">A CIV FOR ALL PLAYERS:<\/h2><\/strong> <i>Civilization VI<\/i> provides veteran players new ways to build and tune their civilization for the greatest chance of success. New tutorial systems introduce new players to the underlying concepts so they can easily get started.<\/li><\/ul>",
"about_the_game": "Originally created by legendary game designer Sid Meier, <i>Civilization<\/i> is a turn-based strategy game in which you attempt to build an empire to stand the test of time. Become Ruler of the World by establishing and leading a civilization from the Stone Age to the Information Age. Wage war, conduct diplomacy, advance your culture, and go head-to-head with history\u2019s greatest leaders as you attempt to build the greatest civilization the world has ever known.<br><br><i>Civilization VI<\/i> offers new ways to engage with your world: cities now physically expand across the map, active research in technology and culture unlocks new potential, and competing leaders will pursue their own agendas based on their historical traits as you race for one of five ways to achieve victory in the game.<br><br><ul class=\"bb_ul\"><li><strong><h2 class=\"bb_tag\">EXPANSIVE EMPIRES: <\/h2><\/strong>See the marvels of your empire spread across the map like never before. Each city spans multiple tiles so you can custom build your cities to take full advantage of the local terrain.<br><\/li><li><strong><h2 class=\"bb_tag\">ACTIVE RESEARCH: <\/h2><\/strong>Unlock boosts that speed your civilization\u2019s progress through history. To advance more quickly, use your units to actively explore, develop your environment, and discover new cultures. <br><\/li><li><strong><h2 class=\"bb_tag\">DYNAMIC DIPLOMACY:<\/h2><\/strong> Interactions with other civilizations change over the course of the game, from primitive first interactions where conflict is a fact of life, to late game alliances and negotiations. <br><\/li><li><strong><h2 class=\"bb_tag\">COMBINED ARMS:<\/h2><\/strong> Expanding on the \u201cone unit per tile\u201d design, support units can now be embedded with other units, like anti-tank support with infantry, or a warrior with settlers. Similar units can also be combined to form powerful \u201cCorps\u201d units.<br><\/li><li><strong><h2 class=\"bb_tag\">ENHANCED MULTIPLAYER:<\/h2><\/strong> In addition to traditional multiplayer modes, cooperate and compete with your friends in a wide variety of situations all designed to be easily completed in a single session. <br><\/li><li><strong><h2 class=\"bb_tag\">A CIV FOR ALL PLAYERS:<\/h2><\/strong> <i>Civilization VI<\/i> provides veteran players new ways to build and tune their civilization for the greatest chance of success. New tutorial systems introduce new players to the underlying concepts so they can easily get started.<\/li><\/ul>",
"short_description": "Civilization VI offers new ways to interact with your world, expand your empire across the map, advance your culture, and compete against history\u2019s greatest leaders to build a civilization that will stand the test of time. Play as one of 20 historical leaders including Roosevelt (America) and Victoria (England).",
"price_overview":
{
"currency": "JPY",
"initial": 700000,
"final": 700000,
"discount_percent": 0
}We got JPY, but the description is still English.
Next we remove l attribute and add HTTP Header Accept-Language to try:
GET /api/appdetails/?appids=289070&cc=jp&v=1 HTTP/1.1
Accept-Language: ja-JP;
Host: store.steampowered.com"detailed_description": "<h1>デジタルデラックスエディション</h1><p><img src=\"https://%CDN_HOST_MEDIA_SSL%/steam/apps/289070/extras/2KGMKT_CIV6_DIGITALDELUXE_STEAM_banner.jpg?t=1534546985\" crossorigin=\"anonymous\"><br>"『シヴィライゼーション VI デジタル デラックス エディション』を購入して、帝国のさらなる拡大を目指しましょう! デラックス エディションには、ゲーム本編はもちろんのこと、 25周年デジタルサウンドトラックと6つのDLCパック*へのアクセス権を同梱。追加の文明、リーダー、シナリオなどを割引価格にて入手できます。<br><ul class=\"bb_ul\"><li>シヴィライゼーション VI - バイキングシナリオパック<br></li><li>シヴィライゼーション VI - ポーランド文明 & シナリオパック<br></li><li>シヴィライゼーション VI - オーストラリア文明 & シナリオパック<br></li><li>シヴィライゼーション VI - ペルシア・マケドニア文明 & シナリオパック<br></li><li>シヴィライゼーション VI - ヌビア文明 & シナリオパック<br></li><li>シヴィライゼーション VI - クメール・インドネシア文明 & シナリオパック</li></ul></p><br><h1>ゲームについて</h1>伝説のゲームデザイナー、シド・マイヤーによって生み出されたシヴィライゼーションは、ターン制のストラテジーゲームです。プレイヤーは悠久の時の流れに耐えうる不朽の帝国の建設を目指します。石器時代から情報化時代まで、自らが築いた文明を導き、世界の覇権をその手に握るのです。戦争、外交、文化の発展、歴史に名を馳せた偉大な指導者たちとの対決。史上類を見ない文明の建設を目指すプレイヤーの前には、さまざまな試練が立ちはだかります。<br><br>『<i>シヴィライゼーション VI</i>』でプレイヤーは、これまでとは異なる形で世界と関わっていくことになります。都市は実際にマップ上で面積を拡大していきますし、テクノロジーや文化の積極的な研究は新たな潜在力を解き放ちます。さらに、覇権を争う指導者たちは実際の歴史と同様の特質を備えており、それぞれの個性に応じたやり方で勝利を達成しようとします。<br><ul class=\"bb_ul\"><li><strong><h2 class=\"bb_tag\">広大な帝国</h2></strong>マップ上でかつてない広がりを見せる帝国の偉容にプレイヤーは目を見張ることでしょう。都市はいくつものタイルにまたがって拡大していくので、周囲の地形を最大限に利用した都市建設が可能です。<br></li><li><strong><h2 class=\"bb_tag\">積極的な研究</h2></strong>文明の進化を加速させましょう。より短期間で文明を発展させるため、ユニットを使って積極的に探索を行い、周辺環境を開発し、新たな文明を発見してください。<br></li><li><strong><h2 class=\"bb_tag\">ダイナミックな外交</h2></strong>“戦いこそ世界の摂理”といった原始的な状態に始まり、やがては外交や同盟も選択肢に。他の文明との関わり方は、ゲームの進展にともなって変化していきます。<br></li><li><strong><h2 class=\"bb_tag\">異なるユニット同士の協力</h2></strong>“1タイルに1ユニット”の原則を脱し、対戦車部隊と歩兵、戦士と入植者など、支援ユニットを他のユニットと一体化させることができるようになりました。似たユニットを連合させ、強力な“軍団”ユニットにすることも可能です。<br></li><li><strong><h2 class=\"bb_tag\">さらに充実したマルチプレイヤー</h2></strong>これまでのマルチプレイヤー モードに加え、1回のセッションで決着がつくようデザインされた多種多様なシチュエーションで、フレンドと協力プレイや対戦プレイを楽しめます。<br></li><li><strong><h2 class=\"bb_tag\">誰もが楽しめるシヴィライゼーション</h2></strong>『<i>シヴィライゼーション VI</i>』でベテラン プレイヤーは、従来とは異なる新しい方法で文明を建設、発展させ、勝利をより確かなものにすることができます。また、新しいチュートリアル システムで基本的な考え方を学べば、旧作をプレイしたことがないプレイヤーであっても、すぐにゲームを楽しめるようになります。</li></ul>",
"about_the_game": "伝説のゲームデザイナー、シド・マイヤーによって生み出されたシヴィライゼーションは、ターン制のストラテジーゲームです。プレイヤーは悠久の時の流れに耐えうる不朽の帝国の建設を目指します。石器時代から情報化時代まで、自らが築いた文明を導き、世界の覇権をその手に握るのです。戦争、外交、文化の発展、歴史に名を馳せた偉大な指導者たちとの対決。史上類を見ない文明の建設を目指すプレイヤーの前には、さまざまな試練が立ちはだかります。<br><br>『<i>シヴィライゼーション VI</i>』でプレイヤーは、これまでとは異なる形で世界と関わっていくことになります。都市は実際にマップ上で面積を拡大していきますし、テクノロジーや文化の積極的な研究は新たな潜在力を解き放ちます。さらに、覇権を争う指導者たちは実際の歴史と同様の特質を備えており、それぞれの個性に応じたやり方で勝利を達成しようとします。<br><ul class=\"bb_ul\"><li><strong><h2 class=\"bb_tag\">広大な帝国</h2></strong>マップ上でかつてない広がりを見せる帝国の偉容にプレイヤーは目を見張ることでしょう。都市はいくつものタイルにまたがって拡大していくので、周囲の地形を最大限に利用した都市建設が可能です。<br></li><li><strong><h2 class=\"bb_tag\">積極的な研究</h2></strong>文明の進化を加速させましょう。より短期間で文明を発展させるため、ユニットを使って積極的に探索を行い、周辺環境を開発し、新たな文明を発見してください。<br></li><li><strong><h2 class=\"bb_tag\">ダイナミックな外交</h2></strong>“戦いこそ世界の摂理”といった原始的な状態に始まり、やがては外交や同盟も選択肢に。他の文明との関わり方は、ゲームの進展にともなって変化していきます。<br></li><li><strong><h2 class=\"bb_tag\">異なるユニット同士の協力</h2></strong>“1タイルに1ユニット”の原則を脱し、対戦車部隊と歩兵、戦士と入植者など、支援ユニットを他のユニットと一体化させることができるようになりました。似たユニットを連合させ、強力な“軍団”ユニットにすることも可能です。<br></li><li><strong><h2 class=\"bb_tag\">さらに充実したマルチプレイヤー</h2></strong>これまでのマルチプレイヤー モードに加え、1回のセッションで決着がつくようデザインされた多種多様なシチュエーションで、フレンドと協力プレイや対戦プレイを楽しめます。<br></li><li><strong><h2 class=\"bb_tag\">誰もが楽しめるシヴィライゼーション</h2></strong>『<i>シヴィライゼーション VI</i>』でベテラン プレイヤーは、従来とは異なる新しい方法で文明を建設、発展させ、勝利をより確かなものにすることができます。また、新しいチュートリアル システムで基本的な考え方を学べば、旧作をプレイしたことがないプレイヤーであっても、すぐにゲームを楽しめるようになります。</li></ul>",
"short_description": "『シヴィライゼーション VI』では世界との関わり方が新しくなっています。マップの隅々まで帝国を広げ、文化を発展させ、史上最も偉大な指導者たちと競い合い、時の試練に耐えうる文明を築き上げてください。プレイ可能な実在の指導者は20人。その中には北条時宗も含まれています。",
"price_overview":
{
"currency": "JPY",
"initial": 700000,
"final": 700000,
"discount_percent": 0
}This is the data we want, I previous judgment is wrong (#74 Comment-405848361 ), It is defined by HTTP Header Accept-Language.
Next we should fix it, but do you have any recommendation?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels