YelpAI Restaurant Finder - Custom Rating & Reviews
YelpAI Restaurant Finder - Custom Rating & Reviews · Actions GPT
Yelp Fusion API
Access to local business data and user reviews via Yelp.
GET /businesses/searchSearch for businesses by keyword, category, location, price level, etc.GET /businesses/{id}Get business details by Yelp business ID.
Schéma original API
{
"openapi": "3.0.0",
"info": {
"title": "Yelp Fusion API",
"description": "Access to local business data and user reviews via Yelp.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.yelp.com/v3",
"description": "Yelp Fusion API server"
}
],
"paths": {
"/businesses/search": {
"get": {
"operationId": "searchBusinesses",
"summary": "Search for businesses by keyword, category, location, price level, etc.",
"parameters": [
{
"name": "term",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "location",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "latitude",
"in": "query",
"required": false,
"schema": {
"type": "number",
"format": "double"
}
},
{
"name": "longitude",
"in": "query",
"required": false,
"schema": {
"type": "number",
"format": "double"
}
}
],
"responses": {
"200": {
"description": "A JSON object containing business search results",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"total": {
"type": "integer"
},
"businesses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Business"
}
}
}
}
}
}
}
}
}
},
"/businesses/{id}": {
"get": {
"operationId": "getBusinessDetails",
"summary": "Get business details by Yelp business ID.",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Detailed information about a business",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Business"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Business": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"review_count": {
"type": "integer"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"alias": {
"type": "string"
},
"title": {
"type": "string"
}
}
}
},
"rating": {
"type": "number"
},
"coordinates": {
"type": "object",
"properties": {
"latitude": {
"type": "number",
"format": "double"
},
"longitude": {
"type": "number",
"format": "double"
}
}
},
"price": {
"type": "string"
},
"location": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"country": {
"type": "string"
},
"address1": {
"type": "string"
},
"zip_code": {
"type": "string"
}
}
}
}
}
}
},
"security": [
{
"bearerAuth": []
}
],
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
}