X (Twitter) · Arazzo Workflow

X Fetch a List's Details and Its Members

Version 1.0.0

Read a List by id, then page the members of that List.

1 workflow 1 source API 1 provider
View Spec View on GitHub Social-MediaMicrobloggingReal-Time DataStreamingAdvertisingContentArazzoWorkflows

Provider

twitter

Workflows

list-detail-and-members
Read a List by id and list its members.
Chains the list lookup endpoint into the list-members endpoint so a caller can confirm a List exists and then enumerate its members.
2 steps inputs: authorization, listId, maxResults outputs: listName, members
1
getList
Read the metadata for the supplied List id.
2
getMembers
Retrieve the first page of members for the List.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: X Fetch a List's Details and Its Members
  summary: Read a List by id, then page the members of that List.
  description: >-
    Retrieves the metadata for a single X List and then pulls the first page of
    member accounts on that List. The detail step inlines its list.fields and
    the members step inlines its user.fields and max_results so the flow reads
    and executes without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: listsApi
  url: ../openapi/twitter-lists-api-openapi.yml
  type: openapi
workflows:
- workflowId: list-detail-and-members
  summary: Read a List by id and list its members.
  description: >-
    Chains the list lookup endpoint into the list-members endpoint so a caller
    can confirm a List exists and then enumerate its members.
  inputs:
    type: object
    required:
    - listId
    properties:
      listId:
        type: string
        description: The numeric id of the List to read.
      maxResults:
        type: integer
        description: The maximum number of members to return per page (1-100).
        default: 100
      authorization:
        type: string
        description: Bearer token to authorize the requests (e.g. "Bearer xxx").
  steps:
  - stepId: getList
    description: Read the metadata for the supplied List id.
    operationId: getListsById
    parameters:
    - name: id
      in: path
      value: $inputs.listId
    - name: list.fields
      in: query
      value: id,name,member_count,follower_count,private
    - name: Authorization
      in: header
      value: $inputs.authorization
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      listId: $response.body#/data/id
      listName: $response.body#/data/name
  - stepId: getMembers
    description: Retrieve the first page of members for the List.
    operationId: getListsMembers
    parameters:
    - name: id
      in: path
      value: $steps.getList.outputs.listId
    - name: max_results
      in: query
      value: $inputs.maxResults
    - name: user.fields
      in: query
      value: id,name,username
    - name: Authorization
      in: header
      value: $inputs.authorization
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      members: $response.body#/data
      nextToken: $response.body#/meta/next_token
  outputs:
    listName: $steps.getList.outputs.listName
    members: $steps.getMembers.outputs.members

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/twitter-list-detail-and-members-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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