# Patreon API down?

**URL:** <https://www.patreondevelopers.com/t/patreon-api-down/1185>\
**Category:** Uncategorized\
**Created:** [October 5, 2018, 10:50pm UTC](https://www.patreondevelopers.com/t/patreon-api-down/1185 "2018-10-05T22:50:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![law](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@law](https://www.patreondevelopers.com/u/law)\
**Post date:** [October 5, 2018, 10:50pm UTC](https://www.patreondevelopers.com/t/patreon-api-down/1185/1 "2018-10-05T22:50:21Z")

</div>

I was wondering if the Patreon API is currently down. I am getting the following error message when I try to retrieve data with the PHP library:

```
PHP Fatal error: Uncaught Art4\JsonApiClient\Exception\ValidationException:
Unable to parse JSON data: JSON_ERROR_SYNTAX - Syntax error, malformed JSON in Helper.php:180
Manager.php(84): Art4\JsonApiClient\Utils\Helper::decodeJson('<!DOCTYPE HTML>...')
Manager->parse('<!DOCTYPE HTML>...')

```

Edit: It looks like Cloudflare has blocked us.

---

<div class="post-metadata">

**Author:** ![phildini](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/phildini/32/112_2.png) [@phildini](https://www.patreondevelopers.com/u/phildini)\
**Post date:** [October 5, 2018, 11:03pm UTC](https://www.patreondevelopers.com/t/patreon-api-down/1185/2 "2018-10-05T23:03:28Z")

</div>

Hi there! We’re looking into this, sorry for the disruption.

---

<div class="post-metadata">

**Author:** ![law](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@law](https://www.patreondevelopers.com/u/law)\
**Post date:** [October 5, 2018, 11:12pm UTC](https://www.patreondevelopers.com/t/patreon-api-down/1185/3 "2018-10-05T23:12:58Z")

</div>

Hi phildini!

It looks like Cloudflare anti-DDOS was causing the issue for us.

Here’s the exact message that appeared:

Checking your browser before accessing [patreon.com](http://patreon.com).  
This process is automatic. Your browser will redirect to your requested content shortly.  
Please allow up to 5 seconds.

So our script was fetching the Cloudflare page, instead of the actual JSON data. I believe it’s resolved now that we use CURLOPT\_FOLLOWLOCATION to follow the redirect, or maybe you guys solved it.

Either way, thank you for your quick reply.

---

<div class="post-metadata">

**Author:** ![phildini](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/phildini/32/112_2.png) [@phildini](https://www.patreondevelopers.com/u/phildini)\
**Post date:** [October 6, 2018, 12:23am UTC](https://www.patreondevelopers.com/t/patreon-api-down/1185/4 "2018-10-06T00:23:37Z")

</div>

Hey there! I was going to say “it should be fixed now” but I think we broke it again. It should be fixed soon.

---

<div class="post-metadata">

**Author:** ![law](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@law](https://www.patreondevelopers.com/u/law)\
**Post date:** [October 6, 2018, 12:47am UTC](https://www.patreondevelopers.com/t/patreon-api-down/1185/5 "2018-10-06T00:47:13Z")

</div>

It appears to be working again =)  
Thank you!
