Bitcoin Forum

Bitcoin => Project Development => Topic started by: nagoarif on May 06, 2021, 06:41:13 AM



Title: Bitcoin Explorer API integration in my Website
Post by: nagoarif on May 06, 2021, 06:41:13 AM
Hello folks,
I'm trying to integrate Blockchain Explorer API in my website so that users of my site will check the transaction details. I'm a beginner in website designing and stuck in API integration. I will appreciate your contribution in terms of a tip or sharing a link where I will learn how to integrate blockchain explore in my website. If you have done any project previously like this one please your experience and source.
Thank You in advance.


Title: Re: Bitcoin Explorer API integration in my Website
Post by: TryNinja on May 06, 2021, 06:51:12 AM
Which language are you using?
What kind of integration are you doing (e.g which kind of data you want to display)?


Title: Re: Bitcoin Explorer API integration in my Website
Post by: nagoarif on May 06, 2021, 07:07:45 AM
Which language are you using?
English


Title: Re: Bitcoin Explorer API integration in my Website
Post by: nagoarif on May 06, 2021, 07:10:03 AM
What kind of integration are you doing (e.g which kind of data you want to display)?
I want to show the transaction details of any public key. If a user enters a public key in a form on my website and press enter, It should show the transaction details of that public key.


Title: Re: Bitcoin Explorer API integration in my Website
Post by: TryNinja on May 06, 2021, 07:12:59 AM
English
... which programming language. PHP, Javascript, etc...

I want to show the transaction details of any public key. If a user enters a public key in a form on my website and press enter, It should show the transaction details of that public key.
You mean the transactions history?

Just send a GET request to https://blockchain.info/rawaddr/BTC-ADDRESS-HERE and you'll probably get all the data you need.


Title: Re: Bitcoin Explorer API integration in my Website
Post by: nagoarif on May 06, 2021, 07:25:19 AM
English
... which programming language. PHP, Javascript, etc...

Quote
Javascript
You mean the transactions history?

Just send a GET request to https://blockchain.info/rawaddr/BTC-ADDRESS-HERE and you'll probably get all the data you need.

That is what i was actually looking for


Title: Re: Bitcoin Explorer API integration in my Website
Post by: husencoe on May 06, 2021, 04:01:55 PM
That is what i was actually looking for

I think you must learn some programming language, like PHP or Python. Then you learn to build a website for doing your plan. To make your work easier, you can use some framework, like CodeIgniter or Laravel on PHP or Flask or Django on python to build your website. Then you learn how to make micro service with framework that you using it to build your website. Then you can connecting the API from blockchain.info or other API services to display result on your website.

Hope this can answer your question.


Title: Re: Bitcoin Explorer API integration in my Website
Post by: Insanerman on May 06, 2021, 04:16:49 PM
Which language are you using?
English

So many years I've been on this forum and posting in this Project Development section and this is the only post I laughed so hard I almost choked HAHA.

But yes, in my own experience creating simple local apps especially with Javascript, blockchain.info's API is far the fastest API I have used. But if you would have a commercial website and would love to use a paid API that offers variety of chains, I would suggest Blockchair's API[1]. Also,just a simple suggestion, if you also want to integrate coin prices in your website (coz you might soon as it would be an additional feature), I would then suggest Coingecko's free API which you can find in their website.

[1] - https://blockchair.com/api


Title: Re: Bitcoin Explorer API integration in my Website
Post by: bitmover on May 07, 2021, 12:39:35 AM
Hello folks,
I'm trying to integrate Blockchain Explorer API in my website so that users of my site will check the transaction details. I'm a beginner in website designing and stuck in API integration. I will appreciate your contribution in terms of a tip or sharing a link where I will learn how to integrate blockchain explore in my website. If you have done any project previously like this one please your experience and source.
Thank You in advance.

I have made https://bitcoindata.science which I make API requests for blockchain explorers all over the place.

I like sochain API. It is simple and easy to use. And free. https://www.sochain.com/api/

To make a simple API request to a block explorer, using only javascript an no jquery, you can simple use this:

(my code was blocked for security reasons, i will post it as an image:
https://i.imgur.com/GFV4XBJ.png


the response of this APi will be. Previously I selected only network, by using sochain.response.data.network
Code:
{
  "status" : "success",
  "data" : {
    "name" : "Bitcoin",
    "acronym" : "BTC",
    "network" : "BTC",
    "symbol_htmlcode" : "฿",
    "url" : "http://www.bitcoin.com/",
    "mining_difficulty" : "20608845737768.16",
    "unconfirmed_txs" : 31348,
    "blocks" : 682305,
    "price" : "56644.34000000",
    "price_base" : "USD",
    "price_update_time" : 1620347534,
    "hashrate" : "185814153860359700000.0"
  }
}


Title: Re: Bitcoin Explorer API integration in my Website
Post by: nagoarif on May 07, 2021, 05:26:35 AM
Which language are you using?
English

So many years I've been on this forum and posting in this Project Development section and this is the only post I laughed so hard I almost choked HAHA.

But yes, in my own experience creating simple local apps especially with Javascript, blockchain.info's API is far the fastest API I have used. But if you would have a commercial website and would love to use a paid API that offers variety of chains, I would suggest Blockchair's API[1]. Also,just a simple suggestion, if you also want to integrate coin prices in your website (coz you might soon as it would be an additional feature), I would then suggest Coingecko's free API which you can find in their website.

[1] - https://blockchair.com/api
Laughing is good for health. Keep lough and, in a state of laugh try to help people too.  I have added a live price index of BTC on my website but facing an issue integrating explorer in my site. Hopefully I will resolve this issue.


Title: Re: Bitcoin Explorer API integration in my Website
Post by: nagoarif on May 07, 2021, 05:28:04 AM
Hello folks,
I'm trying to integrate Blockchain Explorer API in my website so that users of my site will check the transaction details. I'm a beginner in website designing and stuck in API integration. I will appreciate your contribution in terms of a tip or sharing a link where I will learn how to integrate blockchain explore in my website. If you have done any project previously like this one please your experience and source.
Thank You in advance.

I have made https://bitcoindata.science which I make API requests for blockchain explorers all over the place.

I like sochain API. It is simple and easy to use. And free. https://www.sochain.com/api/

To make a simple API request to a block explorer, using only javascript an no jquery, you can simple use this:

(my code was blocked for security reasons, i will post it as an image:
https://i.imgur.com/GFV4XBJ.png


the response of this APi will be. Previously I selected only network, by using sochain.response.data.network
Code:
{
  "status" : "success",
  "data" : {
    "name" : "Bitcoin",
    "acronym" : "BTC",
    "network" : "BTC",
    "symbol_htmlcode" : "฿",
    "url" : "http://www.bitcoin.com/",
    "mining_difficulty" : "20608845737768.16",
    "unconfirmed_txs" : 31348,
    "blocks" : 682305,
    "price" : "56644.34000000",
    "price_base" : "USD",
    "price_update_time" : 1620347534,
    "hashrate" : "185814153860359700000.0"
  }
}

I appreciate your work.


Title: Re: Bitcoin Explorer API integration in my Website
Post by: nagoarif on May 07, 2021, 05:28:58 AM
That is what i was actually looking for

I think you must learn some programming language, like PHP or Python. Then you learn to build a website for doing your plan. To make your work easier, you can use some framework, like CodeIgniter or Laravel on PHP or Flask or Django on python to build your website. Then you learn how to make micro service with framework that you using it to build your website. Then you can connecting the API from blockchain.info or other API services to display result on your website.

Hope this can answer your question.
Yes I'm already beginner-level developer of Laravel php.


Title: Re: Bitcoin Explorer API integration in my Website
Post by: nagoarif on May 07, 2021, 05:33:10 AM
Hello folks,
I'm trying to integrate Blockchain Explorer API in my website so that users of my site will check the transaction details. I'm a beginner in website designing and stuck in API integration. I will appreciate your contribution in terms of a tip or sharing a link where I will learn how to integrate blockchain explore in my website. If you have done any project previously like this one please your experience and source.
Thank You in advance.

I have made https://bitcoindata.science which I make API requests for blockchain explorers all over the place.

I like sochain API. It is simple and easy to use. And free. https://www.sochain.com/api/

To make a simple API request to a block explorer, using only javascript an no jquery, you can simple use this:

(my code was blocked for security reasons, i will post it as an image:
https://i.imgur.com/GFV4XBJ.png


the response of this APi will be. Previously I selected only network, by using sochain.response.data.network
Code:
{
  "status" : "success",
  "data" : {
    "name" : "Bitcoin",
    "acronym" : "BTC",
    "network" : "BTC",
    "symbol_htmlcode" : "฿",
    "url" : "http://www.bitcoin.com/",
    "mining_difficulty" : "20608845737768.16",
    "unconfirmed_txs" : 31348,
    "blocks" : 682305,
    "price" : "56644.34000000",
    "price_base" : "USD",
    "price_update_time" : 1620347534,
    "hashrate" : "185814153860359700000.0"
  }
}

https://bitcoindata.science/bitcoin-balance-check.html
Need the same like this.


Title: Re: Bitcoin Explorer API integration in my Website
Post by: nagoarif on May 07, 2021, 06:10:42 AM
That's What I actually need.
https://i.imgur.com/ZoxSlbv.png


Title: Re: Bitcoin Explorer API integration in my Website
Post by: buietaw on May 18, 2021, 04:46:34 AM
Quote
English

Please my friend forgive me. That was really funny answer  ;D İf you can reach me on telegram. We can review your project together and I can tell you what you need faster. My telegram username @bulothur

I will try to help you as best I can  ;)