v3.25.1

Organization and principal activities - Additional Information (Details) ¥ in Thousands, $ in Millions |  |  |  |  |  | 1 Months Ended | 12 Months Ended
--- | --- | --- | --- | --- | --- | --- | ---
Dec. 22, 2023 USD ($) | Dec. 22, 2023 CNY (¥) | May 06, 2023 shares | May 05, 2023 shares | Jan. 20, 2022 USD ($) | Jan. 20, 2022 CNY (¥) | Apr. 03, 2020 shares | Dec. 31, 2023 USD ($) | Dec. 31, 2023 CNY (¥) | Apr. 30, 2019 USD ($) shares | May 31, 2018 USD ($) shares | Dec. 31, 2024 shares | Dec. 31, 2023 shares | Dec. 31, 2022 shares
Tencent Holdings Limited |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Percentage of common shares fully diluted |  |  |  |  |  |  | 50.00% |  |  |  |  |  |  |
ADS |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of ADS issued and sold in IPO ,in shares |  |  |  |  |  |  |  |  |  | 13,600,000 | 17,250,000 |  |  |
Issuance of ordinary shares | $ |  |  |  |  |  |  |  |  |  | $ 314 | $ 176 |  |  |
Class A-1 Preferred Shares |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares converted into ordinary shares |  |  |  |  |  |  |  |  |  |  | 17,647,058 |  |  |
Class A-2 Preferred Shares |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares converted into ordinary shares |  |  |  |  |  |  |  |  |  |  | 4,411,765 |  |  |
Class B-2 Preferred Shares |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares converted into ordinary shares |  |  |  |  |  |  |  |  |  |  | 64,488,235 |  |  |
Class B ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares converted into ordinary shares |  |  |  |  |  |  |  |  |  |  |  | 0 | 0 | 690,000
Class B ordinary shares | Tencent Holdings Limited |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Transfer of shares |  |  |  | 38,374,463 |  |  |  |  |  |  |  |  |  |
Shares outstanding |  |  | 150,386,517 |  |  |  |  |  |  |  |  |  |  |
Percentage of total shares issued and outstanding |  |  | 62.70% |  |  |  |  |  |  |  |  |  |  |
Percentage of total voting power of company |  |  | 94.40% |  |  |  |  |  |  |  |  |  |  |
Number of shares transferred |  |  |  |  |  |  | 16,523,819 |  |  |  |  |  |  |
Class B ordinary shares | JOYY Inc |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of ADS issued and sold in IPO ,in shares |  |  |  |  |  |  |  |  |  | 4,800,000 |  |  |  |
Number of shares converted into ordinary shares |  |  |  |  |  |  |  |  |  | 4,800,000 |  |  |  |
Guangzhou Huya Information Technology Company Limited | Guangzhou Huya Technology Co Ltd | Exclusive Business Cooperation Agreement |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Term of agreement |  |  |  |  |  |  |  |  |  |  |  | 10 years |  |
Extended term |  |  |  |  |  |  |  |  |  |  |  | 10 years |  |
Guangzhou Huya Information Technology Company Limited | Guangzhou Huya Technology Co Ltd | Shareholder Voting Rights Proxy Agreement |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Period of prior written notice required to terminate the agreement |  |  |  |  |  |  |  |  |  |  |  | 30 days |  |
Term of agreement |  |  |  |  |  |  |  |  |  |  |  | 10 years |  |
Extended term |  |  |  |  |  |  |  |  |  |  |  | 1 year |  |
Guangzhou Huya Information Technology Company Limited | Guangzhou Huya Technology Co Ltd | Exclusive Option Agreement |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Term of agreement |  |  |  |  |  |  |  |  |  |  |  | 10 years |  |
A global mobile application service provider |  |  |  |  |  |  |  |  |  |  |  |  |  |
Organization and principal activities |  |  |  |  |  |  |  |  |  |  |  |  |  |
Percentage of voting interests acquired | 100.00% | 100.00% |  |  |  |  |  | 100.00% | 100.00% |  |  |  | 100.00% |
Aggregate cash consideration | $ 81 | ¥ 574,826 |  |  | $ 90 | ¥ 573,714 |  | $ 81 | ¥ 574,826 |  |  |  |  |

X
- Definition Agreement Additional Extended Period + References No definition available. + Details
Name: | huya_AgreementAdditionalExtendedPeriod
Namespace Prefix: | huya_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Agreement Term + References No definition available. + Details
Name: | huya_AgreementTerm
Namespace Prefix: | huya_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Organization And Principal Activities [Line Items] + References No definition available. + Details
Name: | huya_OrganizationAndPrincipalActivitiesLineItems
Namespace Prefix: | huya_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage Of Common Stock Fully diluted + References No definition available. + Details
Name: | huya_PercentageOfCommonStockFullyDiluted
Namespace Prefix: | huya_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of total shares issued and outstanding. + References No definition available. + Details
Name: | huya_PercentageOfTotalSharesIssuedAndOutstanding
Namespace Prefix: | huya_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of total voting power of company + References No definition available. + Details
Name: | huya_PercentageOfTotalVotingPowerOfCompany
Namespace Prefix: | huya_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period of prior written notice required to terminate agreement. + References No definition available. + Details
Name: | huya_PeriodOfPriorWrittenNoticeRequiredToTerminateAgreement
Namespace Prefix: | huya_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares transferred. + References No definition available. + Details
Name: | huya_TransferOfShares
Namespace Prefix: | huya_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of voting equity interests acquired at the acquisition date in the business combination. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479328/805-10-50-2 + Details
Name: | us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 30 -Paragraph 8 -SubTopic 30 -Topic 805 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479637/805-30-30-8 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b) -SubTopic 30 -Topic 805 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479581/805-30-50-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 30 -Paragraph 7 -SubTopic 30 -Topic 805 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479637/805-30-30-7 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferred1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The number of shares converted in a noncash (or part noncash) transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-4 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-3 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-5 + Details
Name: | us-gaap_ConversionOfStockSharesConverted1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of shares issued or sold by the subsidiary or equity method investee per stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares issued which are neither cancelled nor held in the treasury. + References No definition available. + Details
Name: | us-gaap_SharesOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of new stock issued during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -SubTopic 10 -Topic 505 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-2 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478448/946-505-50-2 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-09(4)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-3 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480008/505-10-S99-1 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesNewIssues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -SubTopic 10 -Topic 505 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-2 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 946 -SubTopic 830 -Name Accounting Standards Codification -Section 55 -Paragraph 11 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479168/946-830-55-11 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 205 -Name Accounting Standards Codification -Section 45 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478009/946-205-45-4 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478448/946-505-50-2 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-09(4)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-3 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480008/505-10-S99-1 + Details
Name: | us-gaap_StockIssuedDuringPeriodValueNewIssues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | srt_CounterpartyNameAxis=huya_TencentHoldingLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=dei_AdrMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=huya_ClassaOnePreferredSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=huya_ClassaTwoPreferredSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=huya_ClassbTwoPreferredSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassBMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=huya_JoyyIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=huya_GuangzhouHuyaInformationTechnologyCompanyLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | huya_ConsolidatedEntitiesOneAxis=huya_GuangzhouHuyaTechnologyCoLtdMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=huya_ExclusiveBusinessCooperationAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=huya_ShareholderVotingRightsProxyAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=huya_ExclusiveOptionAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=huya_GlobalMobileApplicationServiceProviderMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |