---
title: Constants & Type Definitions

description: "Complete reference for constants, type aliases, and regex patterns for social media URL validation. Build custom platform configurations with predefined patterns for profile IDs, usernames, and URL structures."

keywords:
  - constants
  - regex patterns social media
  - URL regex patterns
  - type aliases Python
  - platform configuration
  - profile ID patterns
  - username patterns
  - social media regex
  - custom platform regex
  - URL pattern constants
  - social-links constants
---

# Constants

This page documents all constants and type aliases available in the `social-links` library. These are useful when defining custom platforms or working with platform configurations.

::: sociallinks.constants
    options:
      show_root_heading: true
      show_source: false
      heading_level: 3
      members:
        - PlatformEntry
        - PlatformEntries
        - PROFILE_ID
        - PROFILE_ID_AT
        - PROFILE_ID_UNICODE
        - PROFILE_ID_EXTENDED
        - PHONE_NUMBER
      members_order: source

