Foodie
Foodie · Actions GPT
Black Rice Fusion Asian Search API
API for retrieving search results from Google
GET /searchGet restaurant search result using SerpAPI
Schéma original API
{
"openapi": "3.1.0",
"info": {
"title": "Black Rice Fusion Asian Search API",
"version": "1.0.0",
"description": "API for retrieving search results from Google"
},
"servers": [
{
"url": "https://serpapi.com",
"description": "SERP API server"
}
],
"paths": {
"/search": {
"get": {
"summary": "Get restaurant search result using SerpAPI",
"operationId": "getSearchResult",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Query term to search for.",
"schema": {
"type": "string"
}
},
{
"name": "engine",
"in": "query",
"required": false,
"description": "Search engine to use.",
"schema": {
"type": "string",
"default": "google"
}
},
{
"name": "api_key",
"in": "query",
"required": true,
"description": "API Key for authentication",
"schema": {
"type": "string",
"enum": [
"2b1132eacd359b12d0ddfd3e4f9f3fac4052fbfd3b9f3b6eed5a55749f9c236d"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchResponse"
}
}
}
},
"400": {
"description": "Invalid request"
},
"500": {
"description": "Internal server error"
}
}
}
}
},
"components": {
"schemas": {
"SearchResponse": {
"type": "object",
"properties": {
"search_metadata": {
"$ref": "#/components/schemas/SearchMetadata"
},
"search_parameters": {
"$ref": "#/components/schemas/SearchParameters"
},
"search_information": {
"$ref": "#/components/schemas/SearchInformation"
},
"knowledge_graph": {
"$ref": "#/components/schemas/KnowledgeGraph"
},
"organic_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OrganicResult"
}
}
}
},
"SearchMetadata": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string"
},
"json_endpoint": {
"type": "string"
},
"created_at": {
"type": "string"
},
"processed_at": {
"type": "string"
},
"google_url": {
"type": "string"
},
"raw_html_file": {
"type": "string"
},
"total_time_taken": {
"type": "number"
}
}
},
"SearchParameters": {
"type": "object",
"properties": {
"engine": {
"type": "string"
},
"q": {
"type": "string"
},
"location_requested": {
"type": "string"
},
"location_used": {
"type": "string"
},
"google_domain": {
"type": "string"
},
"hl": {
"type": "string"
},
"gl": {
"type": "string"
},
"device": {
"type": "string"
}
}
},
"SearchInformation": {
"type": "object",
"properties": {
"query_displayed": {
"type": "string"
},
"total_results": {
"type": "integer"
},
"time_taken_displayed": {
"type": "number"
},
"menu_items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MenuItem"
}
}
}
},
"MenuItem": {
"type": "object",
"properties": {
"position": {
"type": "integer"
},
"title": {
"type": "string"
},
"link": {
"type": "string"
},
"serpapi_link": {
"type": "string"
}
}
},
"KnowledgeGraph": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"thumbnail": {
"type": "string"
},
"type": {
"type": "string"
},
"tabs": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TabItem"
}
},
"place_id": {
"type": "string"
},
"website": {
"type": "string"
},
"local_map": {
"$ref": "#/components/schemas/LocalMap"
},
"rating": {
"type": "number"
},
"review_count": {
"type": "integer"
},
"links": {
"$ref": "#/components/schemas/Links"
},
"price": {
"type": "string"
},
"service_options": {
"type": "array",
"items": {
"type": "string"
}
},
"address": {
"type": "string"
},
"address_links": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AddressLink"
}
},
"raw_hours": {
"type": "string"
},
"hours": {
"$ref": "#/components/schemas/Hours"
},
"phone": {
"type": "string"
},
"menu": {
"type": "string"
},
"menu_links": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MenuLink"
}
},
"popular_times": {
"$ref": "#/components/schemas/PopularTimes"
},
"reviews_from_the_web": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ReviewFromWeb"
}
},
"unclaimed_listing": {
"type": "boolean"
},
"people_also_search_for": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PeopleAlsoSearchFor"
}
}
}
},
"TabItem": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"link": {
"type": "string"
},
"serpapi_link": {
"type": "string"
}
}
},
"LocalMap": {
"type": "object",
"properties": {
"image": {
"type": "string"
},
"link": {
"type": "string"
},
"gps_coordinates": {
"$ref": "#/components/schemas/GPSCoordinates"
}
}
},
"Links": {
"type": "object",
"properties": {
"reserve_a_table": {
"type": "string"
},
"order_online": {
"type": "string"
}
}
},
"AddressLink": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"link": {
"type": "string"
}
}
},
"Hours": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/DayHours"
}
},
"DayHours": {
"type": "object",
"properties": {
"opens": {
"type": "string"
},
"closes": {
"type": "string"
},
"break": {
"type": "string"
}
}
},
"MenuLink": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"link": {
"type": "string"
}
}
},
"PopularTimes": {
"type": "object",
"properties": {
"live": {
"$ref": "#/components/schemas/PopularTimeItem"
},
"graph_results": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PopularTimeItem"
}
}
}
}
},
"PopularTimeItem": {
"type": "object",
"properties": {
"time": {
"type": "string"
},
"info": {
"type": "string"
},
"wait_time": {
"type": "string"
},
"busyness_score": {
"type": "integer"
}
}
},
"ReviewFromWeb": {
"type": "object",
"properties": {
"company": {
"type": "string"
},
"link": {
"type": "string"
},
"rating": {
"type": "number"
},
"review_count": {
"type": "integer"
}
}
},
"PeopleAlsoSearchFor": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"extensions": {
"type": "array",
"items": {
"type": "string"
}
},
"image": {
"type": "string"
}
}
},
"GPSCoordinates": {
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"altitude": {
"type": "number"
}
}
}
}
}
}