How to repair a bed with adjustable head (manual) that is broken

bedroom

I have bed with adjustable head broken. I don't know what I need to fix it, and how this part is called to buy it (I guess it sold in Ebay?)
I have more one bed with that part that work great, So I photographed it, so it will be more understandable:

Best Answer

That is called channel steel or U-channel:

enter image description here

Channel steel is available in a wide range of thicknesses and sizes and available in different grades of steel and aluminum. It's going to be hard to find an exact match for that piece on eBay and if you get a stock piece that you have to cut and drill yourself, you may not have the right equipment on-hand to do so.

It you can take the piece off and take it to a local metal fabrication shop, they may be able to make you a replacement piece - they may not have an exact match in stock, but they may be able to fold you a custom piece. They may also be able to make a stronger piece or reinforce it where it bent. Or may even be able to straighten out your piece and spot weld reinforcements to keep it from bending again.