XML 108 R91.htm IDEA: XBRL DOCUMENT
v3.23.1

Segment Information - Additional Information (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2022 Client
Disclosure of operating segments [abstract] |
Number of foreign clients accounted for 10% or more of Group's revenue | 0

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

X
- Definition Number of foreign clients accounted for ten percent or more of revenue. + References No definition available. + Details
Name: | ypf_NumberOfForeignClientsAccountedForTenPercentOrMoreOfRevenue
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration