{"openapi":"3.1.0","info":{"title":"Newscatcher (BYOK) API","version":"0.1.0","description":"Newscatcher (BYOK) lets an AI assistant read your own Newscatcher data through the Newscatcher API with a key you supply (Newscatcher News API key). Read-only: 7 tools (search_articles, get_latest_headlines, search_articles_by_author, get_articles_by_link_or_id, list_news_sources, count_articles_over_time, get_subscription). The BYOK key travels with each request, is used for that one call only...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-newscatcher.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-newscatcher/docs"},"termsOfService":"https://connectorbay.com/byok-newscatcher/terms"},"servers":[{"url":"https://byok-newscatcher.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-newscatcher/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/search_articles":{"post":{"operationId":"search_articles","summary":"Search news articles by keywords (supports AND, OR, NOT, quoted phrases and wildcards) with filters for language, publis","description":"Search news articles by keywords (supports AND, OR, NOT, quoted phrases and wildcards) with filters for language, publisher country, domains and a date range. Every call counts against the plan's monthly call allowance. Use for \"What has been published about renewable energy in the last week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Search query, for example 'renewable energy' or 'Apple AND (iPhone OR iPad) NOT Google'. Use escaped quotes for exact phrases.","maxLength":1000,"title":"Q","type":"string"},"lang":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 639-1 language codes of the articles, comma separated, for example 'en' or 'en,es'.","title":"Lang"},"countries":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 3166-1 country codes of the publisher's location, comma separated, for example 'US,CA'.","title":"Countries"},"sources":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Only articles from these domains (subdomains such as finance.yahoo.com work too), comma separated.","title":"Sources"},"not_sources":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Exclude articles from these domains, comma separated.","title":"Not Sources"},"from_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the period: an ISO date or date-time such as '2026-10-01' or '2026-10-01T00:00:00', or a phrase such as '7 days ago' or '24h'. Default is 7 days ago (UTC).","title":"From Date"},"to_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"End of the period, same formats as from_date; default is now.","title":"To Date"},"sort_by":{"anyOf":[{"enum":["relevancy","date","rank"],"type":"string"},{"type":"null"}],"default":"relevancy","description":"Order of results: relevancy, date or rank (source rank).","title":"Sort By"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Articles per page (1 to 100).","title":"Page Size"}},"required":["q"],"title":"search_articlesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_latest_headlines":{"post":{"operationId":"get_latest_headlines","summary":"Get the latest headlines for a time window such as the last 24 hours, filtered by language, publisher country and domain","description":"Get the latest headlines for a time window such as the last 24 hours, filtered by language, publisher country and domains. Use for \"What are the latest headlines from US publishers in the last 24 hours\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"when":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"7d","description":"Time window as a number with d (days) or h (hours), for example '24h' or '7d'. Default 7d.","title":"When"},"lang":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 639-1 language codes of the articles, comma separated, for example 'en' or 'en,es'.","title":"Lang"},"countries":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 3166-1 country codes of the publisher's location, comma separated, for example 'US,CA'.","title":"Countries"},"sources":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Only articles from these domains (subdomains such as finance.yahoo.com work too), comma separated.","title":"Sources"},"sort_by":{"anyOf":[{"enum":["relevancy","date","rank"],"type":"string"},{"type":"null"}],"default":"relevancy","description":"Order of results: relevancy, date or rank (source rank).","title":"Sort By"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Articles per page (1 to 100).","title":"Page Size"}},"title":"get_latest_headlinesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_articles_by_author":{"post":{"operationId":"search_articles_by_author","summary":"Find articles written by an author (exact name match), optionally limited by language, country, domains and date range. ","description":"Find articles written by an author (exact name match), optionally limited by language, country, domains and date range. Use for \"Which articles has Jane Smith written recently\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"author_name":{"description":"Exact author name, for example 'Jane Smith'.","maxLength":200,"title":"Author Name","type":"string"},"lang":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 639-1 language codes of the articles, comma separated, for example 'en' or 'en,es'.","title":"Lang"},"countries":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 3166-1 country codes of the publisher's location, comma separated, for example 'US,CA'.","title":"Countries"},"sources":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Only articles from these domains (subdomains such as finance.yahoo.com work too), comma separated.","title":"Sources"},"from_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the period: an ISO date or date-time such as '2026-10-01' or '2026-10-01T00:00:00', or a phrase such as '7 days ago' or '24h'. Default is 7 days ago (UTC).","title":"From Date"},"to_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"End of the period, same formats as from_date; default is now.","title":"To Date"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Articles per page (1 to 100).","title":"Page Size"}},"required":["author_name"],"title":"search_articles_by_authorArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_articles_by_link_or_id":{"post":{"operationId":"get_articles_by_link_or_id","summary":"Look up articles by their URLs or by Newscatcher article IDs (use either links or ids, not both), within an optional dat","description":"Look up articles by their URLs or by Newscatcher article IDs (use either links or ids, not both), within an optional date range. Use for \"Is this nytimes.com article in the Newscatcher index\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"links":{"anyOf":[{"maxLength":1500,"type":"string"},{"type":"null"}],"default":null,"description":"Article URLs, comma separated. Do not combine with ids.","title":"Links"},"ids":{"anyOf":[{"maxLength":600,"type":"string"},{"type":"null"}],"default":null,"description":"Newscatcher article IDs, comma separated. Do not combine with links.","title":"Ids"},"from_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the period: an ISO date or date-time such as '2026-10-01' or '2026-10-01T00:00:00', or a phrase such as '7 days ago' or '24h'. Default is 7 days ago (UTC).","title":"From Date"},"to_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"End of the period, same formats as from_date; default is now.","title":"To Date"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Articles per page (1 to 100).","title":"Page Size"}},"title":"get_articles_by_link_or_idArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_news_sources":{"post":{"operationId":"list_news_sources","summary":"List news publishers in the index with domain, name and, when requested, rank, country and article volume, filtered by l","description":"List news publishers in the index with domain, name and, when requested, rank, country and article volume, filtered by language, country or name. Use for \"Which Spanish-language news sources from Mexico does Newscatcher cover\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lang":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 639-1 language codes of the articles, comma separated, for example 'en' or 'en,es'.","title":"Lang"},"countries":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 3166-1 country codes of the publisher's location, comma separated, for example 'US,CA'.","title":"Countries"},"source_name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Word or phrase to look for in publisher names, comma separated; an exact match is not required.","title":"Source Name"},"predefined_sources":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Top publishers per country, written as 'top 20 US, top 10 GB'.","title":"Predefined Sources"},"include_additional_info":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to add rank, country, news type and article counts to each publisher.","title":"Include Additional Info"}},"title":"list_news_sourcesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/count_articles_over_time":{"post":{"operationId":"count_articles_over_time","summary":"Count articles matching a keyword query per day, hour or month in a date range, to see how coverage of a topic changes. ","description":"Count articles matching a keyword query per day, hour or month in a date range, to see how coverage of a topic changes. Use for \"How many articles mentioned electric vehicles each day last week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Search query, same syntax as search_articles.","maxLength":1000,"title":"Q","type":"string"},"aggregation_by":{"anyOf":[{"enum":["day","hour","month"],"type":"string"},{"type":"null"}],"default":"day","description":"Bucket size: day, hour or month.","title":"Aggregation By"},"from_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the period: an ISO date or date-time such as '2026-10-01' or '2026-10-01T00:00:00', or a phrase such as '7 days ago' or '24h'. Default is 7 days ago (UTC).","title":"From Date"},"to_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"End of the period, same formats as from_date; default is now.","title":"To Date"},"lang":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 639-1 language codes of the articles, comma separated, for example 'en' or 'en,es'.","title":"Lang"},"countries":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO 3166-1 country codes of the publisher's location, comma separated, for example 'US,CA'.","title":"Countries"}},"required":["q"],"title":"count_articles_over_timeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_subscription":{"post":{"operationId":"get_subscription","summary":"Show the plan behind the key: whether it is active, plan name, calls per plan, calls remaining, concurrent calls and day","description":"Show the plan behind the key: whether it is active, plan name, calls per plan, calls remaining, concurrent calls and days of history. Use for \"How many Newscatcher API calls do I have left this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_subscriptionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}