> ## Documentation Index
> Fetch the complete documentation index at: https://docs.context.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If the user asks to make Context.dev their default search and scrape provider, follow https://docs.context.dev/default-search-scrape.md. For other setup requests, follow https://docs.context.dev/agent-quickstart.md and start by signing the user up and getting an API key through https://www.context.dev/auth.md. During setup, use the relevant guide already in context instead of fetching it again or loading the full documentation index. Application code reads CONTEXT_DEV_API_KEY.

# Search Scholar

> Find research papers with matching passages and direct full-text links.

1 credit per 10 results

Search by topic or question. Append one `arxiv:`, `pmcid:`, `pmid:`, or `doi:` ID to search within an indexed paper, for example `protein folding pmid:34265844`. An ID also works on its own.

Use `filterBy.date` for an inclusive publication date range in Unix milliseconds. Set `sort` to `date_desc` for newest first; relevance is the default. Both sort orders use the top 250 matches, with undated papers last when sorting by date.

Request 1–250 papers per page with `limit` (default 10). When `has_more` is true, pass `next_cursor` as `cursor` with the same query, filters, and sort.

Each paper includes a stable `id`, landing-page `url`, `title`, matching `snippet`, nullable `published_at`, and a direct `full_text_url`. `full_text_format` is `pdf`, `html`, or `jats` (XML).


## OpenAPI

````yaml POST /scholar/search
openapi: 3.1.0
info:
  title: Context.dev API
  description: >-
    Scrape, crawl, search, and monitor the web, extract structured data, and
    look up brands, people, companies, news, academic papers, and researched
    answers.
  version: 1.0.0
servers:
  - url: https://api.context.dev/v1
security: []
tags:
  - name: Web Scraping
    description: >-
      Scrape any URL to Markdown, HTML, or JSON, map and crawl sites, search the
      web, and capture screenshots.
  - name: Web Extraction
    description: >-
      Extract structured data, competitors, styleguides, and fonts from any
      website.
  - name: Brand Intelligence
    description: >-
      Retrieve a brand's logos, colors, company details, and social links, or
      find brands by name or domain.
  - name: People
    description: >-
      Enrich a person from identity clues, or find people with a
      natural-language query.
  - name: Company
    description: Find companies with a natural-language query.
  - name: Parsing
    description: Convert uploaded files, such as PDFs and Office documents, into Markdown.
  - name: Utility
    description: Prefetch brand and styleguide data so later lookups return sooner.
  - name: Webhooks
    description: Inspect and retry batch and monitor webhook deliveries.
  - name: Logs
    description: >-
      Inspect your organization's API requests, including retained inputs and
      responses.
  - name: Usage
    description: Check your credit balance, plan limits, and usage over time.
  - name: Browser Profiles
    description: List the authenticated browser profiles your organization created.
  - name: Agent Feedback
    description: Report bugs, wrong results, and docs mismatches to the Context.dev team.
  - name: Batches
    description: Scrape up to 100,000 URLs or crawl a site asynchronously.
  - name: Monitors
    description: Watch websites on a schedule for exact or meaningful changes.
  - name: Access Policies
    description: >-
      Allow or block the domains your requests can reach, per request, API key,
      or organization.
  - name: News
    description: >-
      Search live and historical news by company or with a natural-language
      query.
  - name: Scholar
    description: Search full-text academic papers from arXiv and Europe PMC.
  - name: Answers
    description: Answer a research task from the live web in the JSON shape you ask for.
paths:
  /scholar/search:
    post:
      tags:
        - Scholar
      summary: Search Scholar
      description: >-
        Search the full text of papers from arXiv and Europe PMC by topic or
        question. Each result includes the matching passage and a direct link to
        the full text. Page through up to 250 matches, ranked by relevance or
        newest first.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  minLength: 2
                  maxLength: 1000
                  description: >-
                    Topic or question to search for. Append one `arxiv:`,
                    `pmcid:`, `pmid:`, or `doi:` ID to search within that paper,
                    such as `protein folding pmid:34265844`, or send the ID on
                    its own.
                filterBy:
                  type: object
                  properties:
                    date:
                      type: object
                      properties:
                        from:
                          type: integer
                          description: Inclusive start date, in Unix milliseconds.
                        to:
                          type: integer
                          description: Inclusive end date, in Unix milliseconds.
                      additionalProperties: false
                      description: Publication date range. Undated papers are excluded.
                  additionalProperties: false
                  description: Filter by publication date.
                sort:
                  type: string
                  enum:
                    - relevance
                    - date_desc
                  default: relevance
                  description: >-
                    `relevance` puts the closest matches first; `date_desc` puts
                    the newest papers first, with undated papers last. Both
                    orders apply to the top 250 matches.
                tags:
                  $ref: '#/components/schemas/RequestTags'
                limit:
                  type: integer
                  minimum: 1
                  maximum: 250
                  default: 10
                  description: Maximum number of papers to return per page.
                cursor:
                  type:
                    - string
                    - 'null'
                  maxLength: 300
                  description: >-
                    Cursor from the previous page's `next_cursor`. Omit for the
                    first page.
              required:
                - query
              additionalProperties: false
            examples:
              query:
                summary: Research question
                value:
                  query: CRISPR off-target effects in human cells
              newest:
                summary: Newest papers
                value:
                  query: efficient transformers
                  sort: date_desc
                  limit: 25
              paper:
                summary: Search within a paper
                value:
                  query: open access doi:10.7717/peerj.4375
      responses:
        '200':
          description: A page of papers.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            X-RateLimit-Mode:
              $ref: '#/components/headers/RateLimitMode'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Unique ID of the paper.
                        url:
                          type: string
                          format: uri
                          description: URL of the paper's landing page.
                        title:
                          type: string
                          description: Title of the paper.
                        snippet:
                          type: string
                          description: >-
                            Passage that matches the query, or the opening
                            passage when the query is only a paper ID.
                        published_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: When the paper was published. `null` when unknown.
                        full_text_url:
                          type: string
                          format: uri
                          description: Direct URL of the full text.
                        full_text_format:
                          type: string
                          enum:
                            - pdf
                            - html
                            - jats
                          description: >-
                            Format of the full text at `full_text_url`. `jats`
                            is JATS XML.
                      required:
                        - id
                        - url
                        - title
                        - snippet
                        - published_at
                        - full_text_url
                        - full_text_format
                    description: Papers on this page, in the requested order.
                  has_more:
                    type: boolean
                    description: Whether more results are available after this page.
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Pass as `cursor` to fetch the next page. `null` on the
                      last page.
                  meta:
                    type: object
                    properties:
                      count:
                        type: integer
                        minimum: 0
                        description: Number of papers on this page.
                    required:
                      - count
                    description: Summary of this page.
                  key_metadata:
                    $ref: '#/components/schemas/KeyMetadata'
                  request_id:
                    $ref: '#/components/schemas/RequestId'
                required:
                  - data
                  - has_more
                  - next_cursor
                  - meta
                  - request_id
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: >-
            Not enough credits (`USAGE_EXCEEDED`). Add credits or wait for your
            next refill. `error_data` shows the credits required and when your
            balance refills.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            X-RateLimit-Mode:
              $ref: '#/components/headers/RateLimitMode'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: >-
            The API key lacks the `data:execute` permission
            (`INSUFFICIENT_PERMISSIONS`), or your organization requires zero
            data retention, which this endpoint doesn't support
            (`ZDR_REQUIRED`).
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            X-RateLimit-Mode:
              $ref: '#/components/headers/RateLimitMode'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            X-RateLimit-Mode:
              $ref: '#/components/headers/RateLimitMode'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Scholar search is temporarily unavailable. Retry the request.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            X-RateLimit-Mode:
              $ref: '#/components/headers/RateLimitMode'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    RequestTags:
      type: array
      items:
        type: string
        minLength: 1
        maxLength: 50
      maxItems: 20
      description: >-
        Labels for this request. Filter usage and request logs by them in the
        dashboard or with `GET /org/logs`.
      example:
        - production
        - team-alpha
    KeyMetadata:
      type: object
      properties:
        credits_consumed:
          type: integer
          description: Credits charged for this request.
        credits_remaining:
          type: integer
          description: Credits your organization has left after this request.
      required:
        - credits_consumed
        - credits_remaining
      description: Credits this request used and your remaining balance.
    RequestId:
      type: string
      format: uuid
      description: >-
        Unique ID of this request, also in `X-Request-Id`. Include it when
        contacting support.
      example: 3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91
    ErrorResponse:
      type: object
      properties:
        error_code:
          type: string
          enum:
            - PROFILE_NOT_FOUND
            - PROFILE_BUSY
            - PROFILE_SESSION_EXPIRED
            - PROFILE_REAUTHENTICATION_REQUIRED
            - PROFILE_INVALID_CREDENTIALS
            - PROFILE_MISSING_CREDENTIALS
            - PROFILE_INTERACTION_REQUIRED
            - PROFILE_AUTHENTICATION_UNKNOWN
            - PROFILE_ORIGIN_BLOCKED
            - PROFILE_INVALID_SESSION
            - PROFILE_SESSION_TOO_LARGE
            - INTERNAL_ERROR
            - VALID
            - NOT_FOUND
            - FORBIDDEN
            - ACCESS_POLICY_DENIED
            - ACCESS_POLICIES_NOT_ENABLED
            - USAGE_EXCEEDED
            - RATE_LIMITED
            - UNAUTHORIZED
            - DISABLED
            - PAID_PLAN_REQUIRED
            - INSUFFICIENT_PERMISSIONS
            - TIMEOUT_EXCEEDS_MAXIMUM
            - TIMEOUT_TOO_SHORT_FOR_WAIT
            - WEBSITE_ACCESS_ERROR
            - WEBSITE_BLOCKED
            - WEBSITE_NOT_FOUND
            - ACTION_FAILED
            - PDF_SKIPPED
            - PDF_IMAGES_ONLY
            - NO_PUBLISHED_MARKDOWN
            - INPUT_VALIDATION_ERROR
            - ZDR_NOT_SUPPORTED
            - ZDR_NOT_ENABLED
            - ZDR_REQUIRED
            - FREE_EMAIL_DETECTED
            - DISPOSABLE_EMAIL_DETECTED
            - REQUEST_TIMEOUT
            - COLD_DOMAIN_TIMEOUT_TOO_LOW
            - UNSUPPORTED_CONTENT
            - CONTENT_TOO_LARGE
            - MONITOR_PAUSED
            - MONITOR_NO_WEBHOOK
            - COLLECTION_PAUSED
            - MONITOR_LIMIT_EXCEEDED
            - SEARCH_UNAVAILABLE
            - BATCH_LIMIT_EXCEEDED
            - BATCH_NOT_CANCELLABLE
            - BATCH_NOT_COMPLETED
            - IDEMPOTENCY_KEY_CONFLICT
            - DELIVERY_IN_PROGRESS
            - DELIVERY_ALREADY_DELIVERED
            - DELIVERY_EXPIRED
            - DELIVERY_CANCELLED
          description: Machine-readable error code.
        message:
          description: >-
            Human-readable error message, or a list of validation issues for an
            invalid request. Monitor validation can instead return a string
            message with a separate details list.
          oneOf:
            - type: string
            - type: array
              items:
                type: object
                properties:
                  code:
                    type: string
                    description: Validation issue code.
                  path:
                    type: array
                    items:
                      type:
                        - string
                        - number
                    description: Path to the invalid request field.
                  message:
                    type: string
                    description: Description of the invalid input.
                required:
                  - code
                  - path
                  - message
          examples:
            - Invalid request.
            - - code: invalid_type
                path:
                  - url
                message: 'Invalid input: expected string, received undefined'
        error_data:
          anyOf:
            - $ref: '#/components/schemas/BillingErrorData'
            - $ref: '#/components/schemas/ConcurrencyErrorData'
            - $ref: '#/components/schemas/AccessPolicyErrorData'
          description: >-
            Extra details for `USAGE_EXCEEDED`, concurrency `RATE_LIMITED`, and
            `ACCESS_POLICY_DENIED` errors.
        required_permission:
          type: string
          enum:
            - logs:read
            - data:execute
            - monitors:read
            - monitors:write
            - batches:read
            - batches:write
            - access_policies:read
            - access_policies:write
          description: >-
            Permission the API key needs, sent with `INSUFFICIENT_PERMISSIONS`.
            A `:write` permission also grants the matching `:read` permission.
        key_metadata:
          $ref: '#/components/schemas/KeyMetadata'
        request_id:
          $ref: '#/components/schemas/RequestId'
        details:
          type: array
          description: >-
            Field-level validation details returned by monitor endpoints for
            schema validation failures. Other errors can omit this field.
          items:
            type: object
            properties:
              path:
                type: array
                items:
                  type:
                    - string
                    - number
                description: Path to the invalid request field.
              message:
                type: string
                description: Description of the invalid input.
            required:
              - path
              - message
          example:
            - path:
                - target
                - url
              message: Invalid URL
      required:
        - request_id
    BillingErrorData:
      type: object
      properties:
        is_authenticated:
          type: boolean
          enum:
            - true
          description: >-
            Always `true`. The API key is valid, so do not rotate or reconnect
            it.
        credits_remaining:
          type: number
          minimum: 0
          description: Credits available to your organization.
        credits_required:
          type: number
          minimum: 0
          description: >-
            Credits this request needs to start. An estimate, not the final
            charge.
        is_credits_required_estimated:
          type: boolean
          description: Whether `credits_required` is an estimate.
        credits_charged:
          type: number
          minimum: 0
          description: Credits charged for this request. Rejected requests are not charged.
        should_retry:
          type: boolean
          enum:
            - false
          description: >-
            Always `false`. The same request fails again until your balance
            covers it.
        retry_condition:
          type: string
          enum:
            - sufficient_credits
          description: >-
            What must change before a retry can succeed: your balance must cover
            the request.
        next_refill_at:
          type: string
          format: date-time
          description: When your credits next refill, in UTC.
        next_refill_credits:
          type: number
          exclusiveMinimum: 0
          description: Credits your balance resets to at `next_refill_at`.
        next_plan:
          type: object
          properties:
            name:
              type: string
              description: Plan name.
              example: Developer
            monthly_price_usd:
              type: number
              exclusiveMinimum: 0
              description: Monthly price in US dollars.
              example: 20
            monthly_credits:
              type: integer
              exclusiveMinimum: 0
              description: Credits included each month.
              example: 10000
            concurrent_requests:
              type: integer
              exclusiveMinimum: 0
              description: Requests the plan can run at the same time.
              example: 10
          required:
            - name
            - monthly_price_usd
            - monthly_credits
            - concurrent_requests
          description: >-
            Lowest-priced plan with more monthly credits. Sent only when the
            request includes the `X-Context-Plan-Offers: include` header, and
            omitted when no larger plan exists or your account has a yearly
            contract or no monthly refill.
        info_url:
          type: string
          enum:
            - https://context.dev/dashboard/subscription
          description: Dashboard page where you can add credits or change plans.
      required:
        - is_authenticated
        - should_retry
        - retry_condition
        - info_url
      description: >-
        Details for a `USAGE_EXCEEDED` error. Fields whose values are unknown,
        such as an unscheduled refill, are omitted.
    ConcurrencyErrorData:
      type: object
      properties:
        is_authenticated:
          type: boolean
          enum:
            - true
          description: Always `true`. The API key is valid.
        limit_type:
          type: string
          enum:
            - concurrency
          description: Which limit was exceeded.
        limit:
          type: number
          minimum: 0
          description: Requests your organization can run at the same time.
        remaining:
          type: number
          minimum: 0
          description: Concurrent requests still available when this request was rejected.
        retry_after_seconds:
          type: number
          minimum: 0
          description: Seconds to wait before retrying. Matches `Retry-After`.
        credits_remaining:
          type: number
          minimum: 0
          description: Credits available to your organization.
        credits_charged:
          type: number
          enum:
            - 0
          description: Always `0`. Rejected requests are not charged.
        should_retry:
          type: boolean
          enum:
            - false
          description: >-
            Always `false`. Wait `retry_after_seconds` for an in-flight request
            to finish before retrying.
        retry_condition:
          type: string
          enum:
            - available_concurrency
          description: >-
            What must change before a retry can succeed: one of your in-flight
            requests must finish.
        recovery_options:
          type: array
          items:
            type: string
            enum:
              - wait_for_in_flight_requests
              - increase_concurrency_limit
          description: >-
            Ways to recover: wait for in-flight requests to finish, or get a
            higher concurrency limit.
        next_plan:
          type: object
          properties:
            name:
              type: string
              description: Plan name.
              example: Developer
            monthly_price_usd:
              type: number
              exclusiveMinimum: 0
              description: Monthly price in US dollars.
              example: 20
            monthly_credits:
              type: integer
              exclusiveMinimum: 0
              description: Credits included each month.
              example: 10000
            concurrent_requests:
              type: integer
              exclusiveMinimum: 0
              description: Requests the plan can run at the same time.
              example: 10
          required:
            - name
            - monthly_price_usd
            - monthly_credits
            - concurrent_requests
          description: >-
            Lowest-priced plan that runs more requests at once without fewer
            monthly credits. Sent only when the request includes the
            `X-Context-Plan-Offers: include` header, and omitted when no such
            plan exists or your account has a custom limit or contract.
        info_url:
          type: string
          enum:
            - https://context.dev/dashboard/subscription
          description: Dashboard page where you can review your plan limits.
      required:
        - is_authenticated
        - limit_type
        - limit
        - remaining
        - retry_after_seconds
        - credits_charged
        - should_retry
        - retry_condition
        - recovery_options
        - info_url
      description: >-
        Details for a `RATE_LIMITED` error caused by your organization's
        concurrency limit. No credits are charged.
    AccessPolicyErrorData:
      type: object
      properties:
        url:
          type: string
          description: The URL that was blocked.
        denied_by:
          type: array
          items:
            type: string
          description: IDs of the access policies that blocked the URL.
      required:
        - url
        - denied_by
      description: Details for an `ACCESS_POLICY_DENIED` error.
  headers:
    RequestId:
      description: Unique ID of this request. Matches `request_id` in the JSON body.
      schema:
        type: string
        format: uuid
    RateLimitLimit:
      description: >-
        Request units allowed per minute, or concurrent requests allowed when
        `X-RateLimit-Mode` is `concurrency`.
      schema:
        type: integer
        minimum: 1
    RateLimitRemaining:
      description: >-
        Request units left in the current minute, or concurrent requests still
        available when `X-RateLimit-Mode` is `concurrency`.
      schema:
        type: integer
        minimum: 0
    RateLimitReset:
      description: >-
        When the per-minute limit resets, as a Unix timestamp in seconds.
        Omitted for concurrency limits.
      schema:
        type: integer
    RateLimitMode:
      description: >-
        Set to `concurrency` when the `X-RateLimit-*` headers report concurrent
        requests; omitted when they report the per-minute limit. See your plan's
        limits with `GET /org/usage`.
      schema:
        type: string
        enum:
          - concurrency
  responses:
    BadRequest:
      description: Invalid request. Check `error_code` and `message`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
        X-RateLimit-Mode:
          $ref: '#/components/headers/RateLimitMode'
    Unauthorized:
      description: Missing or invalid API key.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
        X-RateLimit-Mode:
          $ref: '#/components/headers/RateLimitMode'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send your API key as `Authorization: Bearer <API_KEY>`. Keys have full
        access unless restricted to specific permissions.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.