Georgia Commons Search API
The search API from Georgia Commons — 3 operation(s) for search.
The search API from Georgia Commons — 3 operation(s) for search.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/georgiacommons-org:georgiacommons-org-search-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Georgia Commons Search API
description: 'Georgia''s public government documents as source text: search across every collection, documents and their Markdown twins, and grounded chat. A project of Georgia Civic Data; not affiliated with the State of Georgia.'
version: 1.0.0
tags:
- name: Search
paths:
/api/search:
get:
tags:
- Search
summary: Search Route
description: 'Search passages across every collection (BM25 and meaning, fused and reranked), grouped by document.
Every result carries its best passages with a citation (`version_id#start-end`) and a deep link; the
response has facet counts, the interpretation used, a confidence band, and coverage notes.'
operationId: search_route_api_search_get
parameters:
- name: q
in: query
required: false
schema:
type: string
maxLength: 2000
description: 'A question or keywords. Empty: browse the filtered documents.'
default: ''
title: Q
description: 'A question or keywords. Empty: browse the filtered documents.'
- name: doc_type
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
description: 'Document types (repeatable): bill, opinion, code_section, constitution_provision, meeting_transcript, amendment.'
title: Doc Type
description: 'Document types (repeatable): bill, opinion, code_section, constitution_provision, meeting_transcript, amendment.'
- name: level
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
description: Levels of government (repeatable).
title: Level
description: Levels of government (repeatable).
- name: branch
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
description: Branches (repeatable).
title: Branch
description: Branches (repeatable).
- name: body
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
description: Issuing body ids (repeatable), e.g. ga-supreme-court, ga-house-rules.
title: Body
description: Issuing body ids (repeatable), e.g. ga-supreme-court, ga-house-rules.
- name: body_type
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
description: Kinds of body (repeatable).
title: Body Type
description: Kinds of body (repeatable).
- name: place
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: A Georgia place in words or as an id (Atlanta, city:savannah).
title: Place
description: A Georgia place in words or as an id (Atlanta, city:savannah).
- name: place_scope
in: query
required: false
schema:
enum:
- either
- jurisdiction
- mentions
type: string
default: either
title: Place Scope
- name: include_overlapping
in: query
required: false
schema:
type: boolean
default: true
title: Include Overlapping
- name: date_from
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Date From
- name: date_to
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Date To
- name: date_field
in: query
required: false
schema:
anyOf:
- enum:
- date_primary
- date_filed
- date_met
- date_adopted
- date_effective
type: string
- type: 'null'
title: Date Field
- name: session
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Session
- name: status
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
title: Status
- name: action
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
title: Action
- name: linked_to
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Only documents linked to this id.
title: Linked To
description: Only documents linked to this id.
- name: relation
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
description: 'With linked_to: relation types.'
title: Relation
description: 'With linked_to: relation types.'
- name: parent
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Only documents under this hierarchy node (code:t16, ga-const:art-i).
title: Parent
description: Only documents under this hierarchy node (code:t16, ga-const:art-i).
- name: versions
in: query
required: false
schema:
enum:
- current
- all
type: string
default: current
title: Versions
- name: mode
in: query
required: false
schema:
enum:
- best
- all
type: string
default: best
title: Mode
- name: sort
in: query
required: false
schema:
enum:
- relevance
- newest
- oldest
- id
type: string
default: relevance
title: Sort
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 10
title: Limit
- name: cursor
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Cursor
- name: lang
in: query
required: false
schema:
enum:
- en
- es
type: string
default: en
title: Lang
- name: items
in: query
required: false
schema:
type: boolean
description: Attach each type's list-row fields (what the hub listings show).
default: false
title: Items
description: Attach each type's list-row fields (what the hub listings show).
- name: offset
in: query
required: false
schema:
anyOf:
- type: integer
minimum: 0
- type: 'null'
description: 'Browse only: skip this many (instead of cursor).'
title: Offset
description: 'Browse only: skip this many (instead of cursor).'
- name: If-None-Match
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: If-None-Match
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/search/markdown:
get:
tags:
- Search
summary: Search Markdown
description: The same search as Markdown, for a reader that wants text.
operationId: search_markdown_api_search_markdown_get
parameters:
- name: q
in: query
required: false
schema:
type: string
maxLength: 2000
description: 'A question or keywords. Empty: browse the filtered documents.'
default: ''
title: Q
description: 'A question or keywords. Empty: browse the filtered documents.'
- name: doc_type
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
description: 'Document types (repeatable): bill, opinion, code_section, constitution_provision, meeting_transcript, amendment.'
title: Doc Type
description: 'Document types (repeatable): bill, opinion, code_section, constitution_provision, meeting_transcript, amendment.'
- name: body
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
description: Issuing body ids (repeatable), e.g. ga-supreme-court, ga-house-rules.
title: Body
description: Issuing body ids (repeatable), e.g. ga-supreme-court, ga-house-rules.
- name: place
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: A Georgia place in words or as an id (Atlanta, city:savannah).
title: Place
description: A Georgia place in words or as an id (Atlanta, city:savannah).
- name: date_from
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Date From
- name: date_to
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Date To
- name: mode
in: query
required: false
schema:
enum:
- best
- all
type: string
default: best
title: Mode
- name: limit
in: query
required: false
schema:
type: integer
maximum: 50
minimum: 1
default: 10
title: Limit
- name: cursor
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Cursor
- name: If-None-Match
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: If-None-Match
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/resolve:
get:
tags:
- Search
summary: Resolve Route
description: Any written form (SB 3, 317 Ga. 528, O.C.G.A. § 16-11-127, a page URL) to its document id.
operationId: resolve_route_api_resolve_get
parameters:
- name: q
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 300
title: Q
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ResolveResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
CoverageNote:
properties:
code:
type: string
title: Code
text:
type: string
title: Text
text_es:
anyOf:
- type: string
- type: 'null'
title: Text Es
params:
additionalProperties: true
type: object
title: Params
type: object
required:
- code
- text
title: CoverageNote
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
Interpretation:
properties:
anchors:
items:
additionalProperties: true
type: object
type: array
title: Anchors
alternatives:
items:
additionalProperties: true
type: object
type: array
title: Alternatives
places:
items:
additionalProperties: true
type: object
type: array
title: Places
bodies:
items:
additionalProperties: true
type: object
type: array
title: Bodies
proposed_filters:
additionalProperties: true
type: object
title: Proposed Filters
applied_filters:
additionalProperties: true
type: object
title: Applied Filters
date_field:
anyOf:
- type: string
- type: 'null'
title: Date Field
retrieval:
type: string
title: Retrieval
default: hybrid
phrasings:
items:
type: string
type: array
title: Phrasings
type: object
title: Interpretation
SearchResponse:
properties:
query:
type: string
title: Query
results:
items:
$ref: '#/components/schemas/DocumentHit'
type: array
title: Results
total:
anyOf:
- type: integer
- type: 'null'
title: Total
documents_found:
anyOf:
- type: integer
- type: 'null'
title: Documents Found
total_kind:
type: string
title: Total Kind
default: found
next_cursor:
anyOf:
- type: string
- type: 'null'
title: Next Cursor
facets:
additionalProperties:
items:
additionalProperties: true
type: object
type: array
type: object
title: Facets
interpretation:
$ref: '#/components/schemas/Interpretation'
confidence:
type: string
title: Confidence
default: medium
coverage_notes:
items:
$ref: '#/components/schemas/CoverageNote'
type: array
title: Coverage Notes
timings_ms:
additionalProperties:
type: number
type: object
title: Timings Ms
type: object
required:
- query
- results
title: SearchResponse
ResolveResponse:
properties:
status:
type: string
title: Status
id:
anyOf:
- type: string
- type: 'null'
title: Id
url:
anyOf:
- type: string
- type: 'null'
title: Url
choices:
items:
additionalProperties: true
type: object
type: array
title: Choices
default: []
type: object
required:
- status
title: ResolveResponse
PassageHit:
properties:
passage_id:
type: integer
title: Passage Id
text:
type: string
title: Text
header:
type: string
title: Header
kind:
type: string
title: Kind
version_id:
type: string
title: Version Id
char_start:
anyOf:
- type: integer
- type: 'null'
title: Char Start
char_end:
anyOf:
- type: integer
- type: 'null'
title: Char End
start_seconds:
anyOf:
- type: number
- type: 'null'
title: Start Seconds
part:
anyOf:
- type: string
- type: 'null'
title: Part
heading_path:
items:
type: string
type: array
title: Heading Path
anchor:
anyOf:
- type: string
- type: 'null'
title: Anchor
segment_id:
anyOf:
- type: integer
- type: 'null'
title: Segment Id
action:
type: string
title: Action
default: unknown
action_source:
anyOf:
- type: string
- type: 'null'
title: Action Source
role:
type: string
title: Role
default: evidence
score:
anyOf:
- type: number
- type: 'null'
title: Score
cite:
anyOf:
- type: string
- type: 'null'
title: Cite
link:
anyOf:
- type: string
- type: 'null'
title: Link
type: object
required:
- passage_id
- text
- header
- kind
- version_id
- char_start
- char_end
title: PassageHit
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
DocumentHit:
properties:
id:
type: string
title: Id
title:
type: string
title: Title
url:
type: string
title: Url
doc_type:
type: string
title: Doc Type
cite_as:
anyOf:
- type: string
- type: 'null'
title: Cite As
date:
anyOf:
- type: string
- type: 'null'
title: Date
date_field:
anyOf:
- type: string
- type: 'null'
title: Date Field
body:
anyOf:
- type: string
- type: 'null'
title: Body
body_name:
anyOf:
- type: string
- type: 'null'
title: Body Name
level:
anyOf:
- type: string
- type: 'null'
title: Level
status:
anyOf:
- type: string
- type: 'null'
title: Status
status_class:
anyOf:
- type: string
- type: 'null'
title: Status Class
status_date:
anyOf:
- type: string
- type: 'null'
title: Status Date
last_action:
anyOf:
- type: string
- type: 'null'
title: Last Action
exact:
type: boolean
title: Exact
default: false
score:
anyOf:
- type: number
- type: 'null'
title: Score
summary:
anyOf:
- type: string
- type: 'null'
title: Summary
summary_label:
anyOf:
- type: string
- type: 'null'
title: Summary Label
passages:
items:
$ref: '#/components/schemas/PassageHit'
type: array
title: Passages
occurrences:
type: integer
title: Occurrences
default: 0
stage:
anyOf:
- type: string
- type: 'null'
title: Stage
item:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Item
type: object
required:
- id
- title
- url
- doc_type
title: DocumentHit
securitySchemes:
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key