We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/BACH-AI-Tools/bachai-news-api14'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
openapi.json•13.5 kB
{
"openapi": "3.0.0",
"info": {
"title": "News Api14",
"version": "1.0.0",
"description": "RapidAPI: bonaipowered/news-api14"
},
"servers": [
{
"url": "https://news-api14.p.rapidapi.com"
}
],
"paths": {
"/v2/search/publishers": {
"get": {
"summary": "Search Publishers",
"description": "Find a list of publishers with details like descriptions, logos, languages, categories, and links to their social media.",
"operationId": "search_publishers",
"parameters": [
{
"name": "query",
"in": "query",
"required": true,
"description": "Just type what you're looking for.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "country",
"in": "query",
"required": false,
"description": "2-letter ISO 3166-1 code of the country.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "language",
"in": "query",
"required": false,
"description": "2-letter ISO 3166-1 code of the language.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "category",
"in": "query",
"required": false,
"description": "Possible options: general, business, entertainment, lifestyle, politics, science, sports, technology.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "sort",
"in": "query",
"required": false,
"description": "Possible options: popularity, relevancy.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/v2/article": {
"get": {
"summary": "Get Article Content",
"description": "This API endpoint provides access to the comprehensive metadata and content of a specific article.",
"operationId": "get_article_content",
"parameters": [
{
"name": "url",
"in": "query",
"required": true,
"description": "The URL of the article.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "type",
"in": "query",
"required": false,
"description": "The article content output type can be specified as eitherhtml or plaintext. The default output type is plaintext. Note: The content is accessible only to users who have a valid subscription plan.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/v2/search/articles": {
"get": {
"summary": "Search Articles",
"description": "Find articles by keywords and allows you to filter by country, language, publisher, and date to get specific result.",
"operationId": "search_articles",
"parameters": [
{
"name": "query",
"in": "query",
"required": true,
"description": "Just type what you're looking for, like cats or weather. If you want to exclude term, just add minus (-) in front of any term (nasa -moon).",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "language",
"in": "query",
"required": true,
"description": "example: en, fr, de, zh-Hant. Check out the Supported Languages endpoint to see a list of all the languages you can search for.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "publisher",
"in": "query",
"required": false,
"description": "A domain of the news source. Example: cnn.com",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "from",
"in": "query",
"required": false,
"description": "Accepts human-readable formats like 1d for 1 day, 1m for 1 month, 1y for 1 year, as well as ISO 8601, RFC 2822, and Unix timestamp formats.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "to",
"in": "query",
"required": false,
"description": "Accepts human-readable formats like 1d for 1 day, 1m for 1 month, 1y for 1 year, as well as ISO 8601, RFC 2822, and Unix timestamp formats.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "limit",
"in": "query",
"required": false,
"description": "This parameter controls the maximum number of articles returned on a single page.",
"schema": {
"type": "number",
"default": "0",
"enum": null
}
},
{
"name": "page",
"in": "query",
"required": false,
"description": "This parameter specifies the page number you want to access. For example, page=2 will return the second page of results.",
"schema": {
"type": "number",
"default": "0",
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/v2/article/random": {
"get": {
"summary": "Get Random Article",
"description": "This endpoint gives you the ability to find new and engaging content by randomly selecting an article, with the option to filter by country or language.",
"operationId": "get_random_article",
"parameters": [
{
"name": "language",
"in": "query",
"required": false,
"description": "example: en, fr, de, zh-Hant. Check out the Supported Languages endpoint to see a list of all the languages you can search for.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "topic",
"in": "query",
"required": false,
"description": "The topic of interest, example: General, Politics, Sports, or a subtopic Soccer. Check out the Supported Topics endpoint to see a list of all the topics you can search for.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "type",
"in": "query",
"required": false,
"description": "The article content output type can be specified as eitherhtml or plaintext. The default output type is plaintext. Note: The content is accessible only to users who have a valid subscription plan.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/v2/trendings": {
"get": {
"summary": "Trending Topics",
"description": "This endpoint lets you find the most popular news article for a specific country, language, and topic (like sports or entertainment).",
"operationId": "trending_topics",
"parameters": [
{
"name": "date",
"in": "query",
"required": false,
"description": "Example value: ",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "topic",
"in": "query",
"required": true,
"description": "The topic of interest, example: General, Politics, Sports, or a subtopic Soccer. Check out the Supported Topics endpoint to see a list of all the topics you can search for.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "language",
"in": "query",
"required": true,
"description": "example: en, fr, de, zh-Hant. Check out the Supported Languages endpoint to see a list of all the languages you can search for.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "country",
"in": "query",
"required": false,
"description": "example: us, in, fr, de, id . Check out the Supported Countries endpoint to see a list of all the countries you can search for.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "limit",
"in": "query",
"required": false,
"description": "This parameter controls the maximum number of articles returned on a single page.",
"schema": {
"type": "number",
"default": "0",
"enum": null
}
},
{
"name": "page",
"in": "query",
"required": false,
"description": "This parameter specifies the page number you want to access. For example, page=2 will return the second page of results.",
"schema": {
"type": "number",
"default": "0",
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/v2/info/countries": {
"get": {
"summary": "Supported Countries",
"description": "This endpoint provides a list of supported countries along with their respective languages.",
"operationId": "supported_countries",
"parameters": [],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/v2/info/languages": {
"get": {
"summary": "Supported Languages",
"description": "This endpoint provides a list of supported languages.",
"operationId": "supported_languages",
"parameters": [],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/v2/info/topics": {
"get": {
"summary": "Supported Topics",
"description": "This endpoint provides information about the supported topics. Access to the specific topics may be restricted based on your subscription plan.",
"operationId": "supported_topics",
"parameters": [],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"ApiAuth": {
"type": "apiKey",
"in": "header",
"name": "X-RapidAPI-Key"
}
}
},
"security": [
{
"ApiAuth": []
}
]
}