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
query
string
required

Search query

Example:

"best practices for React hooks"

num_results
integer
default:5

Number of results to return

Required range: 1 <= x <= 10
category
enum<string>

Filter by content category

Available options:
github,
company,
research,
news,
tweet,
pdf,
blog
days_back
integer

Only show results from last N days

find_similar_to
string<uri>

URL to find similar content to

Response

Search completed successfully

github_repos
object[]
documentation
object[]
other_content
object[]
total_results
integer