POST
/
web-search
AI-powered web search
curl --request POST \
  --url https://apigcp.trynia.ai/v2/web-search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "best practices for React hooks",
  "num_results": 5,
  "category": "github",
  "days_back": 123,
  "find_similar_to": "<string>"
}'
{
  "github_repos": [
    {
      "url": "<string>",
      "owner_repo": "<string>",
      "title": "<string>",
      "summary": "<string>",
      "highlights": [
        "<string>"
      ],
      "published_date": "<string>"
    }
  ],
  "documentation": [
    {
      "url": "<string>",
      "title": "<string>",
      "summary": "<string>",
      "highlights": [
        "<string>"
      ]
    }
  ],
  "other_content": [
    {
      "url": "<string>",
      "title": "<string>",
      "summary": "<string>"
    }
  ],
  "total_results": 123
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json

Response

200
application/json

Search completed successfully

The response is of type object.