Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Smart search combining web and academic results

Server:https://openapi.felo.ai
Client Libraries

Smart search combining web and academic results

​

Search the web and academic sources together, for questions that straddle both. ⚠️ Parameters go in the query string: query (required), max_num_results, as_ylo/as_yhi. Returns a search id and results[]; the entry shape varies by source — every result has title, link and snippet, and academic ones additionally carry authors and number_of_citations, so treat those two as optional rather than assuming they are there. Use it when you do not know in advance which kind of source will answer. When you do, post_scholar_search_web or post_scholar_search_scholar is more predictable. Keep the id for post_scholar_search_explain.

Query Parameters
  • query
    Type: string
    required

    Search query for scholarly materials

  • max_num_results
    Type: integer
    min:  
    1
    max:  
    100

    Maximum number of search results to return, up to 100

  • as_ylo
    Type: integer
    min:  
    1900
    max:  
    2030
    nullable

    Year of publication lower bound

  • as_yhi
    Type: integer
    min:  
    1900
    max:  
    2030
    nullable

    Year of publication upper bound

Responses
  • 200
    Type: object · SmartSearchResponse

    Successful search response

    • id
      Type: string
      required

      Unique identifier for the search request

    • results
      Type: array object[] · SmartResult[]
      required

      List of smart search results combining web and academic content

      • link
        Type: string Format: uri
        required

        URL to access the content

      • snippet
        Type: string
        required

        Brief summary or abstract

      • title
        Type: string
        required

        Title of the result

      • authors
        Type: array string[]

        List of authors (for academic content)

      • number_of_citations
        Type: integer
        min:  
        0

        Number of citations (for academic content)

      • relevance_score
        Type: number
        min:  
        0
        max:  
        1

        Relevance score of the result

      • type
        Type: string enum

        Type of the result

        values
        • web
        • academic
    • search_type
      Type: string enum

      Type of search results included

      values
      • web
      • academic
      • hybrid
    application/json
  • 400
    Type: object · ErrorResponse

    Bad request - invalid parameters

    • error
      Type: string

      A short error message.

    • message
      Type: string

      A more detailed error message.

    application/json
  • 401
    Type: object · ErrorResponse

    Unauthorized - invalid or missing API key

    • error
      Type: string

      A short error message.

    • message
      Type: string

      A more detailed error message.

    application/json
  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429
    Type: object · ErrorResponse

    Rate limit exceeded

    • error
      Type: string

      A short error message.

    • message
      Type: string

      A more detailed error message.

    application/json
  • 500
    Type: object · ErrorResponse

    Internal server error

    • error
      Type: string

      A short error message.

    • message
      Type: string

      A more detailed error message.

    application/json
  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for post/v1/beta/scholar/search/mixed
curl 'https://openapi.felo.ai/v1/beta/scholar/search/mixed?query=machine%20learning' \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "string",
  "results": [
    {
      "title": "string",
      "link": "https://example.com",
      "snippet": "string",
      "authors": [
        "string"
      ],
      "number_of_citations": 0,
      "type": "web",
      "relevance_score": 0
    }
  ],
  "search_type": "web"
}
Smart search combining web and academic results