> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /twitter/user

> Twitter Get User

**Price:** 1 credit

**⚠️ Common errors:** 412: User not found. Verify the username.



## OpenAPI

````yaml /openapi/social-media.json post /api/twitter/user
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/twitter/user:
    post:
      tags:
        - Twitter Users
      summary: /twitter/user
      description: |-
        Twitter Get User

        **Price:** 1 credit

        **⚠️ Common errors:** 412: User not found. Verify the username.
      operationId: __api_twitter_user_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwitterUserPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TwitterUser'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TwitterUserPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        user:
          type: string
      type: object
      required:
        - user
    TwitterUser:
      properties:
        '@type':
          type: string
          default: TwitterUser
        internal_id:
          type: string
        rest_id:
          type: string
        name:
          type: string
        alias:
          type: string
        url:
          type: string
        location:
          anyOf:
            - type: string
            - type: 'null'
        follower_count:
          anyOf:
            - type: integer
            - type: 'null'
        following_count:
          anyOf:
            - type: integer
            - type: 'null'
        tweet_count:
          anyOf:
            - type: integer
            - type: 'null'
        listed_count:
          anyOf:
            - type: integer
            - type: 'null'
        favorites_count:
          anyOf:
            - type: integer
            - type: 'null'
        media_count:
          anyOf:
            - type: integer
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        banner_url:
          anyOf:
            - type: string
            - type: 'null'
        verified:
          type: boolean
          default: false
        verified_type:
          anyOf:
            - type: string
            - type: 'null'
        is_blue_verified:
          type: boolean
          default: false
        created_at:
          anyOf:
            - type: integer
            - type: 'null'
        professional:
          anyOf:
            - $ref: '#/components/schemas/TwitterUserProfessional'
            - type: 'null'
        verification_info:
          anyOf:
            - $ref: '#/components/schemas/TwitterUserVerification'
            - type: 'null'
        profile_urls:
          items:
            $ref: '#/components/schemas/TwitterUrl'
          type: array
          default: []
        mentions:
          items:
            $ref: '#/components/schemas/TwitterUserMention'
          type: array
          default: []
        birthdate:
          anyOf:
            - $ref: '#/components/schemas/TwitterUserBirthdate'
            - type: 'null'
        is_profile_translatable:
          type: boolean
          default: false
        has_hidden_subscriptions:
          type: boolean
          default: false
        can_highlight_tweets:
          type: boolean
          default: false
        highlighted_tweets_count:
          type: integer
          default: 0
        user_seed_tweet_count:
          type: integer
          default: 0
        premium_gifting_eligible:
          type: boolean
          default: false
        creator_subscriptions_count:
          type: integer
          default: 0
      type: object
      required:
        - internal_id
        - rest_id
        - name
        - alias
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    TwitterUserProfessional:
      properties:
        '@type':
          type: string
          default: TwitterUserProfessional
        rest_id:
          type: string
        professional_type:
          type: string
        categories:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
      type: object
      required:
        - rest_id
        - professional_type
    TwitterUserVerification:
      properties:
        '@type':
          type: string
          default: TwitterUserVerification
        is_identity_verified:
          type: boolean
          default: false
        verified_since:
          anyOf:
            - type: string
            - type: 'null'
        reason_description:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    TwitterUrl:
      properties:
        '@type':
          type: string
          default: TwitterUrl
        display_url:
          type: string
        expanded_url:
          type: string
        url:
          type: string
        indices:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
      type: object
      required:
        - display_url
        - expanded_url
        - url
    TwitterUserMention:
      properties:
        '@type':
          type: string
          default: TwitterUserMention
        screen_name:
          type: string
        url:
          type: string
      type: object
      required:
        - screen_name
        - url
    TwitterUserBirthdate:
      properties:
        '@type':
          type: string
          default: TwitterUserBirthdate
        day:
          type: integer
        month:
          type: integer
        year:
          anyOf:
            - type: integer
            - type: 'null'
        visibility:
          type: string
          default: ''
        year_visibility:
          type: string
          default: ''
        timestamp:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - day
        - month
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````