MemeStack Users API

Public profiles and a user's images and tags. Public, no key.

GitHub OpenAPI

Operations 3

GET /v1/users/{pubkey} Get user profile and stats #
GET /v1/users/{pubkey}/images Get user's images (paginated) #
GET /v1/users/{pubkey}/tags Get user's tags aggregated from their images #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/memestack-ai:memestack-ai-users-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

memestack-ai-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MemeStack Users API
  version: 1.0.0
  description: 'Visual search engine for memes, infographics, charts, and screenshots. Find images by meaning, the text inside them, or visual similarity. AI-captioned, OCR-indexed, Lightning-ranked. Two tiers: the Open API (/v1) needs no key — the read endpoints the website itself uses, rate-limited per IP address; the Search API (/v2, Tenor v2-compatible) takes an API key, free for 100 calls a day, then paid plans (card or Lightning): https://memestack.ai/developers.'
  contact:
    name: MemeStack
    url: https://memestack.ai
  termsOfService: https://memestack.ai/terms
servers:
- url: https://api.memestack.ai
tags:
- name: Users
  description: Public profiles and a user's images and tags. Public, no key.
paths:
  /v1/users/{pubkey}:
    get:
      tags:
      - Users
      summary: Get user profile and stats
      parameters:
      - name: pubkey
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: User profile
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  pubkey:
                    type: string
                  display_name:
                    type: string
                  role:
                    type: string
                  has_avatar:
                    type: boolean
                  upload_count:
                    type: integer
                  total_sats_earned:
                    type: integer
                  created_at:
                    type: string
                    format: date-time
                  tier:
                    type: string
                    enum:
                    - Pleb
                    - Memer
                    - Stacker
                    - Memelord
                    - Admin
                    description: Computed upload tier. Frontend renders this as a colored pill on the user profile page.
                  badges:
                    type: array
                    description: Earned milestone badges — the HIGHEST tier held per track, so at most six entries, in catalog order (uploads, sats_earned, supporter, streak, contests, tenure). Always present; an empty array means none earned. Permanent once awarded. Progress toward the next tier is owner-only and lives on GET /v1/me/badges.
                    items:
                      $ref: '#/components/schemas/EarnedBadge'
        '404':
          description: User not found
      operationId: getV1UsersByPubkey
      x-operation-id-source: derived
  /v1/users/{pubkey}/images:
    get:
      tags:
      - Users
      summary: Get user's images (paginated)
      parameters:
      - name: pubkey
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          default: 20
          maximum: 100
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
      - name: sort_by
        in: query
        schema:
          type: string
          enum:
          - created_at
          - zap_total_sats
          - save_count
          - trending
          default: created_at
        description: Field to sort by
      - name: sort_order
        in: query
        schema:
          type: string
          enum:
          - asc
          - desc
          default: desc
        description: Sort direction
      - name: content
        in: query
        schema:
          type: string
          enum:
          - safe
          - all
          default: safe
        description: 'Safe by default: ''safe'' (the default) excludes images classified controversial, unless the caller IS this user (owners always see their own uploads); ''all'' includes them, each carrying `controversial: true`. Case-insensitive; any other value is 400 INVALID_CONTENT.'
      responses:
        '200':
          description: User's images
          content:
            application/json:
              schema:
                type: object
                properties:
                  images:
                    type: array
                    items:
                      $ref: '#/components/schemas/ImageRecord'
                  total:
                    type: integer
      operationId: getV1UsersByPubkeyImages
      x-operation-id-source: derived
  /v1/users/{pubkey}/tags:
    get:
      tags:
      - Users
      summary: Get user's tags aggregated from their images
      parameters:
      - name: pubkey
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Tags with usage counts
          content:
            application/json:
              schema:
                type: object
                properties:
                  tags:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        count:
                          type: integer
      operationId: getV1UsersByPubkeyTags
      x-operation-id-source: derived
components:
  schemas:
    ImageRights:
      type: object
      description: 'What an integrator may do with an image, from what MemeStack truly knows — `unknown` wherever it knows nothing, never a guess. `publisher` = imported from a licence-clean publisher (Our World in Data, USDA ERS, Eurostat, EEA; `publisher_only=true` returns only these); `creator` = a Verified Creator''s own upload (all rights reserved); `community` = everything else — uploads (including the operators'' own uploads of other people''s memes and charts), Telegram, X and 4chan saves, Imgflip templates, AI-generated and agent-submitted images: MemeStack grants no licence to them. Commercial use is `yes` only for USDA ERS, Eurostat and EEA charts, whose importer admits only the publisher''s own material; Our World in Data is `unknown` because a chart may plot third-party data under its own terms (some non-commercial).'
      required:
      - source
      - publisher
      - license
      - license_name
      - license_url
      - attribution
      - attribution_required
      - commercial_use
      - note
      properties:
        source:
          type: string
          enum:
          - publisher
          - creator
          - community
        publisher:
          type:
          - object
          - 'null'
          description: The publisher of a `publisher` image; null otherwise.
          properties:
            key:
              type: string
              enum:
              - owid
              - usda_ers
              - eurostat
              - eea
            name:
              type: string
        license:
          type:
          - string
          - 'null'
          enum:
          - CC-BY-4.0
          - US-PD
          - all-rights-reserved
          - null
          description: Machine id of the licence; `US-PD` = U.S. federal public domain. Null = MemeStack knows of no licence.
        license_name:
          type:
          - string
          - 'null'
          description: Human label, e.g. "CC BY 4.0".
        license_url:
          type:
          - string
          - 'null'
          format: uri
          description: The licence text, or MemeStack's creator terms for creator work.
        attribution:
          type: string
          description: 'The credit line to show beside the image: for a publisher chart the line its licence asks for; otherwise where the image came from, never who owns it.'
        attribution_required:
          type: boolean
          description: True when the licence or the rights holder requires the credit (publisher charts, creator work).
        commercial_use:
          type: string
          enum:
          - 'yes'
          - 'no'
          - unknown
        note:
          type:
          - string
          - 'null'
          description: The one condition or caveat that changes what you may do (e.g. CC BY's notice of MemeStack's changes, or OWID's third-party data), or null.
      example:
        source: publisher
        publisher:
          key: usda_ers
          name: USDA Economic Research Service
        license: US-PD
        license_name: Public domain (U.S. federal work)
        license_url: https://www.usa.gov/government-copyright
        attribution: 'Source: USDA Economic Research Service'
        attribution_required: true
        commercial_use: 'yes'
        note: null
    ScoredTag:
      type: object
      description: One tag on an image. `tag` is the slug the tag filters take (`tag`, `tags`); controlled-tag slugs join words with underscores (`our_world_in_data`), free-tag slugs with spaces (`life expectancy`).
      properties:
        tag:
          type: string
          description: The tag's slug.
        name:
          type: string
          description: The tag's display name.
        score:
          type: integer
          minimum: 1
          maximum: 10
          description: How prominent the tag is in the image, 1 to 10.
      required:
      - tag
      - score
      example:
        tag: life expectancy
        name: Life Expectancy
        score: 10
    EarnedBadge:
      type: object
      description: One milestone badge a user holds. Earned once and permanent — there is no revocation path.
      properties:
        badge_key:
          type: string
          description: '`{track}_{tier name}`, e.g. `uploads_silver`. Unique per user.'
          example: uploads_silver
        track:
          type: string
          enum:
          - uploads
          - sats_earned
          - supporter
          - streak
          - contests
          - tenure
        tier:
          type: integer
          enum:
          - 1
          - 2
          - 3
          description: 1 bronze, 2 silver, 3 gold.
        earned_at:
          type: string
          format: date-time
          description: When the threshold was crossed. An account merge keeps the EARLIER of two stamps.
      required:
      - badge_key
      - track
      - tier
      - earned_at
    ImageRecord:
      type: object
      properties:
        id:
          type: string
          format: uuid
        uploader_id:
          type: string
        status:
          type: string
          enum:
          - pending
          - approved
          - needs_review
          - rejected
        mime_type:
          type: string
        size:
          type: integer
          description: Bytes of the original upload.
        width:
          type: integer
          description: Width of the ORIGINAL upload, not of the canonical or thumbnail bytes.
        height:
          type: integer
          description: Height of the ORIGINAL upload.
        thumb_width:
          type: integer
        thumb_height:
          type: integer
        caption:
          type: string
          nullable: true
        alt_text:
          type: string
          nullable: true
        tags:
          type: array
          items:
            $ref: '#/components/schemas/ScoredTag'
          nullable: true
          description: Controlled tags — objects, never bare strings.
        free_tags:
          type: array
          items:
            $ref: '#/components/schemas/ScoredTag'
          nullable: true
          description: Free (AI-written) tags — objects, never bare strings. Disjoint from `tags`.
        text_in_image:
          type: string
          nullable: true
          description: The text printed inside the image (OCR).
        meme_template_name:
          type: string
          nullable: true
          description: The meme template the image matched, if any.
        meme_template_id:
          type: string
          format: uuid
          nullable: true
        source_url:
          type: string
          nullable: true
          description: 'Where an imported image came from: a URL for a publisher import (Our World in Data, Eurostat, …), a prefix such as `imgflip:` or `telegram:` otherwise; null for a direct upload.'
        zap_count:
          type: integer
        zap_total_sats:
          type:
          - string
          - integer
          pattern: ^[0-9]+$
          description: Total sats zapped to the image. A 64-bit counter, serialised as a decimal STRING by most routes — parse it, do not assume a JSON number.
        save_count:
          type: integer
        like_count:
          type: integer
        view_count:
          type: integer
          description: Views in the last 30 days.
        view_count_total:
          type: integer
          description: Views older than 30 days; add `view_count` for all recorded views.
        attribution_url:
          type: string
          nullable: true
        attribution_name:
          type: string
          nullable: true
        uploader_display_name:
          type: string
          nullable: true
        uploader_pubkey:
          type: string
          nullable: true
        uploader_has_avatar:
          type: boolean
        uploader_is_creator:
          type: boolean
          description: Whether the uploader is a Verified Creator now.
        uploaded_as_creator:
          type: boolean
          description: Whether the image was uploaded as the uploader's own work.
        uploader_website_url:
          type: string
          nullable: true
          description: The uploader's own website URL — populated only for Verified Creator uploads (null otherwise).
        uploader_accepts_zaps:
          type: boolean
          description: 'Whether the uploader can be zapped: they have a Lightning address on their profile, or they are a system uploader (zaps on imported content go to the platform''s address). Absent when the row was not joined to its uploader; treat absent as enabled.'
        controversial:
          type: boolean
          description: True when the image is classified controversial. Such images appear only with `content=all`.
        is_ai_generated:
          type: boolean
        has_thumbnail:
          type: boolean
        has_canonical:
          type: boolean
          description: False when the original already fits the canonical size, so /canonical serves the original bytes.
        has_social_card:
          type: boolean
        mutation_group_id:
          type: string
          format: uuid
          nullable: true
          description: The variant group of a meme with tracked variants.
        is_dominant:
          type: boolean
          description: Whether this is the variant group's representative image.
        chart:
          $ref: '#/components/schemas/ChartMeta'
          description: Present only when MemeStack holds source metadata for the chart in this image.
        rights:
          $ref: '#/components/schemas/ImageRights'
          description: What you may do with the image, as far as MemeStack knows. On every listing, search, /meta and /batch-meta image.
        image_url:
          type: string
          format: uri
          description: 'The full image: https://api.memestack.ai/v1/images/{id}/canonical. On the image rows of the listings, search, /meta and /batch-meta answered to a non-admin caller. Not on an admin caller''s rows, nor on the compact rows of /v1/images/{id}/similar and /v1/images/{id}/related (build the link from `id` there).'
        thumbnail_url:
          type: string
          format: uri
          description: 'A display-sized thumbnail: https://api.memestack.ai/v1/images/{id}/thumbnail?w=384 (a rendition about 384 px wide where one exists). On the same rows as `image_url`, when the image has a thumbnail (has_thumbnail).'
        page_url:
          type: string
          format: uri
          description: 'The image''s page: https://memestack.ai/gallery/{id}. Link it when you show the image. On the same rows as `image_url`.'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      example:
        id: 1b856382-7fdf-4afd-8f66-ae5972989d6d
        status: approved
        mime_type: image/jpeg
        width: 419
        height: 235
        thumb_width: 419
        thumb_height: 235
        caption: The iconic 'This is Fine' meme featuring a dog sitting calmly in a room engulfed by flames.
        alt_text: A two-panel comic strip showing a dog wearing a hat sitting at a table with a mug. The entire room is on fire with thick smoke at the ceiling. In the second panel, the dog smiles and a speech bubble says, 'THIS IS FINE.'
        tags:
        - tag: meme
          name: Meme
          score: 10
        - tag: cartoon
          name: Cartoon
          score: 10
        - tag: artwork
          name: Artwork
          score: 8
        free_tags:
        - tag: this is fine
          name: This Is Fine
          score: 10
        - tag: kc green
          name: Kc Green
          score: 9
        - tag: dog
          name: Dog
          score: 8
        text_in_image: THIS IS FINE.
        meme_template_name: This is Fine
        source_url: null
        zap_count: 0
        zap_total_sats: '0'
        save_count: 0
        like_count: 0
        controversial: false
        is_ai_generated: false
        has_thumbnail: true
        has_canonical: false
        uploader_display_name: BTC_Boi
        uploaded_as_creator: false
        rights:
          source: community
          publisher: null
          license: null
          license_name: null
          license_url: null
          attribution: Uploaded by BTC_Boi via MemeStack
          attribution_required: false
          commercial_use: unknown
          note: 'MemeStack grants no licence to this image: its rights belong to its owner, who is usually not MemeStack and often not the uploader. The attribution records where it was found, not who owns it.'
        image_url: https://api.memestack.ai/v1/images/1b856382-7fdf-4afd-8f66-ae5972989d6d/canonical
        thumbnail_url: https://api.memestack.ai/v1/images/1b856382-7fdf-4afd-8f66-ae5972989d6d/thumbnail?w=384
        page_url: https://memestack.ai/gallery/1b856382-7fdf-4afd-8f66-ae5972989d6d
        created_at: '2026-05-07T23:53:23.224Z'
        updated_at: '2026-07-17T22:33:04.207Z'
    ChartMeta:
      type: object
      description: Chart metadata for an image (spec 2026-09-19 chart-metadata §2.1, extended by spec 2026-09-25 chart sources §4 for series editions). Present on `/meta` only when MemeStack holds a stored chart-metadata row for the image; every field mirrors packages/shared/src/chart-meta.ts's ChartMetaPublic.
      properties:
        source:
          type: string
          description: The upstream source key, e.g. 'owid', 'usda_ers', 'eurostat', 'eea'.
        provenance:
          type: string
          enum:
          - authoritative
          - extracted
          description: '''authoritative'' when the publisher''s own metadata proved the fields; ''extracted'' when a grounded-LLM pass derived them.'
        title:
          type: string
          nullable: true
        unit:
          type: string
          nullable: true
        regions:
          type: array
          items:
            type: string
        citation_short:
          type: string
          nullable: true
        citation_long:
          type: string
          nullable: true
        source_url:
          type: string
          nullable: true
        dataset_ids:
          type: array
          items:
            type: integer
          description: Upstream indicator ids (e.g. OWID's owidVariableId).
        render_view:
          type: string
          nullable: true
          description: The chart type actually rendered, e.g. 'LineChart', 'map'. Publisher rows carry null (no grapher view).
        coverage_kind:
          type: string
          enum:
          - single_year
          - range
          - unknown
        rendered_period:
          type: object
          nullable: true
          description: A PROVEN period, grounded on the image's own OCR title text. Null when the period could not be proven — never guessed from the dataset's wider history.
          properties:
            start:
              type: integer
            end:
              type: integer
            evidence:
              type: string
              description: The OCR substring the period claim was grounded on.
        dataset_timespan:
          type: object
          nullable: true
          description: The INDICATOR's full history — display only. Never a period claim about what THIS image shows; use rendered_period for that.
          properties:
            start:
              type: integer
              nullable: true
            end:
              type: integer
              nullable: true
            raw:
              type: string
              nullable: true
        snapshot_fetched_at:
          type: string
          format: date-time
        data_last_updated:
          type: string
          nullable: true
          description: YYYY-MM-DD
        data_next_update:
          type: string
          nullable: true
          description: YYYY-MM-DD
        upstream_last_updated:
          type: string
          nullable: true
          description: YYYY-MM-DD
        upstream_checked_at:
          type: string
          format: date-time
          nullable: true
        superseded:
          type: boolean
          description: True when the upstream source has published data newer than this snapshot.
        indicators:
          type: array
          items:
            type: object
            properties:
              title:
                type: string
                nullable: true
              description:
                type: string
                nullable: true
              unit:
                type: string
                nullable: true
              timespan:
                type: string
                nullable: true
        series_key:
          type: string
          nullable: true
          description: Editions of one chart (e.g. the same indicator republished in a later year) share this key. Null when the row is not part of a series.
        published_at:
          type: string
          nullable: true
          description: The publisher's release date for this edition, YYYY-MM-DD.
        series:
          type: array
          description: Every visible edition of this chart's series, newest first — attached by /meta only, and only when series_key is present. Safe mode, at most 20.
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              rendered_period:
                type: object
                nullable: true
                properties:
                  start:
                    type: integer
                  end:
                    type: integer
              published_at:
                type: string
                nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by /auth/callback (LNURL) or /auth/email/verify. Also accepted as the httpOnly cookie __Secure-bii-token for same-origin browser requests.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: key
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
externalDocs:
  description: Full API documentation and developer guide
  url: https://memestack.ai/developers
x-service-info:
  categories:
  - media
  - search
  docs:
    homepage: https://memestack.ai/developers
    apiReference: https://memestack.ai/llms-full.txt
    llms: https://memestack.ai/llms.txt