Skip to content

Reddit and X data in ChatGPT

ChatGPT's custom MCP connectors accept only OAuth or no sign-in. ChatterAPI's MCP server needs an API key, so the connector route doesn't work today. A custom GPT does: import our OpenAPI file as an Action, set API key auth, and the GPT can call the REST API.

REST base URLhttps://api.chatterapi.com/v1

What you get

  • A custom GPT that searches Reddit and X, reads threads and looks up users through the REST API.
  • The same endpoints and credit costs as any other client, from one balance.
  • No Reddit or X developer account.

Set it up

  1. Create an API key

    Sign in at chatterapi.com/signup with Google and create a key on the Keys page. You get 100 free credits. A ca_test_ key returns recorded samples for 0 credits, which helps while you set things up.

  2. Create a GPT and add an Action

    In the GPT editor, open Configure, then Create new action. Import the schema from our OpenAPI file, which lists every endpoint and its parameters.

    OpenAPI schema URL
    https://api.chatterapi.com/openapi.json
  3. Set authentication

    Choose API Key, set the auth type to Bearer and paste your key. ChatGPT then sends Authorization: Bearer with each call. The option names in the editor can change, so check them there.

  4. Test the key outside ChatGPT

    If the GPT can't connect, check the key with a free call. It returns your balance and costs 0 credits.

    terminal
    curl "https://api.chatterapi.com/v1/account" \
      -H "Authorization: Bearer $CHATTERAPI_KEY"

What a call returns

A comment search through the Action returns JSON like this, from a real recorded call.

curl "https://api.chatterapi.com/v1/reddit/comments/search?q=gummysearch+alternative" \
  -H "Authorization: Bearer $CHATTERAPI_KEY"
response, first 2 rows
{
  "data": [
    {
      "id": "j01f68f",
      "fullname": "t1_j01f68f",
      "parentId": null,
      "postId": "zk2soo",
      "postTitle": "I think quite a lot of people in this subreddit ARE entrepreneurs",
      "author": "esoemah",
      "body": "I know the guy already answered your question, but I’d like to offer an alternative that you could consider as well: social listening. Basically, you’d monitor social media for any mentions of keywords relevant to your b…",
      "bodyTruncated": false,
      "score": 2,
      "subreddit": "Entrepreneur",
      "permalink": "/r/Entrepreneur/comments/zk2soo/i_think_quite_a_lot_of_people_in_this_subreddit/j01f68f/",
      "url": "https://www.reddit.com/r/Entrepreneur/comments/zk2soo/i_think_quite_a_lot_of_people_in_this_subreddit/j01f68f/",
      "createdAt": "2022-12-13T11:30:40.000Z"
    },
    {
      "id": "le642mq",
      "fullname": "t1_le642mq",
      "parentId": null,
      "postId": "1e86dz5",
      "postTitle": "[NBA] LeBron and Curry in the tunnel following the win: Lebron - \"To be honest I like those ones more than the blowouts...I like being tested baby.\" Curry - \"Put the closer on.\"",
      "author": "EyePlay",
      "body": "The sub is just bigger and Silver has turned the NBA into the social media consumed sport. Unless you want to talk hoops on twitter, reddit has become the main NBA hub over the last ten years. People who consume the NBA …",
      "bodyTruncated": false,
      "score": 6,
      "subreddit": "nba",
      "permalink": "/r/nba/comments/1e86dz5/nba_lebron_and_curry_in_the_tunnel_following_the/le642mq/",
      "url": "https://www.reddit.com/r/nba/comments/1e86dz5/nba_lebron_and_curry_in_the_tunnel_following_the/le642mq/",
      "createdAt": "2024-07-21T02:10:00.000Z"
    }
  ],
  "page": {
    "nextCursor": "AUod…",
    "hasMore": true
  }
}

Recorded from a live call on . Long text is shortened and the cursor is cut. A live key is charged 2 credits for this call. A test key returns this same sample for 0 credits.

Limits worth knowing

  • ChatGPT's apps and connectors can't present custom API keys, so you can't add a key-only MCP server as an authenticated connector. source
  • GPT Actions support None, API Key or OAuth authentication. source
  • Actions time out after 45 seconds round trip, and requests and responses must each stay under 100,000 characters. Pass a small limit. source
  • Actions don't support custom headers beyond the authentication you set. source
  • If OpenAI adds API key support to MCP connectors, the hosted MCP server will work there too. Until then, use the Action route.

Last checked . Sources: OpenAI: authentication for apps, GPT Actions authentication, GPT Actions in production.

Questions

Can I add ChatterAPI as a ChatGPT connector?
Not today. ChatGPT's custom MCP connectors accept OAuth or no sign-in, and our MCP server uses an API key. A custom GPT with an Action works instead.
Which plan do I need?
Whether you can create custom GPTs depends on your ChatGPT plan. OpenAI's help center has the current list.
Is ChatterAPI part of Reddit or X?
No. ChatterAPI is independent and not affiliated with Reddit, Inc. or X Corp.

What people build with it

AI coding and chat clients

Give your agent Reddit and X data

Sign up and get 100 free credits. No card required.