MOLOCO Read Entity Count API

The ReadEntityCount API from MOLOCO — 1 operation(s) for readentitycount.

Operations 1

GET /cm/v1/entity-counts Read entity counts #

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/moloco-readentitycount-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

moloco-readentitycount-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Moloco Read Entity Count API
  version: '1.10'
  contact:
    name: Moloco Inc.
    url: https://www.moloco.com
  description: 'Operations tagged ReadEntityCount across 2 of this provider''s published API definitions: moloco-ads-campaign-management-api.json, moloco-ads-campaign-management-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.moloco.cloud
security:
- Bearer: []
tags:
- name: ReadEntityCount
paths:
  /cm/v1/entity-counts:
    get:
      summary: Read entity counts
      description: 'Retrieve the current number of entities and the limits under each ancestor types.

        Visit the [guide document](https://developer.moloco.cloud/docs/entity-quota) for more details.'
      operationId: DspApi_ReadEntityCount
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesReadEntityCountResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
      parameters:
      - name: ad_account_id
        description: 'The AdAccount ID of the given entity type.

          Required for entity types: Product, Campaign, AdGroup, CreativeGroup, Creative, TrackingLink, Target, CustomterSet.'
        in: query
        required: false
        schema:
          type: string
      - name: product_id
        description: 'The Product ID of the given entity type.

          Required for entity types: Campaign, CreativeGroup, Creative.'
        in: query
        required: false
        schema:
          type: string
      - name: campaign_id
        description: 'The Campaign ID of the given entity type.

          Required for entity types: AdGroup.'
        in: query
        required: false
        schema:
          type: string
      - name: entity_type
        description: Entity type to query for.
        in: query
        required: true
        schema:
          type: string
          enum:
          - UNKNOWN_ENTITY_TYPE
          - ENTITY_TYPE_PLATFORM
          - ENTITY_TYPE_AD_ACCOUNT
          - ENTITY_TYPE_PRODUCT
          - ENTITY_TYPE_CAMPAIGN
          - ENTITY_TYPE_AD_GROUP
          - ENTITY_TYPE_CREATIVE_GROUP
          - ENTITY_TYPE_CREATIVE
          - ENTITY_TYPE_TRACKING_LINK
          - ENTITY_TYPE_TARGET
          - ENTITY_TYPE_CUSTOMER_SET
          - ENTITY_TYPE_CUSTOMER_ACTIVITY
          default: UNKNOWN_ENTITY_TYPE
      tags:
      - ReadEntityCount
    servers:
    - url: https://api.moloco.cloud
components:
  schemas:
    dspEntityCount:
      type: object
      properties:
        scope_type:
          $ref: '#/components/schemas/commonEntityType'
          description: Scope of the EntityCount.
        limit:
          type: string
          format: int64
          description: 'The total number of entities allowed under the scope type.

            ''limit'' for the entity is different for each scope type.

            Visit the [guide document](https://developer.moloco.cloud/docs/entity-quota) for more details.'
        current:
          type: string
          format: int64
          description: The number of entities created so far.
      description: EntityCount contains the limit and the number of the entities under the particular scope.
    commonEntityType:
      type: string
      enum:
      - UNKNOWN_ENTITY_TYPE
      - ENTITY_TYPE_PLATFORM
      - ENTITY_TYPE_AD_ACCOUNT
      - ENTITY_TYPE_PRODUCT
      - ENTITY_TYPE_CAMPAIGN
      - ENTITY_TYPE_AD_GROUP
      - ENTITY_TYPE_CREATIVE_GROUP
      - ENTITY_TYPE_CREATIVE
      - ENTITY_TYPE_TRACKING_LINK
      - ENTITY_TYPE_TARGET
      - ENTITY_TYPE_CUSTOMER_SET
      - ENTITY_TYPE_CUSTOMER_ACTIVITY
      default: UNKNOWN_ENTITY_TYPE
      description: List of entity types supported in DSP API.
    googlerpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            type: object
            $ref: '#/components/schemas/protobufAny'
    protobufAny:
      type: object
      properties:
        '@type':
          type: string
      additionalProperties: {}
    messagesReadEntityCountResponse:
      type: object
      properties:
        entity_counts:
          type: array
          items:
            type: object
            $ref: '#/components/schemas/dspEntityCount'
          description: Entity counts of the given entity type under for each parent scope.
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header
x-refined-from:
- moloco-ads-campaign-management-api.json
- moloco-ads-campaign-management-openapi.yml
x-readme:
  explorer-enabled: true