# `faker.providers.doi`

class faker.providers.doi.Provider(generator: Any)

  Bases: `BaseProvider`

  Provider for Digital Object Identifier (DOI) Source of info: https://en.wikipedia.org/wiki/Digital_object_identifier (English)

  doi() → str

    Generate a valid Digital Object Identifier (DOI). Format: 10.{4-9 digits}/{alphanumeric string} Eg: 10.1000/xyz123

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.doi()
        ...
        '10.51707749/f6z0y48'
        '10.40710944/g7i5s93'
        '10.18757361/t1z9m48'
        '10.19725825/e4j1g15'
        '10.47486068/j6e5c93'