My thoughts:
Measure OD of the thread, measure the TPI or check the pitch for metric. If things are “weird” then is the thread tapered? Straight? Application?? Is it hydraulic, gas, where is the contraption made?
The threads can get crazy - British Straight pipe, G1, G2 etc. typically...