# Greyhound city autocomplete API

Search Greyhound cities by text, language or country via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, raw, and retrieve structured data including source city UUID, source legacy city identifier, city display name, source country code, and source served-city flag for city selector, and place matching.

Documentation: https://openany.si/market/apis/greyhound/greyhound-city-autocomplete-api/?offering=e1daf239-c38b-4635-a301-759a70db9a36
API ID: e1daf239-c38b-4635-a301-759a70db9a36
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/greyhound/v1/cities
Page update time: 2026-12-03T02:47:05.567Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:47:03.534Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Greyhound city autocomplete API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "At least 2 characters of a city name."
        },
        "lang": {
          "type": "string",
          "description": "Language code (e.g. `en`, `de`, `fr`)."
        },
        "country": {
          "type": "string",
          "description": "2-letter country code filter."
        },
        "served_only": {
          "type": "string",
          "description": "`true`: only cities with service."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "q"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "cities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string"
          },
          "has_train_station": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "lat": {
            "type": "number"
          },
          "legacy_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "region": {
            "type": "null"
          },
          "score": {
            "type": "number"
          },
          "served": {
            "type": "boolean"
          },
          "subdivision_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timezone_offset_seconds": {
            "type": "integer"
          }
        }
      }
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "q": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH recording · HTTP 200
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/greyhound/v1/cities?output=json&q=dall&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "cities": [
    {
      "country": "US",
      "has_train_station": false,
      "id": "54f13a66-59ee-41d4-b017-e4240add0403",
      "lat": 32.7766642,
      "legacy_id": 26951,
      "lng": -96.7969879,
      "name": "Dallas, TX",
      "region": null,
      "score": 19.874336,
      "served": true,
      "subdivision_code": "US-TX",
      "timezone_offset_seconds": -21600
    },
    {
      "country": "US",
      "has_train_station": false,
      "id": "b05dbe4d-2431-4117-a113-48d71a3d31ef",
      "lat": 41.3361911,
      "legacy_id": 107873,
      "lng": -75.9632546,
      "name": "Dallas, PA",
      "region": null,
      "score": 17.856537,
      "served": true,
      "subdivision_code": "US-PA",
      "timezone_offset_seconds": -18000
    },
    {
      "country": "CH",
      "has_train_station": false,
      "id": "09434e9c-361f-4c27-8352-37f2184f8d57",
      "lat": 46.9252,
      "legacy_id": null,
      "lng": 8.386968,
      "name": "Dallenwil",
      "region": null,
      "score": 15.882886,
      "served": false,
      "subdivision_code": null,
      "timezone_offset_seconds": 3600
    },
    {
      "country": "US",
      "has_train_station": false,
      "id": "f7e6a1fc-a23c-4644-b63e-6cb6b884c368",
      "lat": 45.5945645,
      "legacy_id": 56161,
      "lng": -121.1786823,
      "name": "The Dalles, OR",
      "region": null,
      "score": 15.880566,
      "served": true,
      "subdivision_code": "US-OR",
      "timezone_offset_seconds": -28800
    },
    {
      "country": "DE",
      "has_train_station": true,
      "id": "2913a73a-320c-4425-ae7e-beb4ce536e65",
      "lat": 49.38601,
      "legacy_id": 137733,
      "lng": 9.19184,
      "name": "Elztal-Dallau",
      "region": null,
      "score": 15.865902,
      "served": true,
      "subdivision_code": null,
      "timezone_offset_seconds": 3600
    },
    {
      "country": "US",
      "has_train_station": false,
      "id": "38c52d52-f978-44da-8c7e-c5e01c9f0f28",
      "lat": 32.7554883,
      "legacy_id": 26941,
      "lng": -97.3307658,
      "name": "Fort Worth, TX",
      "region": null,
      "score": 13.987432,
      "served": true,
      "subdivision_code": "US-TX",
      "timezone_offset_seconds": -21600
    },
    {
      "country": "US",
      "has_train_station": false,
      "id": "f355f9ce-f6ec-40d4-8d7c-c40da6ebeeb4",
      "lat": 33.2148412,
      "legacy_id": 35761,
      "lng": -97.1330683,
      "name": "Denton, TX",
      "region": null,
      "score": 12.279861,
      "served": true,
      "subdivision_code": "US-TX",
      "timezone_offset_seconds": -21600
    }
  ],
  "count": 7,
  "credits_used": 1,
  "fetched_at": "2026-11-19T09:23:17.523Z",
  "q": "dall"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/greyhound/greyhound-city-autocomplete-api/?offering=e1daf239-c38b-4635-a301-759a70db9a36

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
