Data Export
If you run a SWG web site or are developing a SWG application then this is a feature of the site that you might be interested in. All of the current resource data from this site is available in XML and CSV format.

Every hour the current resource data from this site is dumped out to XML and CSV files, which are available for download. If you run a SWG web site and want to show resource information or if you are developing a SWG application based on resource information then you can grab a copy of the files and incorporate the data in to your site or application.


Here are the rules that must be adhered to if you make use of this feature:

1. You must place the following text and link in a prominent place on your web site or application:

Resource data provided by SWGCraft.co.uk

Anyone found not displaying this text and link may be banned from the site.

2. You are not allowed to charge a user for access to this data, either real money or in-game credits. Using the data to support a premium service is fine as long as the user is only paying for access to data other than the resource data provided in the export files e.g. waypoints. If you are using it to support a premium service then the data provided in the export files must be viewable by all users on your site, not just the premium members.

3. Please use this static data rather than screen scraping the data on the site. Screen scraping puts extra load on our database, this feature doesn't.

4. We cannot guarantee that this feature will be available at all times (server downtime etc.).

5. You must code your web site or application to only download the XML or CSV file when there is a new one available. There is no advantage to be gained from downloading every time you need to access the data and it will keep our bandwidth usage figures down. You can use the status files (see below) to find out if a new version of the file is available.

6. To preserve bandwidth the XML and CSV files are supplied in gzip format. Your web site or application must be able to decode gzip files. See the links at the bottom of this page for help with this.


The links to the full resource files are:

http://www.swgcraft.org/dev/sendfile.php?file=currentresources.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources.csv.gz


If you are only interested in the resource information for a specific server then seperate XML files are available:

http://www.swgcraft.org/dev/sendfile.php?file=currentresources_aftermath.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_aurora.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_basilisk.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_bloodfin_emulator.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_empire_in_flames.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_finalizer.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_hydian-way.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_project_carbonite.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_prophecy:_redemption_.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_prophecy:_vengeance.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_relics_of_corbantis.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_restoration_3.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_sr_alderaan.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_star_wars_galaxies_awakening.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_sunrunner_ii.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_ascendancy.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_beyond.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_infinity.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_intended.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_legends.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_new_beginnings.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_plus.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_reckoning.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_remastered.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_resurrection.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg-europa.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg:_resurgence.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg:_sanctuary.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swgcraft.co.uk.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swgflurry.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_tarkins_revenge.xml.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_test_center:_nova.xml.gz


And seperate CSV files are available:

http://www.swgcraft.org/dev/sendfile.php?file=currentresources_aftermath.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_aurora.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_basilisk.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_bloodfin_emulator.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_empire_in_flames.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_finalizer.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_hydian-way.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_project_carbonite.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_prophecy:_redemption_.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_prophecy:_vengeance.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_relics_of_corbantis.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_restoration_3.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_sr_alderaan.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_star_wars_galaxies_awakening.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_sunrunner_ii.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_ascendancy.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_beyond.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_infinity.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_intended.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_legends.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_new_beginnings.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_plus.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_reckoning.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_remastered.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg_resurrection.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg-europa.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg:_resurgence.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swg:_sanctuary.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swgcraft.co.uk.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_swgflurry.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_tarkins_revenge.csv.gz
http://www.swgcraft.org/dev/sendfile.php?file=currentresources_test_center:_nova.csv.gz


There is also a status file available, that allows you to get the date when the files were last generated (in UNIX timestamp format, as are all the dates in the files):

http://www.swgcraft.org/dev/public/status.xml
http://www.swgcraft.org/dev/public/status.txt


XML and CSV versions of the swgcraft.org server, planet and resource tree data are also available:

Resource Tree XML
Resource Tree CSV
Server XML
Server CSV
Planet XML
Planet CSV


Also, a resource class mapping is available that shows the link between our internal ID and the old SWGCraft.com ID:
Resource Class Mapping


-The SWGCraft Project Development Team