LovPics Social Media API

The social-media API from LovPics — 8 operation(s) for social-media.

GitHub OpenAPI

Operations 8

POST /api/social-media/auth/url Get Auth Url #
POST /api/social-media/auth/callback Handle Oauth Callback #
GET /api/social-media/accounts/{user_id} Get Connected Accounts #
DELETE /api/social-media/accounts/{user_id}/{platform} Disconnect Account #
POST /api/social-media/post Post To Social Media #
GET /api/social-media/posts/{user_id} Get User Posts #
GET /api/social-media/posts/{user_id}/stats Get User Post Stats #
GET /api/social-media/health Health Check #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lovpics-com:lovpics-com-social-media-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lovpics-com-social-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Virtual Studio Social Media API
  version: 0.1.0
tags:
- name: social-media
paths:
  /api/social-media/auth/url:
    post:
      tags:
      - social-media
      summary: Get Auth Url
      description: Generate OAuth authorization URL for connecting social media accounts.
      operationId: get_auth_url_api_social_media_auth_url_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthUrlRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthUrlResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/social-media/auth/callback:
    post:
      tags:
      - social-media
      summary: Handle Oauth Callback
      description: Handle OAuth callback and connect social media account.
      operationId: handle_oauth_callback_api_social_media_auth_callback_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthCallbackRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthCallbackResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/social-media/accounts/{user_id}:
    get:
      tags:
      - social-media
      summary: Get Connected Accounts
      description: Get all connected social media accounts for a user.
      operationId: get_connected_accounts_api_social_media_accounts__user_id__get
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectedAccountsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/social-media/accounts/{user_id}/{platform}:
    delete:
      tags:
      - social-media
      summary: Disconnect Account
      description: Disconnect a social media account.
      operationId: disconnect_account_api_social_media_accounts__user_id___platform__delete
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      - name: platform
        in: path
        required: true
        schema:
          type: string
          title: Platform
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DisconnectResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/social-media/post:
    post:
      tags:
      - social-media
      summary: Post To Social Media
      description: Post content to a social media platform.
      operationId: post_to_social_media_api_social_media_post_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/social-media/posts/{user_id}:
    get:
      tags:
      - social-media
      summary: Get User Posts
      description: Get user's post history with optional filtering.
      operationId: get_user_posts_api_social_media_posts__user_id__get
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      - name: platform
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by platform
          title: Platform
        description: Filter by platform
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by status
          title: Status
        description: Filter by status
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Number of posts to return
          default: 50
          title: Limit
        description: Number of posts to return
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          description: Number of posts to skip
          default: 0
          title: Offset
        description: Number of posts to skip
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SocialPostsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/social-media/posts/{user_id}/stats:
    get:
      tags:
      - social-media
      summary: Get User Post Stats
      description: Get user's posting statistics.
      operationId: get_user_post_stats_api_social_media_posts__user_id__stats_get
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SocialStatsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/social-media/health:
    get:
      tags:
      - social-media
      summary: Health Check
      description: Health check endpoint for social media service.
      operationId: health_check_api_social_media_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    AuthUrlRequest:
      properties:
        userId:
          type: string
          title: Userid
          description: User ID
        platform:
          type: string
          title: Platform
          description: Social media platform
      type: object
      required:
      - userId
      - platform
      title: AuthUrlRequest
    ConnectedAccountsResponse:
      properties:
        accounts:
          items:
            $ref: '#/components/schemas/ConnectedAccount'
          type: array
          title: Accounts
          description: List of connected accounts
      type: object
      required:
      - accounts
      title: ConnectedAccountsResponse
    ConnectedAccount:
      properties:
        platform:
          type: string
          title: Platform
          description: Platform name
        username:
          type: string
          title: Username
          description: Platform username
        is_active:
          type: boolean
          title: Is Active
          description: Whether the account is active
        created_at:
          type: string
          title: Created At
          description: Connection date
      type: object
      required:
      - platform
      - username
      - is_active
      - created_at
      title: ConnectedAccount
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DisconnectResponse:
      properties:
        success:
          type: boolean
          title: Success
          examples:
          - true
        message:
          type: string
          title: Message
          examples:
          - Successfully disconnected instagram account
      additionalProperties: true
      type: object
      required:
      - success
      - message
      title: DisconnectResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    OAuthCallbackRequest:
      properties:
        platform:
          type: string
          title: Platform
          description: Social media platform
        code:
          type: string
          title: Code
          description: Authorization code
        state:
          type: string
          title: State
          description: State token
      type: object
      required:
      - platform
      - code
      - state
      title: OAuthCallbackRequest
    SocialPostsResponse:
      properties:
        posts:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Posts
        total:
          type: integer
          title: Total
          examples:
          - 3
        limit:
          type: integer
          title: Limit
          examples:
          - 20
        offset:
          type: integer
          title: Offset
          examples:
          - 0
      additionalProperties: true
      type: object
      required:
      - posts
      - total
      - limit
      - offset
      title: SocialPostsResponse
    PostResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether the post was successful
        post_id:
          type: string
          title: Post Id
          description: Internal post ID
        platform_post_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Platform Post Id
          description: Platform post ID
        message:
          type: string
          title: Message
          description: Response message
      type: object
      required:
      - success
      - post_id
      - message
      title: PostResponse
    SocialStatsResponse:
      properties:
        total_posts:
          type: integer
          title: Total Posts
          examples:
          - 8
        successful_posts:
          type: integer
          title: Successful Posts
          examples:
          - 7
        failed_posts:
          type: integer
          title: Failed Posts
          examples:
          - 1
        pending_posts:
          type: integer
          title: Pending Posts
          examples:
          - 0
        success_rate:
          type: number
          title: Success Rate
          examples:
          - 87.5
        platform_stats:
          additionalProperties: true
          type: object
          title: Platform Stats
      additionalProperties: true
      type: object
      required:
      - total_posts
      - successful_posts
      - failed_posts
      - pending_posts
      - success_rate
      title: SocialStatsResponse
    AuthUrlResponse:
      properties:
        auth_url:
          type: string
          title: Auth Url
          description: OAuth authorization URL
        state_token:
          type: string
          title: State Token
          description: State token for verification
        platform:
          type: string
          title: Platform
          description: Platform name
      type: object
      required:
      - auth_url
      - state_token
      - platform
      title: AuthUrlResponse
    PostRequest:
      properties:
        userId:
          type: string
          title: Userid
          description: User ID
        platform:
          type: string
          title: Platform
          description: Social media platform
        content:
          type: string
          title: Content
          description: Post content
        hashtags:
          type: string
          title: Hashtags
          description: Post hashtags
        imageUrl:
          type: string
          title: Imageurl
          description: Image URL
        imageTitle:
          anyOf:
          - type: string
          - type: 'null'
          title: Imagetitle
          description: Image title
      type: object
      required:
      - userId
      - platform
      - content
      - hashtags
      - imageUrl
      title: PostRequest
    OAuthCallbackResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether the connection was successful
        platform:
          type: string
          title: Platform
          description: Platform name
        user_profile:
          additionalProperties: true
          type: object
          title: User Profile
          description: User profile information
        message:
          type: string
          title: Message
          description: Success message
      type: object
      required:
      - success
      - platform
      - user_profile
      - message
      title: OAuthCallbackResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer