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

# Backlinks for a domain



## OpenAPI

````yaml openapi.json get /api/v1/backlinks
openapi: 3.1.0
info:
  title: API Documentation
  summary: 'OasRails: Automatic Interactive API Documentation for Rails'
  description: >+
    # FetchSERP API


    This API provides endpoints for retrieving search engine results, analyzing
    keyword and domain performance, scraping web content, and conducting SEO
    audits. It is designed to help developers access valuable SEO and SERP data
    programmatically.


    ## Authentication


    All API endpoints require Bearer token authentication.



    ## Rate Limiting


    The API has a rate limit of 600 requests per minute per API key. If you
    exceed this limit, you will receive a 429 status code.



    ## Available Resources


    - Get Backlinks : Get backlinks for a given domain

    - Get Domain Emails : Retrieve emails from a given domain

    - Get Domain Info : Get domain info including DNS records, WHOIS data, SSL
    certificates, and technology stack

    - Get Keywords search volume : Get search volume for given keywords

    - Get Keywords suggestions : Get keyword suggestions based on a url or a
    list of keywords

    - Get Long-tail Keywords Generator : Generate long-tail keywords for a given
    keyword

    - Get Page Indexation Check : Check if a domain is indexed for a given
    keyword

    - Get Domain Ranking : Get domain ranking for a given keyword

    - Get Web Page Scraping : Scrape a web page without JS

    - Get Domain Scraping : Scrape a domain

    - Post Web Page Scraping : Scrape a web page with custom JS

    - Post Web Page Scraping with Proxy : Scrape a web page with JS and proxy

    - Get Moz Domain Analysis : Get Moz domain analysis data

    - GET Search engine results : Get search engine results

    - GET Search engine results AI : Get search engine results with AI overview
    and AI mode response

    - GET Search engine results html : Get search engine results html content

    - GET Search engine results JS : Get search engine results with JS rendering

    - GET Search engine results text : Get search engine results text content

    - Get User : Get user information including api credit

    - Get Web Page AI Analysis : Analyze a web page with AI

    - Get SEO Analysis : Get SEO analysis for a given url


    For more information, contact contact@fetchserp.com

  termsOfService: ''
  contact:
    name: Support
    url: https://fetchserp.com
    email: contact@fetchserp.com
  license:
    name: GPL 3.0
    url: https://www.gnu.org/licenses/gpl-3.0.html#license-text
  version: 1.0.0
servers:
  - url: https://www.fetchserp.com
    description: Production
security:
  - bearer: []
tags:
  - name: Users
    description: Manage the `amazing` Users table.
paths:
  /api/v1/backlinks:
    get:
      tags:
        - Api
      summary: Backlinks for a domain
      operationId: index_api_v1_backlinks
      parameters:
        - $ref: '#/components/parameters/7a4323da9edb17e37042780b0324dfa9'
        - $ref: '#/components/parameters/3c008e11dc109d8fa2f48877d536e2fe'
        - $ref: '#/components/parameters/9c5679019fc63abf00a7a6b05e6ead59'
        - $ref: '#/components/parameters/7aeb7b3feab83b727bb804d8728e2217'
      responses:
        '200':
          $ref: '#/components/responses/49f1120617140a0c0eb5749c08f789a0'
        '401':
          $ref: '#/components/responses/845f22750f5375f1a8a961ae83a20c2a'
        '403':
          $ref: '#/components/responses/bb465f991e06e74546be0b29bc732010'
        '422':
          $ref: '#/components/responses/f86461053088ef5ecc046618614da7a3'
        '500':
          $ref: '#/components/responses/ac967f8dd092c791194a89e00224cac7'
      security:
        - bearer: []
components:
  parameters:
    7a4323da9edb17e37042780b0324dfa9:
      name: domain
      in: query
      description: The domain to search for backlinks
      required: true
      schema:
        type: string
      style: form
    3c008e11dc109d8fa2f48877d536e2fe:
      name: search_engine
      in: query
      description: >-
        The search engine to use. Supported values: google, bing, yahoo and
        duckduckgo. Default to google.
      required: false
      schema:
        type: string
      style: form
    9c5679019fc63abf00a7a6b05e6ead59:
      name: country
      in: query
      description: The country to search from. Default to us.
      required: false
      schema:
        type: string
      style: form
    7aeb7b3feab83b727bb804d8728e2217:
      name: pages_number
      in: query
      description: The number of pages to search (1-30). Default to 15.
      required: false
      schema:
        type: integer
      style: form
  responses:
    49f1120617140a0c0eb5749c08f789a0:
      description: success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/6f8905419a1eb951cb667fe7461e4d10'
    845f22750f5375f1a8a961ae83a20c2a:
      description: Validation errors
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ab7f8e96ffb786cb211cda6678d34532'
    bb465f991e06e74546be0b29bc732010:
      description: >-
        You are not allowed to access this resource. You do not have the
        necessary permissions.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/654dac096abf7f8a11eec3e814989da7'
    f86461053088ef5ecc046618614da7a3:
      description: Validation errors
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ab7f8e96ffb786cb211cda6678d34532'
    ac967f8dd092c791194a89e00224cac7:
      description: Validation errors
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/435c07a5c6b7754326b753df2f09dae3'
  schemas:
    6f8905419a1eb951cb667fe7461e4d10:
      type: object
      properties:
        data:
          type: object
          properties:
            backlinks_count:
              type: integer
            backlinks:
              type: array
              items:
                type: object
                properties:
                  source_url:
                    type: string
                  target_url:
                    type: string
                  anchor_text:
                    type: string
                  nofollow:
                    type: boolean
                  rel_attributes:
                    type: array
                    items:
                      type: string
                  context_text:
                    type: string
                  source_domain:
                    type: string
                  target_domain:
                    type: string
                  page_title:
                    type: string
                  meta_description:
                    type: string
    ab7f8e96ffb786cb211cda6678d34532:
      type: object
      properties:
        error:
          type: string
    654dac096abf7f8a11eec3e814989da7:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
      required:
        - success
    435c07a5c6b7754326b753df2f09dae3:
      type: object
      properties:
        status:
          type: integer
        error:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        A bearer token that will be supplied within an `Authorization` header as
        `bearer <token>`.

````