{"schemaVersion":1,"resourceType":"connector","slug":"bls","name":"BLS","catalog":"bls","description":"Retrieve labor, employment, price and productivity series with period codes, footnotes, calculations and survey metadata","language":"Python","categories":["economy"],"repository":"https://github.com/Query-farm/vgi-bls","license":"0BSD","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.2.0","publishedAt":"2026-11-25T17:53:41Z","url":"https://github.com/Query-farm/vgi-bls/releases/tag/v0.2.0"},"links":{"html":"https://query.farm/products/orchard/connectors/bls/","llms":"https://query.farm/products/orchard/connectors/bls/llms.txt","markdown":"https://query.farm/products/orchard/connectors/bls/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/bls.json","objects":"https://query.farm/products/orchard/api/v1/connectors/bls/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=bls&q={query}"},"authentication":{"mode":"optional","guidance":"Works without a key; a free registration key raises limits and adds catalog features.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[{"type":"bls_api","description":"Optional BLS API registration key for higher limits and catalog/calculation features.","documentation":"https://www.bls.gov/developers/","parameters":[{"name":"api_key","type":"VARCHAR","required":false,"redact":true,"description":"Your BLS registration key."}],"requiredBy":[],"createSql":"CREATE SECRET bls_api (\n    TYPE bls_api,\n    api_key '<BLS_API_API_KEY>'  -- secret\n);"}]},"deployment":{"local":{"methods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'bls' AS bls (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-bls@v0.2.0 vgi-bls-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'bls' AS bls (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-bls:0.2.0'\n);"}]}],"pinnedMethods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'bls' AS bls (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-bls@v0.2.0 vgi-bls-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'bls' AS bls (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-bls:0.2.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-bls","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=bls","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'bls' AS bls (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-bls@v0.2.0 vgi-bls-worker'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Discover BLS surveys","sql":"SELECT survey_abbreviation, survey_name FROM bls.main.surveys() ORDER BY survey_abbreviation","requiresCredentials":null,"note":null,"objects":[{"name":"bls.main.surveys","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/bls/#obj-main-surveys","markdown":"https://query.farm/products/orchard/connectors/bls/objects/table_function.bWFpbg.c3VydmV5cw.md","json":"https://query.farm/products/orchard/api/v1/connectors/bls/objects/table_function.bWFpbg.c3VydmV5cw.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:12:39+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.2.0","sample":{"columns":["survey_abbreviation","survey_name"],"types":["VARCHAR","VARCHAR"],"rows":[["AP","Consumer Price Index - Average Price Data"],["BD","Business Employment Dynamics"],["BG","Collective Bargaining Agreements-State and Local Government"],["BP","Collective Bargaining Agreements-Private Sector"],["CA","Biennial Nonfatal Case and Demographic numbers and rates: selected characterist…"]],"more":true}},"artifact":null},"objects":{"total":5,"index":"https://query.farm/products/orchard/api/v1/connectors/bls/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=bls&q={query}"},"agentTasks":["Using bls.main.surveys, discover bls surveys. Use the arguments in this example and return the same columns: SELECT survey_abbreviation, survey_name FROM bls.main.surveys() ORDER BY survey_abbreviation","Using bls.main.popular_series, discover popular series. Use the arguments in this example and return the same columns: SELECT series_id FROM bls.main.popular_series(survey := 'CU') ORDER BY series_id","Using bls.main.observations, retrieve labor statistics. Use the arguments in this example and return the same columns: SELECT year, period, value FROM bls.main.observations(['LNS14000000'], 2024, 2024) ORDER BY year, period","Using bls.main.series, inspect series metadata. Use the arguments in this example and return the same columns: SELECT series_id, series_title, seasonality FROM bls.main.series(['LNS14000000'], 2024, 2024) ORDER BY series_id","Using bls.main.latest, read latest observation. Use the arguments in this example and return the same columns: SELECT series_id, year, period, value FROM bls.main.latest('LNS14000000') ORDER BY year, period","Using bls.main.popular_series (overall, no survey argument) and bls.main.surveys, count the popular series in each survey, matching a series to its survey by the series identifier's two-letter prefix. Return columns survey_abbreviation (VARCHAR), survey_name (VARCHAR) and popular_count (BIGINT), one row per survey that has at least one popular series, ordered by survey_abbreviation.","For BLS series CUUR0000SA0 in 2024, return its published series title from bls.main.series together with the highest monthly value from bls.main.observations (monthly periods M01-M12 only; ignore NULL values). Return one row with columns series_id (VARCHAR), series_title (VARCHAR) and peak_value (DOUBLE)."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-bls","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":1,"passed":1,"failed":0,"needs_credentials":0,"location":"uvx --from git+https://github.com/Query-farm/vgi-bls@v0.2.0 vgi-bls-worker","transport":"subprocess","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:10:28+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}