أخبار العالم والأحداث World News & Events

News Stream

مجمع أخبار عالمي شامل يغطي السياسة والتقنية والعلوم والرياضة من أكثر من 50 مصدر RSS موثوق. Comprehensive global news aggregator covering politics, technology, science and sports from 50+ verified RSS sources.

تجربة حية Live Playground

System Ready

التكلفةPricing

Free
مجاني تماماًFree to use

1 كيفية استخدام التكامل How to use Integration

import requests

url = "https://orgteh.com/api/tools/execute/orgteh-news-general"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "limit": "3",
    "lang": "en",
    "time_filter": "1d",
    "scrape_content": "true"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class OrgtehToolClient {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();

        String jsonBody = "{"
            + "\"limit\": \"3\" + ","
            + "\"lang\": \"en\" + ","
            + "\"time_filter\": \"1d\" + ","
            + "\"scrape_content\": \"true\";


        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://orgteh.com/api/tools/execute/orgteh-news-general"))
            .header("Authorization", "Bearer YOUR_API_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(jsonBody))
            .build();

        HttpResponse<String> response = client.send(request, 
            HttpResponse.BodyHandlers.ofString());

        System.out.println(response.body());
    }
}
curl -X POST https://orgteh.com/api/tools/execute/orgteh-news-general \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "limit": "3",
    "lang": "en",
    "time_filter": "1d",
    "scrape_content": "true"
  }'

# أو باستخدام HTTPie
http POST https://orgteh.com/api/tools/execute/orgteh-news-general \
  Authorization:"Bearer YOUR_API_KEY" \
  limit="3" \
  lang="en" \
  time_filter="1d" \
  scrape_content="true"

2 التكامل مع الذكاء الاصطناعي AI Integration

استخدم هذا الكود لربط الأداة بنماذج Orgteh مباشرة Use this code to connect the tool with Orgteh models directly

import requests

# Step 1: Execute Orgteh Tool
tool_url = "https://orgteh.com/api/tools/execute/orgteh-news-general"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
tool_payload = {
    "limit": "3",
    "lang": "en",
    "time_filter": "1d",
    "scrape_content": "true",
}

tool_response = requests.post(tool_url, headers=headers, json=tool_payload)
tool_result = tool_response.json()

# Step 2: Send result to Orgteh AI Model
chat_url = "https://orgteh.com/v1/chat/completions"
chat_payload = {
    "model": "deepseek-ai/deepseek-v3.2",
    "messages": [
        {"role": "system", "content": "You have access to tool results."},
        {"role": "user", "content": f"Tool result: {tool_result}"}
    ]
}

ai_response = requests.post(chat_url, headers=headers, json=chat_payload)
result = ai_response.json()
print(result['choices'][0]['message']['content'])
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class OrgtehAIIntegration {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();

        // Step 1: Call Orgteh Tool
        String toolBody = "{"
            + "\"limit\": \"3\" + ","
            + "\"lang\": \"en\" + ","
            + "\"time_filter\": \"1d\" + ","
            + "\"scrape_content\": \"true\";


        HttpRequest toolRequest = HttpRequest.newBuilder()
            .uri(URI.create("https://orgteh.com/api/tools/execute/orgteh-news-general"))
            .header("Authorization", "Bearer YOUR_API_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(toolBody))
            .build();

        HttpResponse<String> toolResponse = client.send(toolRequest, 
            HttpResponse.BodyHandlers.ofString());

        // Step 2: Send to Orgteh AI Model
        String aiBody = "{"
            + "\"model\": \"deepseek-ai/deepseek-v3.2\","
            + "\"messages\": [{\"role\": \"user\", \"content\": \"Process: " 
            + toolResponse.body() + "\"}]"
            + "}";

        HttpRequest aiRequest = HttpRequest.newBuilder()
            .uri(URI.create("https://orgteh.com/v1/chat/completions"))
            .header("Authorization", "Bearer YOUR_API_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(aiBody))
            .build();

        HttpResponse<String> aiResponse = client.send(aiRequest, 
            HttpResponse.BodyHandlers.ofString());

        System.out.println(aiResponse.body());
    }
}
# Step 1: Execute Orgteh Tool
curl -X POST https://orgteh.com/api/tools/execute/orgteh-news-general \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "limit": "3",
    "lang": "en",
    "time_filter": "1d",
    "scrape_content": "true"
  }'

# Step 2: Send result to Orgteh AI Model
curl -X POST https://orgteh.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-ai/deepseek-v3.2",
    "messages": [{"role": "user", "content": "Analyze this tool output"}]
  }'

Orgteh Assistant

Online
Hello! I am Orgteh Assistant. How can I help you?