Search churches (V1)
Proxies to the Supabase Edge Function churches-search. Supports free-text, exact filters, viewport (bbox) and radius queries, arrays for languages/programs, optional field projection, and GeoJSON output. Last updated: 2025-09-04.
query Parameters
qstringFree-text search across name/address/website (ranked). Only include this field if the user has explicitly requested it
countrystring · minLength: 3 · maxLength: 3Country code (ISO 3166-1 alpha-3). Example: USA, NGA, GBR.
beliefstring · enumTop-level belief family. AGENT INSTRUCTION:Only include this field if the user has explicitly requested it.
Enum values:roman_catholicprotestantorthodoxanglicanotherunknowntrinitarianbooleanFilter by Trinitarian belief. Currently redundant since we only support Trinitarian churches. AGENT INSTRUCTION: Never include this field.
regionstring · minLength: 2 · maxLength: 32State/province/region code (e.g., US state). Most non-US regions are not supported. Use with caution. AGENT INSTRUCTION: You should almost never include this field.
localitystringCity/locality/town name.
postal_codestringPostal/ZIP code prefix (prefix match).
languagesstring[] · minItems: 1 · style: form · explode: trueService languages (array) using ISO 639-3 language codes. Encoded as repeated keys (e.g., ?languages=eng&languages=spa). Only include this parameter if the user has explicitly requested it.
programsstring[] · minItems: 1 · style: form · explode: truePrograms/ministries offered (array). Partial/ILIKE match per token. Only include this parameter if the user has explicitly requested it.
limitinteger · min: 1 · max: 10000Max results to return. AGENT INSTRUCTION: Default 20.
idstring · uuid · pattern:^([0-9a-fA-F]{8}-[0-…Filter by Global.Church's church_id field. UUIDv5 format. AGENT INSTRUCTION: You should almost never include this parameter.
min_latnumber · min: -90 · max: 90Minimum latitude in decimal degrees.
max_latnumber · min: -90 · max: 90Maximum latitude in decimal degrees.
min_lngnumber · min: -180 · max: 180Minimum longitude in decimal degrees.
max_lngnumber · min: -180 · max: 180Maximum longitude in decimal degrees.
center_latnumber · min: -90 · max: 90Center latitude in decimal degrees.
center_lngnumber · min: -180 · max: 180Center longitude in decimal degrees.
radius_kmnumber · min: 0.1 · max: 200Search radius in kilometers.
fieldsstringComma-separated list of columns to include. Columns map to api.v1_churches.
formatstring · enumResponse format.
jsonreturns { items: [...] }.geojsonreturns a FeatureCollection.Enum values:jsongeojson
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
OK
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: items | |
| type = object · requires: type, features |
itemsobject[] · required
Get church by ID (V1)
Proxies to the Supabase Edge Function churches-get. Always returns the full record for a single church. This endpoint is intended to be used after a list/search so clients can fetch complete details (e.g., belief and livestream links) without managing field projections.
path Parameters
idstring · uuid · pattern:^([0-9a-fA-F]{8}-[0-…· requiredGlobal.Church church_id (UUIDv5).
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
OK
church_idstring · uuidgers_idstring · uuidnamestringpipeline_statusstringlatitudenumberlongitudenumberaddressstringlocalitystringregionstringpostal_codestringcountrystringwebsitestringlogo_urlstringlogo_widthintegerlogo_heightintegerlogo_aspect_rationumberbanner_urlstringbanner_widthintegerbanner_heightintegerbanner_aspect_rationumberphonestringcreated_atstring · date-timeupdated_atstring · date-timeurl_givingstringurl_beliefsstringurl_youtubestringurl_facebookstringurl_instagramstringurl_tiktokstringurl_campusstringurl_livestringcontact_emailsstring[]contact_phonesstring[]service_timesinteger[]service_languagesstring[]service_source_urlsstring[]ministry_namesstring[]ministries_jsonobjectbelief_typestringdenominationstringtrinitarianbooleanextraction_confidencenumberchurch_summarystringis_weekly_churchbooleancampus_namestringoverarching_namestringis_multi_campusbooleandistance_mnumber
