# JustWatch Leaving Soon API

Get JustWatch Leaving Soon data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, providers, and retrieve structured data including selected offer country, source title identity, reported leaving date, service code, and offer end date for entertainment catalogue, and discovery views.

Documentation: https://openany.si/justwatch/justwatch-leaving-soon-api/47e3747e-5257-42ef-945b-376217699a03/
API ID: 47e3747e-5257-42ef-945b-376217699a03
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/justwatch/v1/leaving
Page update time: 2026-12-03T02:45:22.344Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:45:20.094Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## JustWatch Leaving Soon API

country defaults to US. within supports today, tomorrow, 7-day or 30-day windows, with 30 days as default. providers uses comma-separated service codes and monetization source enums. titles retains the specific offer and available\_until context; limit defaults to 20, maximum 40, and next\_cursor continues.

## What You Can Build

- **Entertainment catalogue**: Retain source identities and the requested market or date context in catalogue records.
- **Discovery views**: Use the returned source links and metadata to connect related detail pages in a discovery interface.

## Returned Data

| Field | Meaning |
| --- | --- |
| `country` | Selected offer country |
| `titles[].id` | Source title identity |
| `titles[].leaving_date` | Reported leaving date |
| `titles[].offer.provider_code` | Service code |
| `titles[].offer.available_until` | Offer end date |
| `next_cursor` | Next titles cursor |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "JustWatch Leaving Soon API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string",
          "description": "Two-letter country (default US): offers and titles of that country."
        },
        "providers": {
          "type": "string",
          "description": "Only these services: comma-separated short codes, e.g. `nfx` (Netflix)."
        },
        "within": {
          "type": "string",
          "description": "Leaving today, tomorrow, within 7 days or within 30 days (default).",
          "enum": [
            "today",
            "tomorrow",
            "7d",
            "30d"
          ]
        },
        "language": {
          "type": "string",
          "description": "Language of titles, descriptions and genre names (default en)."
        },
        "type": {
          "type": "string",
          "description": "Only films or only series.",
          "enum": [
            "movie",
            "show"
          ]
        },
        "monetization": {
          "type": "string",
          "description": "Comma-separated: FLATRATE, FREE, ADS, RENT, BUY, CINEMA, FLATRATE_AND_BUY, FAST."
        },
        "genres": {
          "type": "string",
          "description": "Comma-separated genre codes, e.g. act, cmy, drm, hrr, scf."
        },
        "year_min": {
          "type": "integer",
          "description": "Released in or after this year."
        },
        "year_max": {
          "type": "integer",
          "description": "Released in or before this year."
        },
        "limit": {
          "type": "integer",
          "description": "Titles per page (default 20, max 40)."
        },
        "cursor": {
          "type": "string",
          "description": "Pass `next_cursor` back; null on the last page."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "packages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "country": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "next_cursor": {
      "type": "string"
    },
    "titles": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "age_certification": {
                "type": "string"
              },
              "certified_fresh": {
                "type": "null"
              },
              "description": {
                "type": "string"
              },
              "dislikes": {
                "type": "integer"
              },
              "genre_codes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "genres": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "id": {
                "type": "string"
              },
              "imdb_id": {
                "type": "string"
              },
              "imdb_score": {
                "type": "number"
              },
              "imdb_votes": {
                "type": "integer"
              },
              "justwatch_rating": {
                "type": "number"
              },
              "leaving_date": {
                "type": "string"
              },
              "likes": {
                "type": "integer"
              },
              "object_id": {
                "type": "integer"
              },
              "offer": {
                "type": "object",
                "properties": {
                  "added": {
                    "type": "string"
                  },
                  "audio_languages": {
                    "type": "array",
                    "items": {}
                  },
                  "audio_technology": {
                    "type": "array",
                    "items": {}
                  },
                  "available_until": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "episodes": {
                    "type": "null"
                  },
                  "monetization": {
                    "type": "string"
                  },
                  "previous_price": {
                    "type": "null"
                  },
                  "price": {
                    "type": "null"
                  },
                  "price_change_percent": {
                    "type": "integer"
                  },
                  "price_text": {
                    "type": "null"
                  },
                  "provider": {
                    "type": "string"
                  },
                  "provider_code": {
                    "type": "string"
                  },
                  "provider_icon": {
                    "type": "string"
                  },
                  "provider_id": {
                    "type": "integer"
                  },
                  "provider_slug": {
                    "type": "string"
                  },
                  "quality": {
                    "type": "string"
                  },
                  "subtitle_languages": {
                    "type": "array",
                    "items": {}
                  },
                  "type": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "video_technology": {
                    "type": "array",
                    "items": {}
                  }
                }
              },
              "original_title": {
                "type": "string"
              },
              "poster": {
                "type": "string"
              },
              "production_countries": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "provider": {
                "type": "string"
              },
              "release_date": {
                "type": "string"
              },
              "released": {
                "type": "boolean"
              },
              "runtime_min": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              },
              "tmdb_id": {
                "type": "string"
              },
              "tmdb_popularity": {
                "type": "number"
              },
              "tmdb_score": {
                "type": "number"
              },
              "tomatometer": {
                "type": "integer"
              },
              "type": {
                "type": "string"
              },
              "upcoming_releases": {
                "type": "array",
                "items": {}
              },
              "url": {
                "type": "string"
              },
              "year": {
                "type": "integer"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "total": {
      "type": "integer"
    },
    "within": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/justwatch/v1/leaving?output=json&providers=nfx' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "applied_filters": {
    "packages": [
      "nfx"
    ]
  },
  "cached": false,
  "count": 20,
  "country": "US",
  "credits_used": 1,
  "next_cursor": "MjA=",
  "titles": [
    {
      "age_certification": "R",
      "certified_fresh": null,
      "description": "In Los Angeles, a gang of bank robbers who call themselves The Ex-Presidents commit their crimes while wearing masks of Reagan, Carter, Nixo…",
      "dislikes": 209,
      "genre_codes": [
        "act",
        "crm",
        "… 1 more"
      ],
      "genres": [
        "Action & Adventure",
        "Crime",
        "… 1 more"
      ],
      "id": "tm8927",
      "imdb_id": "tt0102685",
      "imdb_score": 7.3,
      "imdb_votes": 231305,
      "justwatch_rating": 0.941059688809,
      "leaving_date": "2026-11-30",
      "likes": 3835,
      "object_id": 8927,
      "offer": {
        "added": "2026-11-01",
        "audio_languages": [],
        "audio_technology": [],
        "available_until": "2026-11-30",
        "currency": "USD",
        "episodes": null,
        "monetization": "FLATRATE",
        "previous_price": null,
        "price": null,
        "price_change_percent": 0,
        "price_text": null,
        "provider": "Netflix",
        "provider_code": "nfx",
        "provider_icon": "https://images.justwatch.com/icon/207360008/s100/netflix.png",
        "provider_id": 8,
        "provider_slug": "netflix",
        "quality": "SD",
        "subtitle_languages": [],
        "type": "STANDARD",
        "url": "https://www.netflix.com/title/60020602",
        "video_technology": []
      },
      "original_title": "Point Break",
      "poster": "https://images.justwatch.com/poster/45089359/s718/point-break-1991.jpg",
      "production_countries": [
        "US"
      ],
      "provider": "Netflix",
      "release_date": "1991-07-12",
      "released": true,
      "runtime_min": 120,
      "title": "Point Break",
      "tmdb_id": "1089",
      "tmdb_popularity": 9.116,
      "tmdb_score": 7.151,
      "tomatometer": 69,
      "type": "MOVIE",
      "upcoming_releases": [],
      "url": "https://www.justwatch.com/us/movie/point-break-1991",
      "year": 1991
    },
    {
      "age_certification": "R",
      "certified_fresh": null,
      "description": "Single father and former cop Tom Cutler has an unusual occupation: he cleans up death scenes. But when he's called in to sterilize a wealthy…",
      "dislikes": 61,
      "genre_codes": [
        "act",
        "crm",
        "… 1 more"
      ],
      "genres": [
        "Action & Adventure",
        "Crime",
        "… 1 more"
      ],
      "id": "tm78671",
      "imdb_id": "tt0896798",
      "imdb_score": 6.1,
      "imdb_votes": 50614,
      "justwatch_rating": 0.784286852746,
      "leaving_date": "2026-11-19",
      "likes": 292,
      "object_id": 78671,
      "offer": {
        "added": "2026-10-21",
        "audio_languages": [],
        "audio_technology": [],
        "available_until": "2026-11-19",
        "currency": "USD",
        "episodes": null,
        "monetization": "FLATRATE",
        "previous_price": null,
        "price": null,
        "price_change_percent": 0,
        "price_text": null,
        "provider": "Netflix",
        "provider_code": "nfx",
        "provider_icon": "https://images.justwatch.com/icon/207360008/s100/netflix.png",
        "provider_id": 8,
        "provider_slug": "netflix",
        "quality": "SD",
        "subtitle_languages": [],
        "type": "STANDARD",
        "url": "https://www.netflix.com/title/70095926",
        "video_technology": []
      },
      "original_title": "Cleaner",
      "poster": "https://images.justwatch.com/poster/182912292/s718/cleaner.jpg",
      "production_countries": [
        "US"
      ],
      "provider": "Netflix",
      "release_date": "2007-09-11",
      "released": true,
      "runtime_min": 88,
      "title": "Cleaner",
      "tmdb_id": "13252",
      "tmdb_popularity": 7.7023,
      "tmdb_score": 6.088,
      "tomatometer": 17,
      "type": "MOVIE",
      "upcoming_releases": [],
      "url": "https://www.justwatch.com/us/movie/cleaner",
      "year": 2007
    },
    "… 18 more"
  ],
  "total": 81,
  "within": "30d"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What is the default leaving window?
Within 30 days; supported alternatives cover today, tomorrow or seven days.

### Does one country’s leaving date apply globally?
No. Preserve country, provider and offer context.

### How do I filter streaming services?
Use comma-separated provider codes from Providers.

### How do I continue results?
Pass next_cursor unchanged; limit defaults to 20 and is capped at 40.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/justwatch/justwatch-leaving-soon-api/47e3747e-5257-42ef-945b-376217699a03/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
