Re: Extracting Data

Skip to first unread message
Message has been deleted

william dutton

Jul 8, 2022, 5:25:00 PM7/8/22
to CKAN Development Discussions,
The coming back is in json format, which is why you need to decide it. Then it’s in an object structure and can be read.

For html / js examples you can check out


On Friday, 8 July 2022 at 10:37:37 am UTC+10 wrote:
Newbie, Sorry to ask a stupid question but I have spent weeks researching, trying and failing to extract some data. I am trying to teach my high school students to extract data via API calls via a web page, which I can do for some sources of data but when it comes to CKAN databases I fail. (I can do it in VB.NET but my school wants me to teach HTML/PHP etc)
I can get the data, but how do I extract it into a table or an array of data?
This is the basics of what I have done.

<!doctype html>
<html lang="en">
<title>Camping Sites</title>
$url = '';


curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);



$response = json_decode($result, true);
//var_dump($response); // print array THIS WORKS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Reply all
Reply to author
0 new messages