# How to download station XML file from existing network?

**URL:** https://discourse.obspy.org/t/how-to-download-station-xml-file-from-existing-network/1936
**Category:** Uncategorized
**Created:** [May 6, 2024, 8:26am UTC](https://discourse.obspy.org/t/how-to-download-station-xml-file-from-existing-network/1936 "2024-05-06T08:26:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![phyo\_mgmg](https://discourse.obspy.org/user_avatar/discourse.obspy.org/phyo_mgmg/32/824_2.png) [@phyo\_mgmg](https://discourse.obspy.org/u/phyo_mgmg)
#### Post date: [May 6, 2024, 8:26am UTC](https://discourse.obspy.org/t/how-to-download-station-xml-file-from-existing-network/1936/1 "2024-05-06T08:26:01Z")

</div>

Hello Obspy senior users,

I am a newbie user. I am testing all the tutorials from document to familiar Obspy.  
After I learned **Creating a StationXML file from Scratch** ([Creating a StationXML file from Scratch — ObsPy 1.4.2 documentation](https://docs.obspy.org/tutorial/code_snippets/stationxml_file_from_scratch.html)), I was tried to download the station XML file of **KTN** station from the **MM network** which data is available in FDSN or IRIS.

I get confused about whether should I create KTN station XML file again or grab/download it by using Obspy. How ?

Please kindly advise or comment. Thanks.

---

<div class="post-metadata">

### Author: ![megies](https://discourse.obspy.org/user_avatar/discourse.obspy.org/megies/32/9_2.png) [@megies](https://discourse.obspy.org/u/megies)
#### Post date: [May 8, 2024, 12:39pm UTC](https://discourse.obspy.org/t/how-to-download-station-xml-file-from-existing-network/1936/2 "2024-05-08T12:39:45Z")

</div>

> **[obspy.clients.fdsn - FDSN web service client for ObsPy — ObsPy...](https://docs.obspy.org/master/packages/obspy.clients.fdsn.html#basic-fdsn-client-usage)**

Look for `get_stations()`
