Overview

Welcome to the Memory Social Graph API. This API lets you retrieve a Twitter user’s followers and following accounts and top tweets by handle. Data is fetched asynchronously, initial requests may return partial results as the fetch progresses. Once complete, the data is cached for instant access on future calls, along with a timestamp showing when it was last updated.

OpenAPI Specification

We use an OpenAPI (3.1) file to document the Memory Protocol API. This specification includes endpoint definitions, parameters, request/response examples, and authentication requirements.

Key details from the spec:

  • Title: Memory Social Graph API (v1.0.0)
  • Description: Generated from our OpenAPI specification
  • Server: https://graph.memoryproto.co
  • Authentication: Bearer token
  • Primary Endpoints:
    • /twitter/{username}
    • /twitter/{username}/followers
    • /twitter/{username}/following
    • /twitter/{username}/top-tweets
    • /twitter/tweet/{id}
    • /credits

To learn more, or to integrate this spec into your own tooling, visit the link below.

Memory Social Graph OpenAPI Spec

View the OpenAPI specification file

Authentication

All endpoints require a Bearer token for authentication. You can register for an API key at the Memory developer dashboard. Once you have your token:

  1. Include it in an Authorization header as Bearer <your_token>.
  2. Make requests to any of the endpoints documented in our spec.