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": ""
  }