Social Spoof

Social Spoof · GPT アクション

RandomUser API

API for generating random user data for testing and development purposes.

  • GET /Generate Random User

    Returns randomly generated user data.

元の API スキーマ
openapi: 3.0.0
info:
  title: RandomUser API
  version: 1.0.0
  description: API for generating random user data for testing and development purposes.
servers:
  - url: 'https://randomuser.me/api/'
    description: Production server
paths:
  /:
    get:
      summary: Generate Random User
      description: Returns randomly generated user data.
      operationId: generateRandomUser
      parameters:
        - name: results
          in: query
          description: Number of users to generate
          required: false
          schema:
            type: integer
            default: 1
        - name: gender
          in: query
          description: Gender of the user (male, female, or any)
          required: false
          schema:
            type: string
        - name: nat
          in: query
          description: Nationality of the user (US, GB, FR, etc.)
          required: false
          schema:
            type: string
      responses:
        200:
          description: Successful response with random user data
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/User'
                  info:
                    type: object
                    properties:
                      seed:
                        type: string
                      results:
                        type: integer
                      page:
                        type: integer
                      version:
                        type: string
        default:
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    User:
      type: object
      properties:
        gender:
          type: string
        name:
          type: object
          properties:
            title:
              type: string
            first:
              type: string
            last:
              type: string
        location:
          type: object
          # Additional properties for location
        email:
          type: string
        login:
          type: object
          # Additional properties for login
        dob:
          type: object
          properties:
            date:
              type: string
              format: date-time
            age:
              type: integer
        registered:
          type: object
          # Additional properties for registered
        phone:
          type: string
        cell:
          type: string
        id:
          type: object
          properties:
            name:
              type: string
            value:
              type: string
        picture:
          type: object
          properties:
            large:
              type: string
            medium:
              type: string
            thumbnail:
              type: string
        nat:
          type: string
    Error:
      type: object
      properties:
        error:
          type: string