ABCoin News API

API miễn phí để truy cập dữ liệu cryptocurrency real-time, tin tức blockchain và thông tin ABCoin. Dễ sử dụng, đáng tin cậy và được cập nhật liên tục.

https://api.abcoin.news/v1/

Tính Năng API

Real-time Data

Dữ liệu giá cryptocurrency cập nhật theo thời gian thực

Secure & Reliable

API bảo mật với rate limiting và authentication

Rich Data

Thông tin đầy đủ về giá, volume, market cap và tin tức

Easy Integration

RESTful API dễ tích hợp với mọi ngôn ngữ lập trình

API Endpoints

GET/api/coins

Lấy danh sách tất cả cryptocurrency

Parameters:

limitnumber

Số lượng coins trả về (mặc định: 100)

sortstring

Sắp xếp theo (rank, price, change)

Response:

{
  "coins": [
    {
      "id": 1,
      "name": "Bitcoin",
      "symbol": "BTC",
      "price": 43250.5,
      "change24h": 2.35,
      "marketCap": 850000000000
    }
  ]
}
GET/api/coins/{id}

Lấy thông tin chi tiết của một cryptocurrency

Parameters:

idnumber

ID của coin

Response:

{
  "id": 1,
  "name": "Bitcoin",
  "symbol": "BTC",
  "price": 43250.5,
  "change24h": 2.35,
  "marketCap": 850000000000,
  "volume24h": 25000000000,
  "description": "First decentralized cryptocurrency"
}
GET/api/news

Lấy danh sách tin tức mới nhất

Parameters:

categorystring

Danh mục tin tức

limitnumber

Số lượng bài viết (mặc định: 20)

Response:

{
  "articles": [
    {
      "id": 1,
      "title": "Bitcoin reaches new ATH",
      "content": "Bitcoin price surge...",
      "category": "Bitcoin",
      "publishedAt": "2024-01-15T10:30:00Z"
    }
  ]
}
GET/api/abcoin

Lấy thông tin real-time về ABCoin

Parameters:

Không cần parameters

Response:

{
  "price": 0.002456,
  "change24h": 15.23,
  "marketCap": 245600000,
  "volume24h": 12800000,
  "stakingApy": 15,
  "totalSupply": 100000000000
}

Code Examples

JavaScript

// Fetch all coins
fetch('https://api.abcoin.news/v1/coins')
  .then(response => response.json())
  .then(data => console.log(data));

// Fetch ABCoin data
fetch('https://api.abcoin.news/v1/abcoin')
  .then(response => response.json())
  .then(data => console.log(data));

Python

import requests

# Fetch all coins  
response = requests.get('https://api.abcoin.news/v1/coins')
coins = response.json()

# Fetch specific coin
response = requests.get('https://api.abcoin.news/v1/coins/1') 
coin_data = response.json()

PHP

<?php
// Fetch coins data
$response = file_get_contents('https://api.abcoin.news/v1/coins');
$coins = json_decode($response, true);

// Fetch ABCoin data
$response = file_get_contents('https://api.abcoin.news/v1/abcoin');
$abcoin = json_decode($response, true);
?>

API Key & Rate Limits

Free Tier:

  • 1,000 requests/day
  • Không cần API key
  • Tất cả endpoints cơ bản

Pro Tier:

  • 100,000 requests/day
  • Websocket real-time
  • Advanced analytics

Bắt đầu sử dụng API ngay hôm nay

Tích hợp dữ liệu cryptocurrency và ABCoin vào ứng dụng của bạn. Miễn phí và dễ sử dụng.