{
  "openapi": "3.0.1",
  "info": {
    "title": "X Community Notes Dataset Explorer",
    "description": "Explore X's official public Community Notes snapshots without a login: look up notes by note, post or contributor, search note text, and export status, cited sources, reason flags and contributor enrollment rows.",
    "version": "1.0",
    "x-build-id": "7oodAt3GoWo3QgFUx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~twitter-community-notes/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-twitter-community-notes",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/xyrelith-data~twitter-community-notes/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-twitter-community-notes",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/xyrelith-data~twitter-community-notes/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-twitter-community-notes",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "noteLookup",
              "postLookup",
              "contributorLookup",
              "keywordSearch",
              "latestNotes"
            ],
            "type": "string",
            "description": "What to look up in X's public Community Notes snapshot. Every mode reads the official cumulative snapshot files; none needs a login.",
            "default": "latestNotes"
          },
          "noteIds": {
            "title": "Note IDs",
            "maxItems": 1000,
            "type": "array",
            "description": "Numeric note IDs to look up (mode = noteLookup). Also accepts x.com/i/birdwatch/n/<id> links. Unmatched IDs appear as lookupMiss rows when Include not-found rows is on.",
            "items": {
              "type": "string"
            }
          },
          "postIds": {
            "title": "Post IDs or URLs",
            "maxItems": 1000,
            "type": "array",
            "description": "Post IDs or x.com / twitter.com status URLs to look up (mode = postLookup). Returns every note attached to each post, newest first within the post.",
            "items": {
              "type": "string"
            }
          },
          "contributorIds": {
            "title": "Contributor participant IDs",
            "maxItems": 100,
            "type": "array",
            "description": "Pseudonymous Community Notes participant IDs (mode = contributorLookup). Returns the enrollment row and the contributor's notes. X does not publish contributor handles.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Case-insensitive text to find in note summaries (mode = keywordSearch). It also filters noteLookup, postLookup and contributorLookup results when set."
          },
          "classification": {
            "title": "Classification",
            "enum": [
              "all",
              "misleading",
              "notMisleading"
            ],
            "type": "string",
            "description": "Keep misleading notes, not-misleading notes, or both.",
            "default": "all"
          },
          "currentStatus": {
            "title": "Current note status",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep notes whose current status is one of these values. Multi-select; empty means any status. Needs Include status turned on.",
            "items": {
              "type": "string",
              "enum": [
                "currentlyRatedHelpful",
                "currentlyRatedNotHelpful",
                "needsMoreRatings"
              ],
              "enumTitles": [
                "Currently rated helpful (showing on X)",
                "Currently rated not helpful",
                "Needs more ratings"
              ]
            }
          },
          "dateFrom": {
            "title": "Note created from",
            "type": "string",
            "description": "Only notes created on or after this date (YYYY-MM-DD, UTC)."
          },
          "dateTo": {
            "title": "Note created to",
            "type": "string",
            "description": "Only notes created on or before this date (YYYY-MM-DD, inclusive, UTC)."
          },
          "misleadingReasons": {
            "title": "Misleading reasons",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep notes with at least one selected misleading reason flag. Empty means no filter. 2026 collaborative notes carry no reason flags.",
            "items": {
              "type": "string",
              "enum": [
                "other",
                "factualError",
                "manipulatedMedia",
                "outdatedInformation",
                "missingImportantContext",
                "unverifiedClaimAsFact",
                "satire"
              ],
              "enumTitles": [
                "Other",
                "Factual error",
                "Manipulated media",
                "Outdated information",
                "Missing important context",
                "Unverified claim as fact",
                "Satire"
              ]
            }
          },
          "notMisleadingReasons": {
            "title": "Not-misleading reasons",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep notes with at least one selected not-misleading reason flag. Empty means no filter.",
            "items": {
              "type": "string",
              "enum": [
                "other",
                "factuallyCorrect",
                "outdatedButNotWhenWritten",
                "clearlySatire",
                "personalOpinion"
              ],
              "enumTitles": [
                "Other",
                "Factually correct",
                "Outdated but not when written",
                "Clearly satire",
                "Personal opinion"
              ]
            }
          },
          "mediaNotesOnly": {
            "title": "Media notes only",
            "type": "boolean",
            "description": "Keep only notes attached to an image or video instead of post text.",
            "default": false
          },
          "collaborativeNotesOnly": {
            "title": "Collaborative notes only",
            "type": "boolean",
            "description": "Keep only notes written in the newer collaborative-note format.",
            "default": false
          },
          "lockedOnly": {
            "title": "Locked notes only",
            "type": "boolean",
            "description": "Keep only notes whose status is locked by the scoring system. Needs Include status turned on.",
            "default": false
          },
          "trustworthySourcesOnly": {
            "title": "Trustworthy sources only",
            "type": "boolean",
            "description": "Keep only notes that cite trustworthy sources, as classified by contributors.",
            "default": false
          },
          "includeStatus": {
            "title": "Include status fields",
            "type": "boolean",
            "description": "Join the note status history table to add current status, helpfulness, lock state, scoring model and status dates. Turn it off for the smallest, fastest run.",
            "default": true
          },
          "includeNotFoundRows": {
            "title": "Include not-found rows",
            "type": "boolean",
            "description": "For lookups, add one lookupMiss row per requested note, post or contributor that has no row. Useful for checking whether a post has a Community Note.",
            "default": false
          },
          "detectLanguage": {
            "title": "Detect note language",
            "type": "boolean",
            "description": "Add an estimated ISO language code for each note summary. It is a best-effort detection and is never used for filtering.",
            "default": false
          },
          "searchScope": {
            "title": "Search scope",
            "enum": [
              "full",
              "recent"
            ],
            "type": "string",
            "description": "Full scans every note shard back to 2021. Recent reads only the small recent-note shards and is much faster; it is not a complete archive search.",
            "default": "full"
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on dataset rows across notes, enrollment and not-found rows.",
            "default": 1000
          },
          "snapshotDate": {
            "title": "Snapshot date",
            "type": "string",
            "description": "Use a specific daily snapshot (YYYY-MM-DD). Leave empty for the newest complete snapshot. X keeps only recent dates."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}