Проблема с api coinmarketcap

SAndrusReg

Новичок
Регистрация
16.04.2022
Сообщения
4
Благодарностей
0
Баллы
1
Здравствуйте.
Создаю запрос на получение метаданных по биткоину:
урл: https://sandbox-api.coinmarketcap.com/v2/cryptocurrency/info
ключ пишу в заголовок
параметр id=1
Результаты возвращаются нормально, но в json вижу:
"data":{"1":{"urls":{"website":["gkms5naphx5","53e9z937xto"], ...
а в документации д.б:
"data": {"1": {"urls": {"website": ["https://bitcoin.org/"], ...
Кто сталкивался с этим, помогите пожалуйста уже все перепробовал.
Спасибо
 

SAndrusReg

Новичок
Регистрация
16.04.2022
Сообщения
4
Благодарностей
0
Баллы
1
Upd это все делаю в java. использовал apacht.HttpClient, JSoup библиотеки результат одинаковый.
В браузере проходит все норм, но там ключ светишь, а это делать не рекомендуют.
Спасибо
 

SAndrusReg

Новичок
Регистрация
16.04.2022
Сообщения
4
Благодарностей
0
Баллы
1
Люди!!! Пожалуйста.
Попробовал с python как показано тут:
Результат такой же.
ПОМОГИТЕ ПОЖАЛУЙСТА!!!
Спасибо
 

volody00

Client
Регистрация
06.09.2016
Сообщения
918
Благодарностей
953
Баллы
93
это форум про зеннопостер вроде как. На питоне или java тут мало кто сможет подсказать. Сделал запрос по такому урл https://pro-api.coinmarketcap.com/v1/cryptocurrency/info?id=1,2 получил такой ответ:

{"status":{"timestamp":"2022-04-17T07:33:43.755Z","error_code":0,"error_message":null,"elapsed":19,"credit_count":1,"notice":null},"data":{"1":{"id":1,"name":"Bitcoin","symbol":"BTC","category":"coin","description":"Bitcoin (BTC) is a cryptocurrency . Users are able to generate BTC through the process of mining. Bitcoin has a current supply of 19,014,000. The last known price of Bitcoin is 40,364.48480839 USD and is down -0.14 over the last 24 hours. It is currently trading on 9334 active market(s) with $16,567,438,709.22 traded over the last 24 hours. More information can be found at https://bitcoin.org/.","slug":"bitcoin","logo":"https://s2.coinmarketcap.com/static/img/coins/64x64/1.png","subreddit":"bitcoin","notice":"","tags":["mineable","pow","sha-256","store-of-value","state-channel","coinbase-ventures-portfolio","three-arrows-capital-portfolio","polychain-capital-portfolio","binance-labs-portfolio","blockchain-capital-portfolio","boostvc-portfolio","cms-holdings-portfolio","dcg-portfolio","dragonfly-capital-portfolio","electric-capital-portfolio","fabric-ventures-portfolio","framework-ventures-portfolio","galaxy-digital-portfolio","huobi-capital-portfolio","alameda-research-portfolio","a16z-portfolio","1confirmation-portfolio","winklevoss-capital-portfolio","usv-portfolio","placeholder-ventures-portfolio","pantera-capital-portfolio","multicoin-capital-portfolio","paradigm-portfolio"],"tag-names":["Mineable","PoW","SHA-256","Store Of Value","State Channel","Coinbase Ventures Portfolio","Three Arrows Capital Portfolio","Polychain Capital Portfolio","Binance Labs Portfolio","Blockchain Capital Portfolio","BoostVC Portfolio","CMS Holdings Portfolio","DCG Portfolio","DragonFly Capital Portfolio","Electric Capital Portfolio","Fabric Ventures Portfolio","Framework Ventures Portfolio","Galaxy Digital Portfolio","Huobi Capital Portfolio","Alameda Research Portfolio","a16z Portfolio","1Confirmation Portfolio","Winklevoss Capital Portfolio","USV Portfolio","Placeholder Ventures Portfolio","Pantera Capital Portfolio","Multicoin Capital Portfolio","Paradigm Portfolio"],"tag-groups":["OTHERS","ALGORITHM","ALGORITHM","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY","CATEGORY"],"urls":{"website":["https://bitcoin.org/"],"twitter":[],"message_board":["https://bitcointalk.org"],"chat":[],"facebook":[],"explorer":["https://blockchain.coinmarketcap.com/chain/bitcoin","https://blockchain.info/","https://live.blockcypher.com/btc/","https://blockchair.com/bitcoin","https://explorer.viabtc.com/btc"],"reddit":["https://reddit.com/r/bitcoin"],"technical_doc":["https://bitcoin.org/bitcoin.pdf"],"source_code":["https://github.com/bitcoin/bitcoin"],"announcement":[]},"platform":null,"date_added":"2013-04-28T00:00:00.000Z","twitter_username":"","is_hidden":0,"date_launched":null,"contract_address":[],"self_reported_circulating_supply":null,"self_reported_tags":null,"self_reported_market_cap":null},"2":{"id":2,"name":"Litecoin","symbol":"LTC","category":"coin","description":"Litecoin (LTC) is a cryptocurrency . Users are able to generate LTC through the process of mining. Litecoin has a current supply of 84,000,000 with 70,086,631.27791464 in circulation. The last known price of Litecoin is 113.4419617 USD and is up 1.61 over the last 24 hours. It is currently trading on 764 active market(s) with $696,972,832.26 traded over the last 24 hours. More information can be found at https://litecoin.org/.","slug":"litecoin","logo":"https://s2.coinmarketcap.com/static/img/coins/64x64/2.png","subreddit":"litecoin","notice":"","tags":["mineable","pow","scrypt","medium-of-exchange","binance-chain","bnb-chain"],"tag-names":["Mineable","PoW","Scrypt","Medium of Exchange","Binance Chain","BNB Chain"],"tag-groups":["OTHERS","ALGORITHM","ALGORITHM","INDUSTRY","PLATFORM","PLATFORM"],"urls":{"website":["https://litecoin.org/"],"twitter":["https://twitter.com/LitecoinProject"],"message_board":["https://litecointalk.io/","https://litecoin-foundation.org/"],"chat":["https://telegram.me/litecoin"],"facebook":[],"explorer":["https://blockchair.com/litecoin","https://chainz.cryptoid.info/ltc/","http://explorer.litecoin.net/chain/Litecoin","https://ltc.tokenview.com/en","https://bscscan.com/token/0x4338665cbb7b2485a8855a139b75d5e34ab0db94"],"reddit":["https://reddit.com/r/litecoin"],"technical_doc":[],"source_code":["https://github.com/litecoin-project/litecoin"],"announcement":["https://bitcointalk.org/index.php?topic=47417.0"]},"platform":null,"date_added":"2013-04-28T00:00:00.000Z","twitter_username":"LitecoinProject","is_hidden":0,"date_launched":null,"contract_address":[{"contract_address":"0xecb56cf772b5c9a6907fb7d32387da2fcbfb63b4","platform":{"name":"HECO","coin":{"id":"2502","name":"Huobi Token","symbol":"HT","slug":"huobi-token"}}},{"contract_address":"0x4338665cbb7b2485a8855a139b75d5e34ab0db94","platform":{"name":"BNB Smart Chain (BEP20)","coin":{"id":"1839","name":"BNB","symbol":"BNB","slug":"bnb"}}},{"contract_address":"0x13e93721dc992b3e14333dbdb48c0e7ec55431c3","platform":{"name":"Hoo Smart Chain","coin":{"id":"15165","name":"Hoo Smart Chain","symbol":"HSC","slug":"hoo-smart-chain"}}}],"self_reported_circulating_supply":null,"self_reported_tags":null,"self_reported_market_cap":null}}}
 

SAndrusReg

Новичок
Регистрация
16.04.2022
Сообщения
4
Благодарностей
0
Баллы
1
Спасибо, там ключ надо передавать. Ясно, буду искать.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)