Skip to main content
POST
Search Code Examples
Search infrastructure code examples from curated repositories. Supports filtering by code type, cloud provider, services, quality score, and compliance standards.

Endpoint

Request Parameters

string
required
Search query in natural language (3-1,000 characters). Examples:
  • “RDS database with encryption”
  • “Kubernetes deployment with autoscaling”
  • “Terraform module for VPC”
  • “Docker compose with health checks”
string[]
Filter by code types. Supported types:Infrastructure as Code:
  • terraform, opentofu, pulumi, ansible, cloudformation, bicep, arm, cdk, cdk8s
Container & Orchestration:
  • kubernetes, docker, helm
CI/CD:
  • github_actions, gitlab_ci, jenkins, circleci, argo_workflows, tekton
Continuous Deployment:
  • argocd, flux, spinnaker
Monitoring & Observability:
  • prometheus, grafana, datadog, opentelemetry
Platform Engineering:
  • crossplane, karpenter, backstage
Serverless:
  • sam, serverless
Automation:
  • bash, powershell
string
Filter by cloud provider: aws, gcp, azure, oracle, alibaba
string[]
Filter by cloud services (e.g., ["rds", "s3", "ec2"]). Examples:
  • AWS: rds, s3, ec2, lambda, eks, vpc, iam
  • GCP: gce, gke, cloudsql, cloudstorage, cloudfunctions
  • Azure: aks, sql, storage, functions, vnet
integer
Minimum quality score (0-100). Filters examples by quality metrics including:
  • Code completeness
  • Best practices adherence
  • Documentation quality
  • Repository popularity (stars)
string
Filter by compliance standard. Returns only examples that implement controls for the specified standard:
  • PCI-DSS - Payment Card Industry Data Security Standard
  • HIPAA - Health Insurance Portability and Accountability Act
  • SOC2 - System and Organization Controls 2
  • CIS - Center for Internet Security Benchmarks
  • NIST-800-53 - NIST Cybersecurity Framework
  • ISO-27001 - ISO Information Security Management
integer
default:"10"
Maximum number of results (1-100)

Response Example

Response Fields

Code Example Object

Use Cases

Find Production-Ready Examples

Search for code examples that demonstrate production-ready patterns:
Find code examples that implement specific compliance requirements:

Multi-Tool Examples

Search across multiple infrastructure tools:

Cost-Optimized Examples

Find examples that demonstrate cost optimization:

Search Features

The endpoint uses a hybrid search approach combining:
  • Vector Search: Semantic understanding of your query using embeddings
  • BM25 Search: Keyword-based matching for precise term matching
  • Reranking: Optional reranking for improved relevance

Quality Filtering

Examples are scored based on:
  • Code completeness and correctness
  • Best practices adherence
  • Documentation quality
  • Repository popularity (GitHub stars)
  • Production readiness indicators

Compliance Mapping

When filtering by compliance_standard, the search:
  1. Identifies examples that implement relevant compliance controls
  2. Returns only examples with verified compliance mappings
  3. Includes compliance scores for applicable standards

Rate Limits

  • Professional: 2,000 queries/month
  • Team: 10,000 queries/month
  • Enterprise: Unlimited queries/month

Data Sources

Code examples are collected from:
  • Curated GitHub Repositories: High-quality repositories with 200+ stars
  • Official Documentation: Examples from official cloud provider documentation
  • Community Best Practices: Production-tested patterns from the community
All examples are:
  • ✅ Production-ready and tested
  • ✅ Enriched with compliance analysis
  • ✅ Analyzed for cost implications
  • ✅ Tagged with best practices
  • ✅ Contextually described for better search