If you can Mig weld yourself, measure the circumference and length of the pipe and buy a generic flex joint.
If you can't, bring it to a muffler shop that should be able to do it for pretty short money - $100?
There is not a better way than measuring it yourself to find a replacement.
Toyota...