Need to integrate REST APIs (endpoints) for fetching Canadian Weather Station Data.

13 views
Skip to first unread message

Mehtab Khan

unread,
Dec 13, 2022, 3:50:43 PM12/13/22
to CKAN Development Discussions, sh...@allcanadiangrain.com
Hi CKAN Team,

We want to integrate CKAN REST APIs to fetch Canadian Weather Station Data as per the URL: https://climate.weather.gc.ca/ 
This is the data that we are looking for: Sample Data

We have already gone through CKAN's available document URL: https://docs.ckan.org/en/2.8/api/index.html#get-able-api-functions

But we don't have any endpoints for integration. 

How can we get access to CKAN endpoints?
Can you tell us the endpoints, so that we could complete the integration?

Thanks
Mehtab Khan

Chris Wood

unread,
Dec 13, 2022, 4:00:20 PM12/13/22
to Mehtab Khan, CKAN Development Discussions, sh...@allcanadiangrain.com
Hi Mehtab,

Are you asking what the endpoint to query the Canadian Weather Station Data is? If so, are you sure that website is a CKAN instance? If it was, I'd expect https://climate.weather.gc.ca/api/3/action/status_show to return a JSON object (https://docs.ckan.org/en/2.9/api/#ckan.logic.action.get.task_status_show). Given it returns 404, I imagine that it's not a CKAN site.

Chris 

--
ckan-dev mailing list
ckan...@ckan.org
https://groups.google.com/a/ckan.org/forum/#!forum/ckan-dev
Unsubscribe: send an email to ckan-dev+u...@ckan.org
---
To unsubscribe from this group and stop receiving emails from it, send an email to ckan-dev+u...@ckan.org.

Mehtab Khan

unread,
Dec 13, 2022, 4:06:00 PM12/13/22
to CKAN Development Discussions, c.c....@gmail.com, CKAN Development Discussions, sh...@allcanadiangrain.com, Mehtab Khan
Hi Chris,
we are looking for Canadian weather Station data, we have gone through this URL: https://open.canada.ca/en/access-our-application-programming-interface-api and come to know we have can integrate CKAN REST APIs but we are not able to get those REST APIs for integration. 

Jeskynar

unread,
Dec 13, 2022, 4:51:06 PM12/13/22
to Mehtab Khan, CKAN Development Discussions, sh...@allcanadiangrain.com
Do you need an API?
The page you linked has a CSV download option, and a link to a google drive with scripts for downloading.


On Tue, 13 Dec 2022 at 20:50, 'Mehtab Khan' via CKAN Development Discussions <ckan...@ckan.org> wrote:
--

Mehtab Khan

unread,
Dec 14, 2022, 6:04:19 AM12/14/22
to CKAN Development Discussions, jeskynar, CKAN Development Discussions, sh...@allcanadiangrain.com, Mehtab Khan
Hi Jeskynar,

We followed this URL: https://open.canada.ca/en/access-our-application-programming-interface-api and come to know that CKAN provides REST APIs for the Canadian Weather Station DATA. But we are not able to find the endpoints that we need to integrate.
We need Canadian Weather station DATA like year and precipitation.

Chris Wood

unread,
Dec 14, 2022, 7:18:02 AM12/14/22
to Mehtab Khan, CKAN Development Discussions, jeskynar, sh...@allcanadiangrain.com
Hi Mehtab,

You are correct, the webpage you've linked to does say that open.canada.ca uses CKAN. However, the climate data you want is not part of open.canada.ca - it is at https://climate.weather.gc.ca/historical_data/search_historic_data_e.html, and is stored in a different registry system.

Chris


Mehtab Khan

unread,
Dec 14, 2022, 7:20:41 AM12/14/22
to CKAN Development Discussions, c.c....@gmail.com, CKAN Development Discussions, jeskynar, sh...@allcanadiangrain.com, Mehtab Khan
Hi Chris,

so how we can get the endpoints for our integration. Is there any reference for the same?

Jeskynar

unread,
Dec 14, 2022, 8:10:03 AM12/14/22
to Mehtab Khan, CKAN Development Discussions, sh...@allcanadiangrain.com
You don't need CKAN endpoints, simply use these scripts

You can also do this on any climate station web page:
image.png

Mehtab Khan

unread,
Dec 14, 2022, 1:13:15 PM12/14/22
to CKAN Development Discussions, jeskynar, CKAN Development Discussions, sh...@allcanadiangrain.com, Mehtab Khan
Hi Jeskynar,

I can download CSV and use but we want to fetch live data, let's suppose, I want to select station A we need to show precipitation for all 12 months.
We read and come to know that CKAN provides such data but we can't find it.
Reply all
Reply to author
Forward
0 new messages