XML 159 R142.htm IDEA: XBRL DOCUMENT
v3.23.1

Loans - Details of Negotiable Obligations (Parenthetical) (Detail) $ in Millions | Dec. 31, 2022 USD ($)
--- | ---
Medium Term Notes [member] | Nineteen Ninety Seven [member] |
Disclosure of detailed information about loans [line items] |
Negotiable amount | $ 1,000
Medium Term Notes [member] | Two Thousand Eight [member] |
Disclosure of detailed information about loans [line items] |
Negotiable amount | 10,000
Frequent Issuer Program [Member] |
Disclosure of detailed information about loans [line items] |
Negotiable amount | $ 7,215

X
- Definition Disclosure of detailed information about loans. + References No definition available. + Details
Name: | ypf_DisclosureOfDetailedInformationAboutLoansLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Negotiable amount. + References No definition available. + Details
Name: | ypf_NegotiableAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_MediumTermNotes1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ypf_NineteenNinetySevenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ypf_TwoThousandEightMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_FrequentIssuerProgramMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |