Black-headed pythons are not an endangered species.
IUCN classifies those reptiles as least concern (LC). The exact population size is not known but they are often found in their environment, which may indicate their high abundance.
They usually eat leftovers from anemone host but can also feed on zooplankton, algae, copepods and tunicate larvae. They sometimes take a bite of hosting anemone tentacle.