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

# Converter link de perfil em ID

> Extrai o ID numérico estável do usuário de uma URL de perfil do Twitter/X. Permite normalizar links de perfis em identificadores consistentes antes de fazer outras chamadas à API.



## OpenAPI

````yaml openapi-pt-BR.json GET /link-to-id
openapi: 3.0.3
info:
  contact: {}
  title: API Sorsa.io
  version: '3.0'
servers:
  - url: https://api.sorsa.io/v3
security: []
paths:
  /link-to-id:
    get:
      tags:
        - Utilitários
      summary: Converter link de perfil em ID
      description: >-
        Extrai o ID numérico estável do usuário de uma URL de perfil do
        Twitter/X. Permite normalizar links de perfis em identificadores
        consistentes antes de fazer outras chamadas à API.
      parameters:
        - description: link é obrigatório.
          in: query
          name: link
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/technical.LinkToIDResp'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: Requisição inválida
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: Acesso proibido
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: Não encontrado
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: Erro interno do servidor
      security:
        - ApiKeyAuth: []
components:
  schemas:
    technical.LinkToIDResp:
      properties:
        id:
          description: ID numérico do usuário do Twitter/X.
          type: string
      type: object
    handler.ErrorResponse:
      properties:
        message:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: ApiKey
      type: apiKey

````