="crowdtangle-api.html#api-access-in-r-1" class="anchor-section" aria-label="Anchor link to header"></a></h2>
<ul>
<li><em>How can we access the API from R (httr + other packages)?</em></li>
</ul>
<p>Instead of typing the API request into our browser, we can use the httr package’s GET function to access the API from R.</p>
<div class="sourceCode" id="cb20"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb20-1"><a href="crowdtangle-api.html#cb20-1" tabindex="-1"></a><span class="co"># Optio