Cointime
API

World's leading open service platform for blockchain news and information

Cointime API is a news data open service provided by the world's leading blockchain news and information platform. We provide comprehensive content on global blockchain industry news, market data, research reports, trend analysis, etc. to any user for free. We work hand in hand with practitioners to contribute to the advancement of the global blockchain industry. Articles: Massive content, free access; Flash news: 7x24-hour news, synchronized in real-time.

posts
Insight
Massive information, direct access at high speed.
posts
Flash News
24/7 news, fast and real-time.

OpenAPI URL


  $openapi_url = 'https://openapi.cointime.com';
              

Get access token

Request URI:

/gen_token

Params:

key: secret key by apply

Request example:(Use the GET method)


  $ curl -X GET 'https://openapi.cointime.com/gen_token?key=Ijju3cNJunL35dccLXficGoYdYqsHxOh';
              

Response Examples:


  // The access token is valid for 24 hours.
  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJrZXkiOiJhYmNkZWYxMjM0NTYiLCJleHAiOjE2OTUzNzA3MjR9.rSpxUjiAquJuwPuVqrVrPqBJCij5YrObbTbHbs_JI0U
              

Get the list of articles

Request URI:

/openapi/news

Header params:

X-Language: en contents of the language, default en.("en" => English "zh_cn" => Chinese "ja" => Japanese "ko" => Korean "vi" => Vietnamese "th" => Thai)

Authorization:{token} access token.(required)

Query params:(no required)

limit: item number.

start_after_id: Start getting from which one.

keyword: search keyword

page: page number.(only for search)

Request Example:(Use the GET method)


  $ curl -X GET \
    -H 'Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJrZXkiOiJhYmNkZWYxMjM0NTYiLCJleHAiOjE2OTUzNzA3MjR9.rSpxUjiAquJuwPuVqrVrPqBJCij5YrObbTbHbs_JI0U' \
    -H 'X-Language: en' \
    'https://openapi.cointime.com/openapi/news?limit=1&start_after_id=0&keyword=bitcoin&page=1'
              

Response Example:


  {
    "data": {
      "list": [
        {
          "id": 28954,
          "title": "Re-understanding DePIN: An Entity Theory Perspective",
          "description": "In the past, we started discussing the development history of DePIN from Bitcoin, but after Ethereum converted to PoS, the entire encryption world has become extremely fragmented.",
          "pub_date": 1695215888,
          "link": "https://www.cointime.com/news/re-92863",
          "media": "https://img.cointime.com/builder/YTLS9UUjmyAXN6YC2iappJumcAhT29a2tVJiBgHB.png",
          "content": "..."
        }
      ],
      "last_id": 28954
    },
    "code": 0,
    "message": ""
  }
              

Get the category list of flash news

Request URI:

/openapi/flash_news/categories

Header params:

X-Language: en contents of the language, default en.("en" => English "zh_cn" => Chinese "ja" => Japanese "ko" => Korean "vi" => Vietnamese "th" => Thai)

Authorization:{token} access token.(required)

Request Example:(Use the GET method)


  $ curl -X GET \
    -H 'Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJrZXkiOiJhYmNkZWYxMjM0NTYiLCJleHAiOjE2OTUzNzA3MjR9.rSpxUjiAquJuwPuVqrVrPqBJCij5YrObbTbHbs_JI0U' \
    -H 'X-Language: en' \
    'https://openapi.cointime.com/openapi/flash_news/categories'
              

Response Examples:


    {
      "data": {
        "list": [
          {
            "id": 0,
            "name": "All",
            "type": "flash_news"
          },
          {
            "id": 5,
            "name": "Financing",
            "type": "flash_news"
          },
          ...
        ]
      },
      "code": 0,
      "message": ""
    }
              

Get the list of flash news

Request URI:

/openapi/flash_news

Header params:

X-Language: en contents of the language, default en.("en" => English "zh_cn" => Chinese "ja" => Japanese "ko" => Korean "vi" => Vietnamese "th" => Thai)

Authorization:{token} access token.(required)

Query params:(no required)

category_id: id in category list.

limit: item number.

start_after_id: Start getting from which one.

keyword: search keyword

page: page number.(only for search)

Request Example:(Use the GET method)


  $ curl -X GET \
    -H 'Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJrZXkiOiJhYmNkZWYxMjM0NTYiLCJleHAiOjE2OTUzNzA3MjR9.rSpxUjiAquJuwPuVqrVrPqBJCij5YrObbTbHbs_JI0U' \
    -H 'X-Language: en' \
    'https://openapi.cointime.com/openapi/flash_news?category_id=5&limit=1&start_after_id=0&keyword=bitcoin&page=1'
              

Response Examples:


  {
    "data": {
      "list": [
        {
          "id": 159919,
          "title": "Former Alameda employee: Bitcoin on Binance.US fell 87% in 2021 due to Alameda traders’ operational errors",
          "description": "A former employee of Alameda named Baradwaj claimed that a trader at the company mistakenly entered the wrong decimal point, causing Bitcoin to plummet by 87% on Binance.US in 2021. On October 21, 2021, Bitcoin traders on Binance.US experienced a sudden drop in just a few minutes, while other Bitcoin markets were operating normally. Bitcoin's price fell from around $65,760 to a low of $8,200 at 11:34 UTC (7:34 am Eastern Time), before quickly rebounding to its previous level. \nAt the time, a spokesperson for Binance.US said that the crash was caused by an error in their \"institutional trader\" trading system. The true identity of the investor is still a mystery, but Baradwaj, a former employee of Alameda Research, has recently tweeted that Alameda may be the cause of the disaster. Baradwaj claimed that although most Alameda trades were executed using algorithms, sometimes traders could manually place orders during market fluctuations or take advantage of profit opportunities, which is why the obvious mistake occurred. \nBaradwaj wrote on Twitter that the trader attempted to sell a batch of BTC based on this news and placed an order through our manual trading system. They ignored several spaces after the decimal point and sold Bitcoin at an extremely low price instead of the market price at the time.",
          "pub_date": 1695283440,
          "link": "https://www.cointime.com/flash-news/former-alameda-employee-12324",
          "content": "<p class="ct-content-paragraph">A former employee of Alameda named Baradwaj claimed that a trader at the company mistakenly entered the wrong decimal point, causing Bitcoin to plummet by 87% on Binance.US in 2021. On October 21, 2021, Bitcoin traders on Binance.US experienced a sudden drop in just a few minutes, while other Bitcoin markets were operating normally. Bitcoin's price fell from around $65,760 to a low of $8,200 at 11:34 UTC (7:34 am Eastern Time), before quickly rebounding to its previous level.
          At the time, a spokesperson for Binance.US said that the crash was caused by an error in their "institutional trader" trading system. The true identity of the investor is still a mystery, but Baradwaj, a former employee of Alameda Research, has recently tweeted that Alameda may be the cause of the disaster. Baradwaj claimed that although most Alameda trades were executed using algorithms, sometimes traders could manually place orders during market fluctuations or take advantage of profit opportunities, which is why the obvious mistake occurred.
          Baradwaj wrote on Twitter that the trader attempted to sell a batch of BTC based on this news and placed an order through our manual trading system. They ignored several spaces after the decimal point and sold Bitcoin at an extremely low price instead of the market price at the time.</p>"
        }
      ],
      "last_id": 159919
    },
    "code": 0,
    "message": ""
  }