Skip to main content

The Consensus API

Written by Allison Elechko

The Consensus API lets you integrate Consensus search directly into your own applications, tools, and workflows. Use it to programmatically search academic research and retrieve relevant papers without needing to run each search manually in Consensus.

API access is available directly from your Consensus account. Your API usage and Consensus MCP usage share the same monthly pool of calls. The number of calls included each month depends on your subscription tier.

For full technical documentation, endpoints, parameters, and response details, read our API docs here.


How to create an API key

You can create and manage API keys from the API & MCP Dashboard.

  1. Click your profile icon (bottom-left corner)

  2. Open the 'Keys and Clients' tab

  3. Click 'New API key'

  4. Give your API key a name so you can identify what you're using it for

  5. Create the key and copy it somewhere secure

Your full API key is only shown once. Make sure you copy it when you create it.

If you lose an API key, you won't be able to view it again. Instead, revoke the existing key and create a new one.


Make your first API request

Once you've created an API key, you can use it to authenticate requests to the Consensus API.

To make a search request, you'll need three things:

  1. The Consensus search endpoint: https://api.consensus.app/v1/search

  2. Your API key, passed in the x-api-key request header

  3. A query parameter containing what you want to search for

For example, if you want to search for research on whether creatine improves muscle strength, your request would send that question as the query to the Consensus search endpoint.

If you're using a tool such as Postman, a programming language, or another application to make the request, add your Consensus API key as an x-api-key header.

The API also supports filters that can help narrow your research, including publication date, study type, sample size, citation count, journal, academic field, country, open-access status, and more.

For request examples and a full list of available parameters and responses, see the Consensus API Reference.


API and MCP usage limits

API and MCP usage share one monthly pool of calls.

For example, if your plan includes 250 calls and you use 100 calls through the API, you have 150 included calls remaining for use across both the API and MCP.

Plan

Included calls per month

Maximum calls with additional usage ($0.10/call)

Free

30

30 - (no overage)

Pro

250

1,000

Team

250

1,000

Enterprise

250

1,000

Deep

1,000

10,000

Additional usage costs $0.10 per call after you've used the calls included in your plan.

Your usage resets on the 1st of each month.


How to view your API and MCP usage

To see your current usage:

  1. Click your profile icon in the bottom-left corner

  2. Select API & MCP Dashboard

At the top of the dashboard, you'll see:

  • Your current usage

  • Any amount due for additional usage

  • Your current plan and reset date

The usage bar shows both the number of calls included in your plan and your total monthly call limit.

The usage graph shows how your calls are split between API and MCP. You can view your usage for the last 7 days, last 30 days, or your current billing period.


How to manage your API keys and MCP clients

The Keys and Clients tab is where you manage both your API keys and MCP connections.

  • API keys: you can create and revoke API keys

  • MCP clients: you can connect Consensus to supported clients such as ChatGPT or Claude. If you've already connected a client, you'll see it here.


How to enable additional usage

Additional usage lets paid users continue making API and MCP calls after using all of the calls included in their plan.

Additional usage is turned off by default.

To enable it:

  1. Open the API & MCP Dashboard

  2. Select the settings control in the upper-right corner

  3. Under API & MCP settings, turn on Enable additional usage

  4. Save your changes

Once enabled, calls beyond your plan's included amount are billed at $0.10 per call, up to your plan's maximum monthly call limit.

You can turn additional usage off at any time. If you turn it off after you've already exceeded your included calls, you won't be able to make any more API or MCP calls until your usage resets. You'll still be billed for any additional calls made before you turned additional usage off.

Free users cannot enable additional usage. To access additional usage, upgrade to a paid plan.


Common API errors

Error message

Cause

Fix

401 - Invalid authentication credentials

The API key is incorrect, revoked, or isn't being sent using the required header.

Confirm you're using the correct API key in the x-api-key header. If you've lost the key, revoke it in the API & MCP Dashboard and create a new one.

402 - Billing past due

Your subscription is past due, usually because a payment failed. API and MCP calls are paused until the billing issue is resolved.

Update your payment method and resolve the outstanding payment to restore access.

429 - You've used all included {30, 250, etc.} searches this month. Resets on {date}.

You've used all of the calls included in your plan.

Paid users can enable additional usage from the API & MCP Dashboard, if they haven't reached their plan's maximum monthly call limit. Otherwise, wait until the reset date shown in the error message.

429 - Too many requests

Requests are being sent faster than the current rate limit of one request per second.

Slow down your requests and try again.


Keep your API key secure

Treat your API key like a password.

Don't share it publicly or include it in publicly accessible client-side code, public repositories, screenshots, or other places where someone else could access it.

If you believe a key has been exposed, revoke it from the API & MCP Dashboard and create a new one.

You can manage your API keys, monitor API and MCP usage, review billing, and change your additional usage settings at any time from the API & MCP Dashboard.


FAQs

Where can I see my API/MCP billing history?

  • Go to the API & MCP Dashboard, then click the Billing History tab.

Do API and MCP have separate usage limits?

  • No, your monthly usage limit is shared across API and MCP.

What happens if I lose my API key?

  • You won't be able to view the key again. Revoke the lost key and create a new one from the 'Keys and Clients' tab.

Did this answer your question?