XML 192 R171.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Contractual Commitments - Summary of Letter of intent with the Province of Mendoza (Details) | Jul. 26, 2021 pilot
--- | ---
Pilot Plan [Member] | Vaca Muerta [Member] | Letter of Intent [Member] |
Statement [Line Items] |
Number of wells to be drilled | 2

X
- Definition Number of wells to be drilled. + References No definition available. + Details
Name: | ypf_NumberOfWellsToBeDrilled
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
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

X
- Details
Name: | ypf_WellsAxis=ypf_PilotPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_ProspectiveSiteAxis=ypf_VacaMuertaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_AgreementAxis=ypf_LetterOfIntentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |