Apply American Petroleum Institute codes and standards for offshore structures and production systems
American Petroleum Institute (API) codes and standards for oil & gas production, refining, and offshore structures.
Version: 1.0.0 Created: 2026-01-12 Category: SME / Codes & Standards
API standards are the globally recognized benchmarks for the oil and gas industry. This skill focuses on the application, lookup, and programmatic compliance verification of API specifications (Specs), Recommended Practices (RPs), and Standards (Std).
Use the StandardsLookup tool to find full documents.
Path: /mnt/ace/O&G-Standards/API/
def check_api_6a_compliance(pressure_rating, temp_class, material_class):
"""
Verify API 6A equipment rating.
"""
valid_pressures = [2000, 3000, 5000, 10000, 15000, 20000]
if pressure_rating not in valid_pressures:
return False, f"Invalid API 6A pressure rating: {pressure_rating}"
valid_temp_classes = ['K', 'L', 'P', 'R', 'S', 'T', 'U', 'V']
if temp_class not in valid_temp_classes:
return False, f"Invalid API 6A temp class: {temp_class}"
return True, "Compliant"
from digitalmodel.modules.standards_lookup import StandardsLookup
def find_api_docs(query):
lookup = StandardsLookup()
# Filter for API specifically
results = [r for r in lookup.search(query) if "/API/" in r['path']]
return results
/mnt/ace/O&G-Standards/API/