API Returning Cloudflare Challenge

I just started getting a Cloudflare Challenge when requesting my campaign info at this route:
https://api.patreon.com/campaigns/716070/posts

The response I get is this:

<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Attention Required! | Cloudflare</title>
<meta name="captcha-bypass" id="captcha-bypass" />
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
<style type="text/css">body{margin:0;padding:0}</style>


<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/zepto.min.js"></script><!--<![endif]-->
<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/cf.common.js"></script><!--<![endif]-->

My app makes a request to this url to provide a link to my latest post. Is this normal? Do I now need to include an API key with the request?

1 Like

Hi! Unfortunately, that’s not a valid Patreon API endpoint. That endpoint is part is part of our internal API and we make no guarantees about it’s availability to the public.

Our official API endpoints are documented here: https://docs.patreon.com/#introduction

1 Like

Ok, thanks, that helps. I’ll update my app to use the correct endpoint. This did cause some downtime for my app this morning until I could deploy a workaround. The issue was mostly my fault, because the app couldn’t tolerate repeated failed requests against that endpoint.

Hi @phildini,

I’ve been looking at the API documentation and scratching my head, because there doesn’t seem to be any way for me to retrieve campaign post info. This is a huge problem for me if it’s not currently supported, because being able to display the title of my latest post is an extremely important part of my Patron acquisition strategy. The endpoint I described was working until now. Am I missing some supported way to retrieve post data?

Thanks!