> ## Documentation Index
> Fetch the complete documentation index at: https://myco-29fc6df6-sweetmantech-myc-3925-docs-document-the-apiar.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Social Scrape

> Trigger a social profile scraping job for a given social_id. Use the Get Artist Socials endpoint first to retrieve the social_id values. The response returns Apify run metadata for polling status and retrieving results via the Apify Scraper Results API.



## OpenAPI

````yaml POST /api/social/scrape
openapi: 3.1.0
info:
  title: Recoup API
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://recoup-api.vercel.app
security:
  - apiKeyAuth: []
paths:
  /api/social/scrape:
    post:
      description: >-
        Trigger a social profile scraping job for a given social_id. Use the Get
        Artist Socials endpoint first to retrieve the social_id values. The
        response returns Apify run metadata for polling status and retrieving
        results via the Apify Scraper Results API.
      requestBody:
        description: Social profile to scrape
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SocialScrapeRequest'
      responses:
        '200':
          description: Scrape job triggered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApifyRunResult'
        '400':
          description: Bad request - missing required parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SocialErrorResponse'
      servers:
        - url: https://api.recoupable.com
components:
  schemas:
    SocialScrapeRequest:
      type: object
      required:
        - social_id
      properties:
        social_id:
          type: string
          format: uuid
          description: >-
            UUID of the social profile to scrape. Obtain this from the Get
            Artist Socials API.
    ApifyRunResult:
      type: object
      properties:
        runId:
          type: string
          description: Unique identifier for the Apify run
        datasetId:
          type: string
          description: Unique identifier for the dataset containing scraped data
        error:
          type: string
          nullable: true
          description: Error message if the run failed (null if successful)
    SocialErrorResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - error
          description: Status of the request
        message:
          type: string
          description: Error message
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).

````