LogoAidir Docs
LogoAidir Docs
Homepage

Getting Started

Twitter API Overview

Tools

Twitter API Claude Code SKILL

API Reference

X (Twitter)

API Overview

Introduction to the Twitter API endpoints and usage

API Overview

The Aidir.fun Twitter API provides comprehensive access to Twitter data through RESTful endpoints. All endpoints require authentication via API token.

Base URL

https://api.aidir.fun

Authentication

All API requests require an API token passed in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

Available Endpoints

  • User Data: Retrieve user profiles, tweets, and social connections
  • Tweet Data: Access tweet details, replies, and engagement metrics
  • Search: Search for tweets and users
  • Community: Access community tweets and list content
  • Token Management: Check token usage and limits

Response Format

All responses are returned in JSON format with the following structure:

{
  "code": 0,
  "msg": "success",
  "data": {}
}

Error Handling

Error responses include appropriate HTTP status codes and error messages:

{
  "code": 1,
  "msg": "error description"
}

Table of Contents

API Overview
Base URL
Authentication
Available Endpoints
Response Format
Error Handling