Portkey Analytics > Graphs API

Get data points for graphical representation.

Operations 17

GET /analytics/graphs/requests Get requests graph #
GET /analytics/graphs/cost Get cost graph #
GET /analytics/graphs/latency Get latency graph #
GET /analytics/graphs/tokens Get tokens graph #
GET /analytics/graphs/users Get users graph. Returns unique user count across different time buckets #
GET /analytics/graphs/users/requests Get users requests graph. #
GET /analytics/graphs/errors Get errors graph #
GET /analytics/graphs/errors/rate Get percentage error rate graph #
GET /analytics/graphs/errors/stacks Get status code wise stacked error graph #
GET /analytics/graphs/errors/status-codes Get status code wise grouped error graph #
GET /analytics/graphs/requests/rescued Get retry and fallback rescued requests graph #
GET /analytics/graphs/cache/hit-rate Get cache hit rate graph #
GET /analytics/graphs/cache/latency Get cache hit latency graph #
GET /analytics/graphs/feedbacks Get feedbacks graph #
GET /analytics/graphs/feedbacks/scores Get score-wise feedbacks distribution graph #
GET /analytics/graphs/feedbacks/weighted Get weighted feedbacks graph. Weighted feedback is (value * score) #
GET /analytics/graphs/feedbacks/ai-models Get feedbacks per ai_models graph #

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/portkey-analytics-graphs-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

portkey-analytics-graphs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Portkey Analytics > Graphs API
  description: The Portkey REST API. Please see https://portkey.ai/docs/api-reference for more details.
  version: 2.0.0
  termsOfService: https://portkey.ai/terms
  contact:
    name: Portkey Developer Forum
    url: https://portkey.wiki/community
  license:
    name: MIT
    url: https://github.com/Portkey-AI/portkey-openapi/blob/master/LICENSE
servers:
- url: https://api.portkey.ai/v1
  description: Portkey API Public Endpoint
security:
- Portkey-Key: []
tags:


# --- truncated at 32 KB (77 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/portkey/refs/heads/main/openapi/portkey-analytics-graphs-api-openapi.yml