You may have keyhole surgery(laparoscopy) or open surgery(laparotomy) for ectopic pregnancy. However, open surgery is more likely if your fallopian tube has ruptured. Depending on where your pregnancy is and how advanced it is, your surgeon may remove the pregnancy by using a device to suck it out of the fallopian tube, or by removing part or all of the fallopian tube.
Attribution: BUPA