Marketo Usage API

Stats Controller

Operations 4

GET /rest/v1/stats/errors.json Get Daily Errors #
GET /rest/v1/stats/errors/last7days.json Get Weekly Errors #
GET /rest/v1/stats/usage.json Get Daily Usage #
GET /rest/v1/stats/usage/last7days.json Get Weekly Usage #

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/marketo-usage-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

marketo-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Marketo Engage Rest API
  version: '1.0'
  title: Marketo Engage Rest Usage API
  termsOfService: https://www.adobe.com/legal.html
  contact:
    name: Adobe Developer Relations
    url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/home
    email: ''
  license:
    name: API License Agreement
    url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/api-license
servers:
- url: https://localhost:8080/
tags:
- name: Usage
  description: Stats Controller
paths:
  /rest/v1/stats/errors.json:
    get:
      tags:
      - Usage
      summary: Get Daily Errors
      description: 'Retrieves a count of each error type they have encountered in the current day. Required Permissions: None'
      operationId: getDailyErrorsUsingGET
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfErrorsData'
  /rest/v1/stats/errors/last7days.json:
    get:
      tags:
      - Usage
      summary: Get Weekly Errors
      description: 'Returns a count of each error type they have encountered in the past 7 days. Required Permissions: None'
      operationId: getLast7DaysErrorsUsingGET
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfErrorsData'
  /rest/v1/stats/usage.json:
    get:
      tags:
      - Usage
      summary: Get Daily Usage
      description: 'Returns the number of calls consumed for the day. Required Permissions: None'
      operationId: getDailyUsageUsingGET
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfUsageData'
  /rest/v1/stats/usage/last7days.json:
    get:
      tags:
      - Usage
      summary: Get Weekly Usage
      description: 'Returns the number of calls consumed in the past 7 days. Required Permissions: None'
      operationId: getLast7DaysUsageUsingGET
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfUsageData'
components:
  schemas:
    ErrorCount:
      type: object
      required:
      - count
      - errorCode
      properties:
        count:
          type: integer
          format: int32
          description: Number of occurences of the error
        errorCode:
          type: string
          description: Integer error code of the error
    ErrorsData:
      type: object
      required:
      - date
      properties:
        date:
          type: string
          format: date-time
          description: Date of the collected calls
        errors:
          type: array
          description: Counts for individual error codes
          items:
            $ref: '#/components/schemas/ErrorCount'
        total:
          type: integer
          format: int32
          description: Total number of errors in the time period
    Error:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: Error code of the error. See full list of error codes <a href="https://developers.marketo.com/rest-api/error-codes/">here</a>
        message:
          type: string
          description: Message describing the cause of the error
    UserCount:
      type: object
      required:
      - count
      - userId
      properties:
        count:
          type: integer
          format: int32
          description: Number of calls made in the time period
        userId:
          type: string
          description: Id of the user
    ResponseOfErrorsData:
      type: object
      required:
      - errors
      - requestId
      - result
      - success
      - warnings
      properties:
        errors:
          type: array
          description: Array of errors that occurred if the request was unsuccessful
          items:
            $ref: '#/components/schemas/Error'
        moreResult:
          type: boolean
          example: false
          description: Boolean indicating if there are more results in subsequent pages
        nextPageToken:
          type: string
          description: Paging token given if the result set exceeded the allowed batch size
        requestId:
          type: string
          description: Id of the request made
        result:
          type: array
          description: Array of results for individual records in the operation, may be empty
          items:
            $ref: '#/components/schemas/ErrorsData'
        success:
          type: boolean
          example: false
          description: Whether the request succeeded
        warnings:
          type: array
          description: Array of warnings given for the operation
          items:
            $ref: '#/components/schemas/Warning'
    Warning:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: integer
          format: int32
          description: Integer code of the warning
        message:
          type: string
          description: Message describing the warning
    UsageData:
      type: object
      required:
      - date
      properties:
        date:
          type: string
          format: date-time
          description: Date of the collected calls
        total:
          type: integer
          format: int32
          description: Total number of calls in the time period
        users:
          type: array
          description: Counts for individual users
          items:
            $ref: '#/components/schemas/UserCount'
    ResponseOfUsageData:
      type: object
      required:
      - errors
      - requestId
      - result
      - success
      - warnings
      properties:
        errors:
          type: array
          description: Array of errors that occurred if the request was unsuccessful
          items:
            $ref: '#/components/schemas/Error'
        moreResult:
          type: boolean
          example: false
          description: Boolean indicating if there are more results in subsequent pages
        nextPageToken:
          type: string
          description: Paging token given if the result set exceeded the allowed batch size
        requestId:
          type: string
          description: Id of the request made
        result:
          type: array
          description: Array of results for individual records in the operation, may be empty
          items:
            $ref: '#/components/schemas/UsageData'
        success:
          type: boolean
          example: false
          description: Whether the request succeeded
        warnings:
          type: array
          description: Array of warnings given for the operation
          items:
            $ref: '#/components/schemas/Warning'