M
M
Magnus Keef2018-10-22 10:04:09
Parsing
Magnus Keef, 2018-10-22 10:04:09

How to get data from another site?

Hello! Found a SITE where you can track the exchange rate. I need to transfer this course to my site. Here they offer a link, even the properties are written, but I don’t understand how to use it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Satisfied IT, 2018-10-22
@SecurityYourFingers

And what is there to understand, through curl or another request you get the content at the address

https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,JPY,EUR
and in response you get json
{
  "USD": 6515.19,
  "JPY": 721427.07,
  "EUR": 5602.28
}
which you are processing. Substitute your currencies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question