Yellowpages Navigator

Yellowpages Navigator · GPT-Aktionen

Yellow Pages API

API for searching Yellow Pages data.

  • GET /{term}/{location}Get business listings by term and location
Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "Yellow Pages API",
    "version": "1.0.0",
    "description": "API for searching Yellow Pages data."
  },
  "servers": [
    {
      "url": "https://yellow-pages-gpt-ericmanyc.replit.app/api",
      "description": "Production server"
    }
  ],
  "paths": {
    "/{term}/{location}": {
      "get": {
        "summary": "Get business listings by term and location",
        "operationId": "getBusinessListings",
        "parameters": [
          {
            "in": "path",
            "name": "term",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Search term"
          },
          {
            "in": "path",
            "name": "location",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Location for the search"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BusinessListing"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BusinessListing": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string"
          },
          "Phone-number": {
            "type": "string"
          },
          "Categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "Status": {
            "type": "string"
          },
          "Address": {
            "type": "string"
          },
          "Website": {
            "type": "string"
          },
          "More-info": {
            "type": "string"
          },
          "Rating": {
            "type": "number"
          },
          "Review-count": {
            "type": "string"
          }
        }
      }
    }
  }
}