Metricool Ads Previews Api Service API

The Ads Previews Api Service API from Metricool — 1 operation(s) for ads previews api service.

Business capability
Digital Marketing Management BC-400.60

Operations 1

POST /v2/advertising/ads/previews Generate previews #

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/metricool:metricool-ads-previews-api-service-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

metricool-ads-previews-api-service-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Metricool Ads Previews Api Service API
  description: 'Metricool API


    The base URL for all endpoints is: https://app.metricool.com/api


    All endpoints require authentication.'
  version: 2.0.0
servers:
- url: https://app.metricool.com/api
tags:
- name: Ads Previews Api Service
paths:
  /v2/advertising/ads/previews:
    post:
      tags:
      - Ads Previews Api Service
      operationId: generatePreviews
      parameters:
      - name: format
        in: query
        required: true
        schema:
          type: string
      - name: adPosition
        in: query
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignCreationState'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonOkResponseAdPreview'
      summary: Generate previews
      x-summary-source: derived
components:
  schemas:
    Segmentation:
      type: object
      properties:
        ageRanges:
          type: array
          items:
            type: string
        gender:
          type: string
        language:
          type: string
        locations:
          type: array
          items:
            $ref: '#/components/schemas/Location'
    Ad:
      type: object
      properties:
        name:
          type: string
        businessName:
          type: string
        website:
          type: string
        titles:
          type: array
          items:
            type: string
        descriptions:
          type: array
          items:
            type: string
        logoUrl:
          type: string
        mediaItems:
          type: array
          items:
            $ref: '#/components/schemas/MediaItem'
    AdPlatformInfo:
      required:
      - platformId
      type: object
      properties:
        platformId:
          type: string
        objective:
          type: string
        displaySites:
          type: array
          items:
            type: string
        interests:
          type: array
          items:
            type: string
        keywords:
          type: array
          items:
            type: string
        dsaPayor:
          type: string
        dsaBeneficiary:
          type: string
        pixel:
          type: string
        customEvent:
          type: string
    GoogleAdsData:
      type: object
      properties:
        username:
          type: string
        providerUserId:
          type: string
        picture:
          type: string
    CampaignCreationState:
      type: object
      properties:
        name:
          type: string
        targetUrl:
          type: string
        startDate:
          $ref: '#/components/schemas/DateTimeInfo'
        endDate:
          $ref: '#/components/schemas/DateTimeInfo'
        currency:
          type: string
        budget:
          type: number
        budgetType:
          type: string
        bidStrategy:
          type: string
        targetCPA:
          type: number
        maxCPC:
          type: number
        providers:
          type: array
          items:
            $ref: '#/components/schemas/AdPlatformInfo'
        segmentation:
          $ref: '#/components/schemas/Segmentation'
        ads:
          type: array
          items:
            $ref: '#/components/schemas/Ad'
        verifier:
          type: string
        txCode:
          type: string
        code:
          type: string
        googleAdsData:
          $ref: '#/components/schemas/GoogleAdsData'
    JsonOkResponseAdPreview:
      type: object
      properties:
        metadata:
          type: object
        page:
          $ref: '#/components/schemas/JsonPaging'
        data:
          $ref: '#/components/schemas/AdPreview'
    AdPreview:
      type: object
      properties:
        previewUrl:
          type: string
    Location:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
    JsonPaging:
      type: object
      properties:
        next:
          type: string
    DateTimeInfo:
      required:
      - dateTime
      type: object
      properties:
        dateTime:
          type: string
          description: 'Local Date-time represented with a certain timezone '
        timezone:
          type: string
          description: Timezone applied to the datetime
    MediaItem:
      type: object
      properties:
        url:
          type: string
        mediaType:
          type: string
        width:
          type: string
        height:
          type: string