Astrology icon

Astrology

Perform astrological calculations via Astrology API

Actions231

Glossary → Cities

AI-generated

Summary

Retrieves a list of cities from the astrology glossary with optional filtering, pagination, and sorting.

Inputs

  • Search — A search term to filter the cities by name.
  • Country Code — An ISO 3166-1 alpha-2 country code to filter cities by country.
  • Limit — Maximum number of city results to return (minimum 1, default 50).
  • Offset — Number of city entries to skip for pagination (minimum 0, default 0).
  • Sort By — Field to sort results by; either 'name' or 'population' (default 'name').
  • Sort Order — Sort direction, either ascending ('asc') or descending ('desc') (default 'asc').
  • Language — Language code for response text and interpretations, e.g., 'en' for English (default 'en').
  • Simplify — Whether to return a simplified response containing key data only; disables full API metadata (default true).

Output shape

a list of city records from the astrology glossary API

Supports search filtering by city name, country code filtering, pagination (limit and offset), sorting (by name or population with ascending or descending order), and language selection for the returned data text. The 'simplify' input toggles between a simplified key-data-only response and the full detailed API response.

Examples

Example 1: List up to 10 cities in the US sorted by population descending

Set Country Code to 'US', Limit to 10, Sort By to 'population', Sort Order to 'desc', Language to 'en', Simplify to true.

Links

Discussion