XML 181 R164.htm IDEA: XBRL DOCUMENT
v3.23.1

Contractual Commitments - Contractual Commitments - Additional Information (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2022 USD ($)
Statement [Line Items] |
Total Expenses untill the completion of Concessions | $ 4,684

X
- Definition Amount of expense by nature. + References No definition available. + Details
Name: | ypf_AmountOfExpenseByNature
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | ypf_StatementLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration