{"__v":26,"_id":"572c304373c5671700a7abef","category":{"__v":0,"_id":"572c301e7c8eff0e00aaa174","project":"571f5e8cd8667f0e00a3c498","version":"571f5e8cd8667f0e00a3c49b","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-05-06T05:48:14.616Z","from_sync":false,"order":8,"slug":"fundraising-page-json-api","title":"FundraisingPage JSON-API"},"parentDoc":null,"project":"571f5e8cd8667f0e00a3c498","user":"5720ba18c669e80e00c35051","version":{"__v":12,"_id":"571f5e8cd8667f0e00a3c49b","hasDoc":true,"hasReference":true,"project":"571f5e8cd8667f0e00a3c498","createdAt":"2016-04-26T12:26:52.312Z","releaseDate":"2016-04-26T12:26:52.312Z","categories":["571f5e8cd8667f0e00a3c49c","571f73cfcb4baa0e00d13a80","571f7451cb4baa0e00d13a88","571f7d2720695f3400f38797","571f7fb0ac2a080e0014c661","571f884be54f2d0e003ebb0a","572200c9ecb38d0e00d80ebd","572c301e7c8eff0e00aaa174","57df91b2c6348d0e0020c452","57e104db9ff1e21900a721ab","57fd04caeaa77f19008b8202","5899c7113514ce0f0014da84"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-06T05:48:51.417Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"You can retrieve the public fundraising page data as JSON via a given url. Thus you are able to render the fundraising pages very flexible at your own. For example you can read the JSON data by using JavaScript and create HTML according to the retrieved JSON data.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"JSON url\"\n}\n[/block]\nYou can find the JSON url at the fundraising page add on configuration at „Settings“. Please select a fundraising page tool first. The JSON url of the choosen fundraising page tool is shown at „JSON address“. Here you can define some filters and sortings to finally get the JSON url at the end of the page.\n\nThe url looks like this:\n[https://secure.fundraisingbox.com/pages_list/abc.json?count=12&show_expired=0](#) \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"JSON data\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"[\\n\\t{\\n  \\t\\\"domain\\\": \\\"xyz\\\",\\n    \\\"title\\\": \\\"Running for world peace\\\",\\n    \\\"fundraiser_name\\\": \\\"John Doo\\\",\\n    \\\"description\\\": \\\"Dear friends, I will run for world peace.\\\",\\n    \\\"donation_message\\\": \\\"Thank you for your support\\\",\\n    \\\"has_image\\\": true,\\n    \\\"image_url\\\": \\\"https://secure.fundraisingbox.com/pages/getImage/type/page/domain/xyz/123.jpg\\\",\\n    \\\"link\\\": \\\"https://www.example.com/my-fundraising-pages?cfd=xyz\\\",\\n    \\\"json_link\\\": \\\"https://secure.fundraisingbox.com/pages_render/abc/xyz.json\\\",\\n    \\\"payment_link\\\": \\\"https://www.example.com/my-fundraising-pages?cfs=p&cfd=xyz#cff\\\",\\n    \\\"expires_at\\\": \\\"2016-06-25\\\",\\n    \\\"days_left\\\": 36,\\n    \\\"project_name\\\": \\\"\\\",\\n    \\\"category\\\": \\\"creative\\\",\\n    \\\"status\\\": \\\"preferred\\\",\\n    \\\"goal\\\": 1000,\\n    \\\"received\\\": 230,\\n    \\\"received_percentage\\\": 23,\\n    \\\"donation_count\\\": 2,\\n    \\\"donations\\\": [ \\n      {\\n        \\\"date\\\": \\\"2016-04-04 10:33:43\\\",\\n        \\\"amount\\\": 30,\\n        \\\"public_name\\\": \\\"Tim\\\",\\n        \\\"public_message\\\": \\\"Good job, dude!\\\"\\n      },\\n      {\\n        \\\"date\\\": \\\"2016-05-01 20:11:42\\\",\\n        \\\"amount\\\": 200,\\n        \\\"public_name\\\": \\\"Your mum\\\",\\n        \\\"public_message\\\": \\\"Go for it, Johnny!\\\"\\n      }\\n    ]\\n  },\\n  {\\n    ...\\n  }\\n]\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nIn the list of fundraising pages every single page has it's own json_link. With this link you can retrieve the data from this page only.","excerpt":"Retrieve fundraising page data as JSON","slug":"fundraising-page-json-api","type":"basic","title":"FundraisingPage JSON-API"}

FundraisingPage JSON-API

Retrieve fundraising page data as JSON

You can retrieve the public fundraising page data as JSON via a given url. Thus you are able to render the fundraising pages very flexible at your own. For example you can read the JSON data by using JavaScript and create HTML according to the retrieved JSON data. [block:api-header] { "type": "basic", "title": "JSON url" } [/block] You can find the JSON url at the fundraising page add on configuration at „Settings“. Please select a fundraising page tool first. The JSON url of the choosen fundraising page tool is shown at „JSON address“. Here you can define some filters and sortings to finally get the JSON url at the end of the page. The url looks like this: [https://secure.fundraisingbox.com/pages_list/abc.json?count=12&show_expired=0](#) [block:api-header] { "type": "basic", "title": "JSON data" } [/block] [block:code] { "codes": [ { "code": "[\n\t{\n \t\"domain\": \"xyz\",\n \"title\": \"Running for world peace\",\n \"fundraiser_name\": \"John Doo\",\n \"description\": \"Dear friends, I will run for world peace.\",\n \"donation_message\": \"Thank you for your support\",\n \"has_image\": true,\n \"image_url\": \"https://secure.fundraisingbox.com/pages/getImage/type/page/domain/xyz/123.jpg\",\n \"link\": \"https://www.example.com/my-fundraising-pages?cfd=xyz\",\n \"json_link\": \"https://secure.fundraisingbox.com/pages_render/abc/xyz.json\",\n \"payment_link\": \"https://www.example.com/my-fundraising-pages?cfs=p&cfd=xyz#cff\",\n \"expires_at\": \"2016-06-25\",\n \"days_left\": 36,\n \"project_name\": \"\",\n \"category\": \"creative\",\n \"status\": \"preferred\",\n \"goal\": 1000,\n \"received\": 230,\n \"received_percentage\": 23,\n \"donation_count\": 2,\n \"donations\": [ \n {\n \"date\": \"2016-04-04 10:33:43\",\n \"amount\": 30,\n \"public_name\": \"Tim\",\n \"public_message\": \"Good job, dude!\"\n },\n {\n \"date\": \"2016-05-01 20:11:42\",\n \"amount\": 200,\n \"public_name\": \"Your mum\",\n \"public_message\": \"Go for it, Johnny!\"\n }\n ]\n },\n {\n ...\n }\n]", "language": "json" } ] } [/block] In the list of fundraising pages every single page has it's own json_link. With this link you can retrieve the data from this page only.