Find real churches near a place, or one church by id
find_churchesPURPOSE: Find real churches near a place, nearest first, merged live from churches on The Living Bread and an open worldwide directory of about 120,000 churches; or read one directory church's open data record by its id. WHEN TO USE: "a Baptist church in Dallas", "a parish near Manchester", or after another answer returned an lb:church id. WHEN NOT: services or events at a time: find_gatherings. Groups to join or student communities: find_communities. What a tradition is: learn_the_faith (mode heritage). MODES (required parameters in brackets): near [lat and lng, or city] churches within 250 km (denomination filters by one lowercase word such as "baptist" or "catholic"; limit 1 to 20, default 8). by_id [id, or country and slug] one church: pass the whole lb:church:/ as id, or its two parts. OUTPUT: mode, answered_by, and: near gives searched, count, churches [{id, name, where, distance_km, denomination, on_living_bread, url}], find_a_church and gatherings links, plus honest and nearest_we_hold when count is 0; by_id gives id, name, url, denomination, country, website, verified and provenance. BEHAVIOR: read only; reads the live directory and geocodes the city. City level by design: names, city and distance, never street addresses or contacts. No church within 250 km returns count 0 with an honest sentence and the nearest one held, if any. An unknown id returns a not_found error. The search words (never a user id) are logged anonymously. Parameters a mode does not use are ignored and named in ignored_params. Access: no sign-in; shared limit of 300 requests a minute per IP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | For by_id: the full id, e.g. "lb:church:colombia/iglesia-la-capuchina". | |
| lat | No | Latitude in decimal degrees, only if the person shared their location; pair with lng. Coordinates win over city. | |
| lng | No | Longitude in decimal degrees, paired with lat. | |
| city | No | For near: a city, region or country, used when there are no coordinates: "Dallas", "Lagos". Geocoded to its centre. | |
| mode | No | Which kind of answer: near, by_id. Each mode, and the parameters it needs, is explained in the description. Leave it out and the answer says what each mode is for. | |
| slug | No | For by_id without id: the church slug, e.g. "iglesia-la-capuchina". | |
| limit | No | For near: maximum churches, 1 to 20 (default 8). | |
| country | No | For by_id without id: the country slug, e.g. "colombia". | |
| denomination | No | For near: one lowercase tradition word: "baptist", "catholic", "methodist", "pentecostal", "orthodox", "anglican". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Always true on a successful answer (errors come back as isError, never here). | |
| ids | No | Up to 25 ids found in this answer, for follow-up calls. | |
| mode | Yes | The mode that answered. | |
| license | No | License URL of the returned data (CC BY 4.0 unless stated). | |
| evidence | No | Present when Scripture was read: translation, canon, corpus version, attribution, and a SHA-256 per passage. | |
| freshness | No | How current the answer is: kind (scheduled | recently_observed | verified_live | record), retrieved_at, available_now (true only when activity was verified live). | |
| source_url | No | The first public web page this answer came from or points to. | |
| visibility | No | "public" for shared data, "yours" for the signed-in believer's own data. | |
| answered_by | Yes | The implementation that answered (the same tool name the signed-in endpoint lists). | |
| attribution | No | Credit line for the data: The Living Bread (living-bread.org). | |
| next_actions | No | Up to 4 links the person can open next. | |
| result_state | No | "empty" when nothing matched (count 0, no results); the text then says so plainly. | |
| content_flags | No | ["instruction_like_text_removed"] when retrieved text was withheld. | |
| content_layers | No | Which fields are Scripture and which are human interpretation or reflection. | |
| ignored_params | No | Parameters given that this mode does not use. |