{
  "openapi": "3.1.0",
  "info": {
    "title": "HowToAIjob Public Remote AI Jobs API",
    "version": "1.2.0",
    "summary": "Keyless, read-only public API for verified remote AI jobs, 250-country platform eligibility, 50 curated AI platforms, custom RSS/JSON job alert feeds, Edge Markdown, SVG badges, and Remote MCP.",
    "description": "Public read-only machine interfaces published by HowToAIjob (howtoaijobs.com). Compatible with ChatGPT Custom GPT Actions, LangChain OpenAPI Toolkits, CrewAI, Swagger UI, Feedly/RSS/Discord/Telegram automation, and MCP clients. No API key required.",
    "termsOfService": "https://howtoaijobs.com/terms",
    "contact": {
      "name": "Gopal Chandrawanshi (HowToAIjob)",
      "url": "https://howtoaijobs.com/contact",
      "email": "howtoaijob@gmail.com"
    },
    "license": {
      "name": "Public Read-Only Citation License (Content-Signal: search=yes, ai-input=yes, ai-train=no)",
      "url": "https://howtoaijobs.com/.well-known/tdmrep.json"
    }
  },
  "servers": [
    {
      "url": "https://howtoaijobs.com",
      "description": "HowToAIjob Production Edge (Cloudflare Pages)"
    }
  ],
  "paths": {
    "/api/feed": {
      "get": {
        "operationId": "getFilteredAiJobsFeed",
        "summary": "Get a live filtered RSS 2.0 or JSON Feed 1.1 stream of verified remote AI openings",
        "description": "Filters 5,600+ live AI job openings aggregated from 36 official company ATS boards and returns either RSS 2.0 XML (default) or JSON Feed 1.1 (format=json or Accept: application/feed+json).",
        "parameters": [
          { "name": "q", "in": "query", "required": false, "description": "Keyword search across title, company, location, and category (e.g. 'Python', 'RLHF', 'Spanish').", "schema": { "type": "string" } },
          { "name": "country", "in": "query", "required": false, "description": "ISO alpha-2 country code (e.g. 'IN', 'DE', 'BR', 'US') resolved via eligibility.json.", "schema": { "type": "string" } },
          { "name": "loc", "in": "query", "required": false, "description": "Location substring or country name/code filter.", "schema": { "type": "string" } },
          { "name": "company", "in": "query", "required": false, "description": "Company name substring filter (e.g. 'Mercor', 'Anthropic', 'Scale AI').", "schema": { "type": "string" } },
          { "name": "cat", "in": "query", "required": false, "description": "Job category slug (e.g. 'ai', 'eng', 'lang', 'research', 'study').", "schema": { "type": "string" } },
          { "name": "type", "in": "query", "required": false, "description": "Role type filter (e.g. 'Full-time', 'Contract').", "schema": { "type": "string" } },
          { "name": "remote", "in": "query", "required": false, "description": "Set to '1' or 'true' to return only remote-flagged roles.", "schema": { "type": "string", "enum": ["1", "true", "0", "false"] } },
          { "name": "days", "in": "query", "required": false, "description": "Only return jobs posted within the last N days (1–365).", "schema": { "type": "integer", "minimum": 1, "maximum": 365 } },
          { "name": "limit", "in": "query", "required": false, "description": "Max items to return (default 50, max 100).", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } },
          { "name": "format", "in": "query", "required": false, "description": "Output format: 'rss' (RSS 2.0 XML) or 'json' (JSON Feed 1.1).", "schema": { "type": "string", "enum": ["rss", "json"], "default": "rss" } }
        ],
        "responses": {
          "200": {
            "description": "Filtered live AI jobs feed",
            "content": {
              "application/feed+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": { "type": "string", "example": "https://jsonfeed.org/version/1.1" },
                    "title": { "type": "string" },
                    "home_page_url": { "type": "string", "format": "uri" },
                    "feed_url": { "type": "string", "format": "uri" },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": { "type": "string" },
                          "url": { "type": "string", "format": "uri" },
                          "title": { "type": "string" },
                          "content_text": { "type": "string" },
                          "date_published": { "type": "string" },
                          "tags": { "type": "array", "items": { "type": "string" } }
                        }
                      }
                    }
                  }
                }
              },
              "application/rss+xml": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "callMcpJsonRpc",
        "summary": "Invoke HowToAIjob Remote MCP Server (JSON-RPC 2.0 Streamable HTTP)",
        "description": "Stateless MCP Streamable HTTP endpoint (2025-06-18 / 2025-11-25) exposing 6 read-only tools: check_country_eligibility, search_curated_platforms, search_live_ai_jobs, calculate_real_hourly_pay, list_regional_guides, and compare_platforms.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["jsonrpc", "method"],
                "properties": {
                  "jsonrpc": { "type": "string", "const": "2.0" },
                  "id": { "oneOf": [{ "type": "string" }, { "type": "integer" }] },
                  "method": { "type": "string", "example": "tools/call" },
                  "params": { "type": "object" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          },
          "202": {
            "description": "Accepted (JSON-RPC notification or client response)"
          }
        }
      }
    },
    "/api/markdown": {
      "get": {
        "operationId": "getPageAsMarkdown",
        "summary": "Convert any public HowToAIjob HTML page into clean YAML-frontmatter Markdown",
        "parameters": [
          { "name": "path", "in": "query", "required": true, "description": "Public site path such as '/global-ai-jobs-by-country', '/compare', or '/articles/outlier-vs-mercor-vs-dataannotation'.", "schema": { "type": "string" } }
        ],
        "responses": {
          "200": {
            "description": "YAML-frontmatter Markdown representation with X-Markdown-Tokens header",
            "content": {
              "text/markdown": { "schema": { "type": "string" } }
            }
          }
        }
      }
    },
    "/api/badge": {
      "get": {
        "operationId": "getLiveSvgBadge",
        "summary": "Generate a live-updating SVG badge for global jobs, a specific country, or a company",
        "parameters": [
          { "name": "country", "in": "query", "required": false, "description": "ISO alpha-2 country code (e.g. 'DE', 'IN', 'US', 'BR').", "schema": { "type": "string" } },
          { "name": "company", "in": "query", "required": false, "description": "Company name (e.g. 'Mercor', 'Anthropic', 'Scale AI').", "schema": { "type": "string" } },
          { "name": "style", "in": "query", "required": false, "description": "Badge layout style.", "schema": { "type": "string", "enum": ["flat", "for-the-badge"] } }
        ],
        "responses": {
          "200": {
            "description": "SVG badge image",
            "content": {
              "image/svg+xml": { "schema": { "type": "string" } }
            }
          }
        }
      }
    },
    "/eligibility.json": {
      "get": {
        "operationId": "getCountryEligibilityMatrix",
        "summary": "Download the 250-country × 13-platform verified eligibility dataset",
        "responses": {
          "200": {
            "description": "Country eligibility JSON dataset",
            "content": {
              "application/json": { "schema": { "type": "object" } }
            }
          }
        }
      }
    },
    "/jobs.json": {
      "get": {
        "operationId": "getCuratedPlatforms",
        "summary": "Download the 50 hand-reviewed AI work platforms directory",
        "responses": {
          "200": {
            "description": "Array of 50 reviewed AI work platform objects",
            "content": {
              "application/json": { "schema": { "type": "array", "items": { "type": "object" } } }
            }
          }
        }
      }
    },
    "/live-jobs-meta.json": {
      "get": {
        "operationId": "getLiveJobsMetadata",
        "summary": "Get real-time live ATS job counts per company and last update timestamp",
        "responses": {
          "200": {
            "description": "Counts across official company ATS boards",
            "content": {
              "application/json": { "schema": { "type": "object" } }
            }
          }
        }
      }
    },
    "/live-jobs.json": {
      "get": {
        "operationId": "getAllLiveAiJobs",
        "summary": "Download the full live AI job openings feed from 36 official company boards",
        "responses": {
          "200": {
            "description": "Full live AI jobs dataset",
            "content": {
              "application/json": { "schema": { "type": "object" } }
            }
          }
        }
      }
    }
  }
}
