GETGet Quote By Id
https://quotes.dataandapis.com/v1/quotes/{id}
Parâmetros de caminho
| Parâmetro | Exemplo | |
|---|---|---|
| id | 10 | Obrigatório |
Exemplo de requisição
curl "https://quotes.dataandapis.com/v1/quotes/10" \
-H "X-Api-Key: YOUR_API_KEY"// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.quotes.getQuoteById({ id: 10 });# pip install dataandapis
from dataandapis import DataAndApis
client = DataAndApis() # reads DATAANDAPIS_API_KEY
data = client.quotes.get_quote_by_id(id=10){
"quoteId": 10,
"quote": "I always show loyalty to the people who gave me a chance from the get-go, and Cincinnati gave me that chance.",
"keyWords": [
"chance",
"loyalty",
"me",
"people",
"always"
],
"relatedTopics": [
"cincinnati",
"gave",
"show",
"who"
],
"author": {
"authorId": 35,
"name": "A. J. Green",
"country": "American",
"profession": "Football Player",
"born": "July 31, 1988",
"died": null
}
}



