{
  "openapi": "3.0.1",
  "info": {
    "title": "PointHound Scraper - Award Flights, Miles & Availability",
    "description": "Scrape PointHound (pointhound.com) award flights and points deals by route or flexible dates. Extract points required, taxes, available seats, loyalty programs, transfer instructions and full flight segments. Supports flexible date searches and year-ahead deal discovery.",
    "version": "0.1",
    "x-build-id": "c6fnBNtIIhgEnxgWc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abotapi~pointhound-award-flight-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abotapi-pointhound-award-flight-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/abotapi~pointhound-award-flight-scraper/runs": {
      "post": {
        "operationId": "runs-sync-abotapi-pointhound-award-flight-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/abotapi~pointhound-award-flight-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-abotapi-pointhound-award-flight-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "mode",
            "enum": [
              "search",
              "explore",
              "urls"
            ],
            "type": "string",
            "description": "Search = one route on one departure date. Explore = flexible deals across a date window (up to a year). Links = paste result-page URLs.",
            "default": "search"
          },
          "origins": {
            "title": "Origins",
            "type": "array",
            "description": "Origin airport or area codes, e.g. JFK, NYC, LAX. Leave empty to search from anywhere where the site supports it.",
            "default": [
              "JFK"
            ],
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "Destinations",
            "type": "array",
            "description": "Destination airport or area codes, e.g. LHR, LON, CDG.",
            "default": [
              "LHR"
            ],
            "items": {
              "type": "string"
            }
          },
          "departureDate": {
            "title": "Departure date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "One-way departure date, YYYY-MM-DD. Optional in search mode: when omitted, the run defaults to two weeks from today."
          },
          "dateBuffer": {
            "title": "Search +/- 1 day around the date",
            "type": "boolean",
            "description": "Same toggle as the site's own search form: widen the departure date by one day on each side.",
            "default": false
          },
          "cabin": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class to search.",
            "default": "economy"
          },
          "passengers": {
            "title": "Travelers",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of travelers the prices are quoted for.",
            "default": 1
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "points",
              "duration"
            ],
            "type": "string",
            "description": "Order of the returned results.",
            "default": "points"
          },
          "airlines": {
            "title": "Airline filter (route search)",
            "type": "array",
            "description": "Optional airline names to keep, e.g. Lufthansa, British Airways. Matched against the airlines actually serving the route; unknown names are reported and ignored.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Window start",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First departure date of the explore window, YYYY-MM-DD. Windows up to 365 days are accepted."
          },
          "endDate": {
            "title": "Window end",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Last departure date of the explore window, YYYY-MM-DD."
          },
          "countries": {
            "title": "Destination-country filter (explore)",
            "type": "array",
            "description": "Optional two-letter country codes to keep, e.g. GB, FR. Matched against the countries the window actually serves.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "earnPrograms": {
            "title": "Earn-program filter (explore)",
            "type": "array",
            "description": "Optional credit-card program names to restrict deals to, e.g. Chase Ultimate Rewards, Amex Membership Rewards. Unknown names are reported and ignored.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "redeemPrograms": {
            "title": "Loyalty-program filter (explore)",
            "type": "array",
            "description": "Optional loyalty program names, e.g. Virgin Atlantic Flying Club, Delta SkyMiles. Unknown names are reported and ignored.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "links": {
            "title": "Result-page links",
            "type": "array",
            "description": "Paste one or more pointhound.com result URLs. Non-result pages (home, cards, blog) are reported and skipped.",
            "default": [
              {
                "url": "https://www.pointhound.com/flights?q=CiIKA0pGSxIbSm9obiBGIEtlbm5lZHkgSW50bCBBaXJwb3J0Eh4KA0xIUhIXTG9uZG9uIEhlYXRocm93IEFpcnBvcnQaCjIwMjYtMTItMTUoATAB"
              },
              {
                "url": "https://www.pointhound.com/explore/search/ChgKA05ZQxIRTmV3IFlvcmssIE5ZIEFyZWESFgoDTE9OEg9Mb25kb24sIFVLIEFyZWEaGAoKMjAyNi0xMi0wMRIKMjAyNi0xMi0xNSABKAEwATgDYgBoAXgCgAEB"
              },
              {
                "url": "https://www.pointhound.com/flight/off_dlnqlVV1Z2"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of results to save. 0 means no limit.",
            "default": 20
          },
          "maxPages": {
            "title": "Max pages (0 = unlimited)",
            "minimum": 0,
            "type": "integer",
            "description": "Safety page cap per scope. 0 (the default) does not cap anything - Max items remains the only cap that stops a run early.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select residential proxies for the most reliable results on busy runs. Custom proxy URLs are honored on every read.",
            "default": {
              "useApifyProxy": true
            }
          },
          "resumeFromRunId": {
            "title": "Resume from run ID",
            "type": "string",
            "description": "ID of an unfinished run of this Actor to resume (re-reads the same scope and skips already-pushed rows). Mutually exclusive with incremental mode."
          },
          "incrementalMode": {
            "title": "Incremental mode",
            "type": "boolean",
            "description": "Keep per-scope state and classify every row NEW / UNCHANGED / UPDATED / EXPIRED. Unchanged rows are suppressed unless emitUnchanged is set; useful for scheduled watch runs.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Optional name for the incremental state. Leave empty to derive it from the scope automatically."
          },
          "emitUnchanged": {
            "title": "Emit unchanged rows",
            "type": "boolean",
            "description": "Also push rows classified UNCHANGED (with changeType filled in) instead of suppressing them.",
            "default": false
          },
          "emitExpired": {
            "title": "Emit expired rows",
            "type": "boolean",
            "description": "Push EXPIRED rows for records that disappeared from a complete scan (route/explore scopes only).",
            "default": false
          },
          "ignoreFieldsForChanges": {
            "title": "Ignore fields when detecting changes (incremental mode only)",
            "type": "array",
            "description": "Extra row fields (dotted paths allowed) that must never make a row UPDATED - on top of the built-in volatile set (freshness timestamps, seats remaining).",
            "default": []
          },
          "mcpConnectors": {
            "title": "MCP connectors",
            "type": "array",
            "description": "Optional MCP connector descriptors, e.g. [{\"resourceType\":\"mcpConnector\",\"channelId\":\"...\"}]. Leave empty to skip.",
            "default": []
          },
          "notionParentPageUrl": {
            "title": "Notion parent page URL",
            "type": "string",
            "description": "When exporting to Notion via an MCP connector, the parent page the results are written under."
          },
          "maxNotifyListings": {
            "title": "Max results sent to connectors",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on how many results one run delivers to MCP connectors.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}