{"openapi":"3.1.0","info":{"title":"Fusemetry API","version":"1.0.0","description":"Read-only access to the marketing data synced into Fusemetry (Search Console, and more connectors as they launch). Authenticate with a personal API key from the dashboard."},"servers":[{"url":"https://fusemetry.com/api/v1"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"Personal API key (fsm_key_…)"}},"schemas":{"QueryRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source_ids":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"start_date":{"type":"string"},"end_date":{"type":"string"},"metrics":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string"}},"dimensions":{"maxItems":6,"type":"array","items":{"type":"string"}},"filters":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","contains","notContains"]},"value":{"type":"string","minLength":1}},"required":["field","operator","value"]}},"order_by":{"type":"object","properties":{"field":{"type":"string"},"direction":{"type":"string","enum":["asc","desc"]}},"required":["field","direction"]},"limit":{"type":"integer","minimum":1,"maximum":1000}},"required":["source_ids","start_date","end_date","metrics"]}}},"security":[{"apiKey":[]}],"paths":{"/sources":{"get":{"operationId":"listSources","summary":"List the enabled sources (properties, ad accounts, stores)","responses":{"200":{"description":"Sources with sync status and available date range"}}}},"/fields":{"get":{"operationId":"listFields","summary":"Metrics and dimensions per connector","parameters":[{"name":"connector","in":"query","required":false,"schema":{"type":"string","enum":["gsc"]}}],"responses":{"200":{"description":"Fields per connector"}}}},"/query":{"post":{"operationId":"query","summary":"Query metrics for one or more sources of the same connector","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRequest"}}}},"responses":{"200":{"description":"Columns, rows and caveats (notes) to show with the numbers"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid API key"}}}}}}