Marketo Usage API

Stats Controller

GitHub OpenAPI
Business capability
API Consumption Governance BC-4270.50

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /rest/v1/stats/errors.json Count today's API errors · Get Daily Errors #
Ask an LLM
“How many API errors has Marketo had today?”
“What error types are showing up in my daily usage stats?”
Tell an agent
Show today's error counts.
Count the errors Marketo hit today.
GET /rest/v1/stats/errors/last7days.json Count API errors over the last 7 days · Get Weekly Errors #
Ask an LLM
“How have my API errors trended over the last week?”
“What was the weekly error total for Marketo?”
Tell an agent
Show error counts for the last 7 days.
Give me the weekly error total.
GET /rest/v1/stats/usage.json Get today's API call usage · Get Daily Usage #
Ask an LLM
“How many API calls have I used today?”
“What is my daily call consumption right now?”
Tell an agent
Show today's API call usage.
Tell me how many calls I've consumed today.
GET /rest/v1/stats/usage/last7days.json Get API call usage over the last 7 days · Get Weekly Usage #
Ask an LLM
“How many API calls have I used in the past week?”
“What was my weekly call consumption?”
Tell an agent
Show API call usage for the last 7 days.
Give me the weekly call total.

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

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
    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
    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'
    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'
    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'
    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
    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