Title: Blockchain.info API Problem Post by: chalbersma on October 25, 2013, 05:49:38 PM Hey guys I'm trying to pull information about a transaction from blockchain.info's API. I think their API isn't working as defined.
From the API Documentation Page (https://blockchain.info/api/blockchain_api): Quote Single Address http://blockchain.info/address/$hash_160?format=json http://blockchain.info/address/$bitcoin_address?format=json http://blockchain.info/rawaddr/$bitcoin_address Optional limit parameter to show n transactions e.g. &limit=50 But when I do: https://blockchain.info/address/1KMLjhgjGLxZTJT5TSWxV2HCZHBqpDEpa1?format=json&limit=100 (https://blockchain.info/address/1KMLjhgjGLxZTJT5TSWxV2HCZHBqpDEpa1?format=json&limit=100) I only get the first 50 transactions. I believe that the API is ignoring the limit command and manually placing you with only 50 transactions (Quick way to check is to find the word "result" as it only appears once per transaction). Can anyone assist? Or does anyone know an email where I can email Blockchain directly? Title: Re: Blockchain.info API Problem Post by: Undecidable on October 25, 2013, 09:23:44 PM The API supports an "offset" parameter so you can get everything by making multiple calls.
If I had to guess, they made 50 the maximum allowable value for "limit". Title: Re: Blockchain.info API Problem Post by: chalbersma on October 28, 2013, 01:10:55 PM The API supports an "offset" parameter so you can get everything by making multiple calls. If I had to guess, they made 50 the maximum allowable value for "limit". I'll have to give that a whirl. Thanks for the tip! |