Klarda News API Quickstart

This guide will help new developers understand how to use the News API to retrieve the latest and top news articles. You can query news data using popular HTTP clients such as fetch or axios.

News API Definition

The Klarda News API is a robust collection of endpoints that offer real-time access to the latest news and top news articles across various sources. This API is designed to help developers integrate current events and trending news topics into their applications. By using the News API, users can stay informed about significant events and trends that impact the blockchain and financial markets, allowing them to provide timely and relevant information to their audiences.

News API Endpoint

With the News API, you can easily request the latest news articles or top news from various sources. Klarda currently supports the following News API Endpoints:

  • Get Latest News:
    Retrieves the most recent news articles from specified sources.

    Endpoint: GET /api/v1/news/latest

    Parameters:

    • source_name (string): The name of the news source.
    • page (int, default: 1): The page number for pagination.
    • limit (int, default: 10): The number of news articles to return per page.
  • Get Top News:
    Fetches the top news articles from specified sources.

    Endpoint: GET /api/v1/news/top

    Parameters:

    • source_name (string): The name of the news source.
    • page (int, default: 1): The page number for pagination.
    • limit (int, default: 10): The number of top news articles to return per page.

Example Use Cases

1. Displaying Latest News:
You can use the "Get Latest News" endpoint to display the most recent news articles on your application or website. This can be useful for news aggregators, blogs, and information portals.

2. Highlighting Top News:
The "Get Top News" endpoint allows you to highlight the most important news articles from specified sources. This is beneficial for users who want to stay informed about the most significant events and stories.

We hope this quickstart guide helps you get started with the Klarda News API. For more detailed information, please refer to the full API documentation.