An outdoor unit for a refrigeration cycle apparatus comprising: a housing comprising a ventilation opening; an outdoor heat exchanger housed in the housing; a communication unit which performs near-field communication with a nearby information terminal; wherein the communication unit is provided in the housing at a position facing the ventilation opening, an electrical component box is housed in a machinery chamber in the housing; a main control unit is provided in the electrical component box and connected to the communication unit via a signal line, and configured to set data necessary to operate the outdoor unit and diagnoses a state of the outdoor unit based on data communication with the information terminal via the communication unit; an outside air temperature sensor configured to detect outside air temperature is provided in the communication unit; and wherein the communication unit comprises: a data communication unit which is connected to the main control unit via the signal line, and configured to operate with electricity generated by electromagnetic induction due to a radio wave transmitted from the information terminal, and to perform near-field communication with the information terminal by a near-field communication technology; wherein a nonmagnetic base portion holds the data communication unit and the outside air temperature sensor, and comprises a first ventilation opening at a position facing the outside air temperature sensor, and a nonmagnetic cover portion, which is openably and closably provided in the nonmagnetic base portion, and covers the data communication unit and the outside air temperature sensor on the nonmagnetic base portion, and comprises a second ventilation opening at a position facing the outside air temperature sensor. a housing comprising a ventilation opening; an outdoor heat exchanger housed in the housing; a communication unit which performs near-field communication with a nearby information terminal; wherein the communication unit is provided in the housing at a position facing the ventilation opening, an electrical component box is housed in a machinery chamber in the housing; a main control unit is provided in the electrical component box and connected to the communication unit via a signal line, and configured to set data necessary to operate the outdoor unit and diagnoses a state of the outdoor unit based on data communication with the information terminal via the communication unit; an outside air temperature sensor configured to detect outside air temperature is provided in the communication unit; and wherein the communication unit comprises: a data communication unit which is connected to the main control unit via the signal line, and configured to operate with electricity generated by electromagnetic induction due to a radio wave transmitted from the information terminal, and to perform near-field communication with the information terminal by a near-field communication technology; wherein a nonmagnetic base portion holds the data communication unit and the outside air temperature sensor, and comprises a first ventilation opening at a position facing the outside air temperature sensor, and a nonmagnetic cover portion, which is openably and closably provided in the nonmagnetic base portion, and covers the data communication unit and the outside air temperature sensor on the nonmagnetic base portion, and comprises a second ventilation opening at a position facing the outside air temperature sensor. a data communication unit which is connected to the main control unit via the signal line, and configured to operate with electricity generated by electromagnetic induction due to a radio wave transmitted from the information terminal, and to perform near-field communication with the information terminal by a near-field communication technology; wherein a nonmagnetic base portion holds the data communication unit and the outside air temperature sensor, and comprises a first ventilation opening at a position facing the outside air temperature sensor, and a nonmagnetic cover portion, which is openably and closably provided in the nonmagnetic base portion, and covers the data communication unit and the outside air temperature sensor on the nonmagnetic base portion, and comprises a second ventilation opening at a position facing the outside air temperature sensor.