In plenty of prewar and postwar New York City apartments, a single bedroom circuit runs the receptacles, the ceiling fixture and, since the 1990s, a window air conditioner. Plug in a second unit or run a microwave on that circuit while the block is baking and the breaker, or in older buildings the fuse, gives out even though the AC is fine. Window unit makers want them plugged directly into the wall, never through an extension or power strip. Many have a cord with test and reset buttons near the plug; if that one keeps tripping, the cord or the unit may be damaged.
If the circuit is the building's, check with the landlord or super before shuffling units or bringing in an electrician. In Queens, Staten Island and Nassau houses where central air was retrofitted decades ago, the AC may hang off a panel already near capacity, and an electrician can judge whether the panel needs an upgrade.
Heat waves stress the grid too, and Con Edison or PSEG Long Island may ask households to cut back during peak hours. If losing the AC puts someone at real risk from heat, head to a cooling center while you wait: 311 inside the city, 211 elsewhere in New York.