Jasper.ai
  1. Usage
Jasper.ai
  • 入门
  • 验证
  • Jasper 人工智能引擎
  • 版本控制
  • 速率限制
  • 状态代码和错误
  • Command
    • Run command
      POST
  • Knowledge
    • Create knowledge
      POST
    • Retrieve knowledge
      GET
    • Retrieve a specific knowledge
      GET
    • Update a knowledge
      PATCH
    • Delete knowledge by ID
      DELETE
  • Tones
    • Run Tone Detector template
      POST
    • Create a tone
      POST
    • Retrieve tones
      GET
    • Retrieve tone by ID
      GET
    • Update a tone by ID
      PATCH
    • Delete a tone by ID
      DELETE
  • keep writing
    • Run keep writing
      POST
  • Templates
    • Retrieve templates
      GET
    • Retrieve a template by ID
      GET
    • Run Text Summarizer template
      POST
    • Run One-Shot Blog template
      POST
    • Run Facebook Ad Primary Text template
      POST
  • Usage
    • Retrieve API usage
      GET
  1. Usage

Retrieve API usage

开发环境
开发环境
GET
https://api.jasper.ai/v1/usage
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.jasper.ai/v1/usage?start={{last7DaysDateTime}}&end={{currentDateTime}}&granularity=day&granularity=week'
响应示例响应示例
{
  "requestId": "bce766ea-a4ef-48e5-9da1-d9602bfecf2d",
  "resource": "usage",
  "data": {
    "requests": [
      {
        "t": "2023-09-11T13:28:59.318Z",
        "v": 83
      },
      {
        "t": "2023-09-11T14:28:59.318Z",
        "v": 173
      },
      {
        "t": "2023-09-11T15:28:59.318Z",
        "v": 162
      }
    ]
  }
}

请求参数

Query 参数
start
string 
必需
示例值:
{{last7DaysDateTime}}
end
string 
必需
示例值:
{{currentDateTime}}
granularity
array[string]
必需
示例值:
["day","week"]

返回响应

🟢200成功
application/json
Body
requestId
string 
必需
resource
string 
必需
data
object 
必需
requests
array [object {2}] 
必需
修改于 2024-01-30 03:49:24
上一页
Run Facebook Ad Primary Text template
Built with