{"openapi":"3.1.0","info":{"title":"NewsData.io (BYOK) API","version":"0.1.0","description":"NewsData.io (BYOK) lets an AI assistant read your own NewsData.io data through the NewsData.io API with a key you supply (NewsData.io API key). Read-only: 5 tools (search_latest_news, get_articles_by_id, search_crypto_news, search_market_news, list_news_sources). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-newsdata.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-newsdata/docs"},"termsOfService":"https://connectorbay.com/byok-newsdata/terms"},"servers":[{"url":"https://byok-newsdata.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-newsdata/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_latest_news":{"post":{"operationId":"search_latest_news","summary":"Search news of the last 48 hours by keyword, country, language, category and publisher. One request uses one credit of t","description":"Search news of the last 48 hours by keyword, country, language, category and publisher. One request uses one credit of the daily or monthly quota; free keys get 10 articles per request and a 12-hour delay. Use for \"What is the latest news about elections in the US and India\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}],"default":null,"description":"Keywords to find in title, content and metadata of the article; the free plan caps this at 100 characters.","title":"Q"},"title_query":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}],"default":null,"description":"Keywords to find in the article title only. Do not combine with meta_query.","title":"Title Query"},"meta_query":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}],"default":null,"description":"Keywords to find in the URL, meta title, meta description and meta keywords only. Do not combine with title_query.","title":"Meta Query"},"country":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Lowercase two-letter country codes, comma separated (up to 5 on free and basic plans), for example 'us,in'.","title":"Country"},"language":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Lowercase two-letter language codes, comma separated (up to 5 on free and basic plans), for example 'en,fr'.","title":"Language"},"category":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"News categories, comma separated (up to 5), for example 'politics,top'.","title":"Category"},"domain":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"NewsData source identifiers, comma separated (up to 5), for example 'bbc,cnn'; list_news_sources shows the identifiers.","title":"Domain"},"domainurl":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Publisher host names, comma separated, for example 'bbc.com,cnn.com'.","title":"Domainurl"},"excludedomain":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Publisher host names or source identifiers to leave out, comma separated.","title":"Excludedomain"},"prioritydomain":{"anyOf":[{"enum":["top","medium","low"],"type":"string"},{"type":"null"}],"default":null,"description":"Only publishers in the top 10 percent (top), 30 percent (medium) or 50 percent (low) by domain authority.","title":"Prioritydomain"},"sort":{"anyOf":[{"enum":["pubdate","pubdateasc","relevancy","source"],"type":"string"},{"type":"null"}],"default":null,"description":"Order: pubdate (newest first), pubdateasc, relevancy or source.","title":"Sort"},"size":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Articles per page: 10 on the free plan, up to 50 on paid plans.","title":"Size"},"page":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"The nextPage token returned by the previous answer, to get the following page.","title":"Page"}},"title":"search_latest_newsArguments","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_id":{"post":{"operationId":"get_articles_by_id","summary":"Fetch specific articles of the last 48 hours by their NewsData article_id values (up to 50, comma separated). Use for \"S","description":"Fetch specific articles of the last 48 hours by their NewsData article_id values (up to 50, comma separated). Use for \"Show me the NewsData articles with ids 668de67f2c32ce652104e7c4a5c9b517 and 8c2cc0fdb87a3382876dca3448eb4cbc\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"article_id values, comma separated, at most 50.","maxLength":1700,"title":"Id","type":"string"}},"required":["id"],"title":"get_articles_by_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/search_crypto_news":{"post":{"operationId":"search_crypto_news","summary":"Search cryptocurrency and blockchain news, optionally for coin symbols such as BTC or ETH, with sentiment and the coins ","description":"Search cryptocurrency and blockchain news, optionally for coin symbols such as BTC or ETH, with sentiment and the coins mentioned. One request uses one credit. Use for \"What is the latest news about Bitcoin and Ethereum\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}],"default":null,"description":"Keywords to find in title, content and metadata of the article; the free plan caps this at 100 characters.","title":"Q"},"coin":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Cryptocurrency symbols, comma separated, for example 'BTC,ETH'.","title":"Coin"},"language":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Lowercase two-letter language codes, comma separated (up to 5 on free and basic plans), for example 'en,fr'.","title":"Language"},"domain":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"NewsData source identifiers, comma separated (up to 5), for example 'bbc,cnn'; list_news_sources shows the identifiers.","title":"Domain"},"domainurl":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Publisher host names, comma separated, for example 'bbc.com,cnn.com'.","title":"Domainurl"},"excludedomain":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Publisher host names or source identifiers to leave out, comma separated.","title":"Excludedomain"},"prioritydomain":{"anyOf":[{"enum":["top","medium","low"],"type":"string"},{"type":"null"}],"default":null,"description":"Only publishers in the top 10 percent (top), 30 percent (medium) or 50 percent (low) by domain authority.","title":"Prioritydomain"},"sort":{"anyOf":[{"enum":["pubdate","pubdateasc","relevancy","source"],"type":"string"},{"type":"null"}],"default":null,"description":"Order: pubdate (newest first), pubdateasc, relevancy or source.","title":"Sort"},"size":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Articles per page: 10 on the free plan, up to 50 on paid plans.","title":"Size"},"page":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"The nextPage token returned by the previous answer, to get the following page.","title":"Page"}},"title":"search_crypto_newsArguments","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_market_news":{"post":{"operationId":"search_market_news","summary":"Search stock-market and financial news (a beta endpoint), optionally for stock tickers such as AMZN or TSLA. One request","description":"Search stock-market and financial news (a beta endpoint), optionally for stock tickers such as AMZN or TSLA. One request uses one credit. Use for \"What is the latest news about Amazon stock\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}],"default":null,"description":"Keywords to find in title, content and metadata of the article; the free plan caps this at 100 characters.","title":"Q"},"symbol":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Stock ticker symbols, comma separated, for example 'AMZN,TSLA'.","title":"Symbol"},"country":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Lowercase two-letter country codes, comma separated (up to 5 on free and basic plans), for example 'us,in'.","title":"Country"},"language":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Lowercase two-letter language codes, comma separated (up to 5 on free and basic plans), for example 'en,fr'.","title":"Language"},"domain":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"NewsData source identifiers, comma separated (up to 5), for example 'bbc,cnn'; list_news_sources shows the identifiers.","title":"Domain"},"domainurl":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Publisher host names, comma separated, for example 'bbc.com,cnn.com'.","title":"Domainurl"},"excludedomain":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Publisher host names or source identifiers to leave out, comma separated.","title":"Excludedomain"},"prioritydomain":{"anyOf":[{"enum":["top","medium","low"],"type":"string"},{"type":"null"}],"default":null,"description":"Only publishers in the top 10 percent (top), 30 percent (medium) or 50 percent (low) by domain authority.","title":"Prioritydomain"},"sort":{"anyOf":[{"enum":["pubdate","pubdateasc","relevancy","source"],"type":"string"},{"type":"null"}],"default":null,"description":"Order: pubdate (newest first), pubdateasc, relevancy or source.","title":"Sort"},"size":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Articles per page: 10 on the free plan, up to 50 on paid plans.","title":"Size"},"page":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"The nextPage token returned by the previous answer, to get the following page.","title":"Page"}},"title":"search_market_newsArguments","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 the news publishers NewsData indexes, filtered by country, language, category or domain priority, with the identifi","description":"List the news publishers NewsData indexes, filtered by country, language, category or domain priority, with the identifier to use in the domain filter. Use for \"Which French-language news sources does NewsData.io cover\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Lowercase two-letter country codes, comma separated (up to 5 on free and basic plans), for example 'us,in'.","title":"Country"},"language":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Lowercase two-letter language codes, comma separated (up to 5 on free and basic plans), for example 'en,fr'.","title":"Language"},"category":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"News categories, comma separated (up to 5), for example 'politics,top'.","title":"Category"},"prioritydomain":{"anyOf":[{"enum":["top","medium","low"],"type":"string"},{"type":"null"}],"default":null,"description":"Only publishers in the top 10 percent (top), 30 percent (medium) or 50 percent (low) by domain authority.","title":"Prioritydomain"}},"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}}}}