Skip to content
Muhammad Irfani edited this page Jan 13, 2024 · 1 revision

Climate Aware API Documentation

Overview

Welcome to the Climate Aware API documentation for developers. This API provides access to climate-related news data, enabling developers to integrate up-to-date climate news into their applications. The API is hosted at api.climate-aware.muhammadirfani.dev.

Getting Started

To retrieve climate news from the API, you can make a GET request to the following endpoint:

GET https://api.climate-aware.muhammadirfani.dev/api/climate-news

Example

curl https://api.climate-aware.muhammadirfani.dev/api/climate-news

This will return a list of climate-related news articles in JSON format.

Generating News

Authentication

Authentication is not currently required for accessing the climate news API. However, this may change in the future. Keep an eye on updates to the documentation for any changes.

Response Format

All responses from the API are in JSON format. Below is a sample response for the climate news endpoint:

"data": [
    {
      "title": "'Talk About Snowflakes': Whoopi Goldberg Slams Jesse Watters' Bonkers Taylor Swift Theory",
      "description": "\"I'm tired of dumb people,\" said \"The View\" co-host of the Fox News personality's suggestion about the pop superstar.",
      "url": "https://www.huffpost.com/entry/whoopi-goldberg-jesse-watters-taylor-swift-conspiracy-theory_n_65a0ed81e4b0fbd2bc063e93",
      "published_at": "2024-01-12 09:33:56",
      "image_url": "https://img.huffingtonpost.com/asset/65a103cf2200001d00fb0014.jpg?cache=EzeXznM4Cj&ops=1200_630"
    },

Error Handling

Rate Limits

To ensure fair usage, there might be rate limits imposed on the API. Developers should be mindful of these limits and design their applications accordingly. If you require higher rate limits, please contact the API administrator.

Support and Contact

API Administrator: [email protected] Front-end: Backend:

Thank you for contributing to a climate-aware world!