食物、健康与自然

新格言API API

激动宣布全新格言API,海量名言短语轻松获取。各种应用积极格言嵌入的强大工具。

请求标头

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required new-affirmations-api.p.rapidapi.com

端点

GET /v1/affirmations/categories

2. `/v1/affirmations/categories/{category}/random`

代码示例

curl --request GET \
  --url 'https://new-affirmations-api.p.rapidapi.com/v1/affirmations/categories' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: new-affirmations-api.p.rapidapi.com'
GET /v1/affirmations/categories/{category}/random

3. `/v1/affirmations/random`

代码示例

curl --request GET \
  --url 'https://new-affirmations-api.p.rapidapi.com/v1/affirmations/categories/{category}/random' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: new-affirmations-api.p.rapidapi.com'
GET /v1/affirmations/random

Access the /v1/affirmations/random endpoint.

代码示例

curl --request GET \
  --url 'https://new-affirmations-api.p.rapidapi.com/v1/affirmations/random' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: new-affirmations-api.p.rapidapi.com'

交互示例

new-affirmations-api
$ GET /v1/affirmations/categories
{
  "message": "Success"
}

集成及使用指南

We are excited to announce the launch of our brand-new Affirmations API, designed to provide easy access to a vast collection of motivational quotes and phrases. This API offers developers and users alike a powerful tool for integrating positive affirmations into various applications and services.

The Affirmations API provides three main endpoints:

  1. /v1/affirmations/categories
  2. /v1/affirmations/categories/{category}/random
  3. /v1/affirmations/random

These endpoints allow users to retrieve affirmations categorized by theme, find a random affirmation within a specific category, or receive a completely random affirmation from our extensive database.

订阅和许可

通过 RapidAPI 上的商业就绪层访问此 API。专为副项目、初创公司和大批量生产架构设计的灵活计划。

查看定价并订阅

开发者支持

需要集成帮助或有自定义端点请求?我们的工程团队随时为身份验证、有效负载模式和高频速率限制增加提供协助。

联系 API 工程部

系统性能

全天候 24/7 监控,正常运行时间 SLA 达 99.9%。构建在具有全球分布式边缘缓存的云原生微服务之上,以确保超低延迟响应时间。

所有系统均可运行