Weather Data Checker API

API Endpoint Specifications

  • Endpoint Path: /api/1/weatherdata-generator
  • Type of Data: JSON & 20/minute
  • Data Source: Weather Data
  • Request Limit: 500 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Weather Data Checker API Endpoint Basic Info

API Endpoint Path

required

Real Time Weather Checker API

api/1/weather


Call Method

Required

GET

Type of Data Return

JSON

Output structured JSON data on real time weather


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Free and paid subscription APIs are both available: /api/1/weather, and accessible to on-site APP on /app/1/weatherdata-generator as well

typeofData

required

Select the data type. Options are forecast15days, historicalData

latitude

required

Input a country latitude

longitude

required

Input a country longitude

startdate

required

Enter the start date

enddate

required

Enter the end date

location

required

Enter a location, such as Tokyo, Hong Kong, Guangzhou etc


language

Optional

FALSE


Real Time Weather Checker API

api/1/weather


Code Integration and Response

Python Code Sample


import requests

apiendpoint = "https://api.buyfromlo.com/api/1/weather?"

## Required Arguments & Parameters ##
token = "your buyfromlo token"
typeofData = "Input a type of weather data"
language = ""
location=""
latitude = ""
longitude = ""
startdate = ""
enddate = ""

data="latitude=" + latitude + "&longitude=" + longitude + "&startdate=" + startdate + "&enddate=" + enddate +"&typeofData=" + typeofData + "&location=" + location
headers={"Authorization": "Bearer " + token}  

## Call the api ##'&
response = requests.get(apiendpoint + data, headers=headers)
print(response.status_code)
print(response.json())
                        

JSON Response Sample


{
    "Weather data"
}