Well, if the amount of data is fairly small then it really doesn’t matter if the API is slow or not, but yet, the API is often slow because of it being hammered by all kinds of people/software of which the TilesAtHome client is probably the biggest culprit.

If you’re about to download more then, say, 25 Megabytes from the XAPI then you might want to check out the weekly database (planet) dump and extract (Osmosis) your data from that locally (or download a preprocessed planet extracts).

So if you want all the roads in a country in 0.3 degrees squares then download the country planet extract and process that with Osmosis (A lot of data). If you just want all the railway stations in a country then you can use the XAPI (a little amount of data).