India has no statute that deals with web scraping by name. Whether a particular scraper is lawful depends on what is collected, how it is accessed and what is done with it. This guide goes through each source of legal risk, the unsettled position on scraping for AI training, and the clauses that API terms should contain. The provisions and case status below were checked against the published text of the Acts and legal news reports on the review date shown on this page.
Is web scraping legal in India?
There is no single answer because there is no single law. Scraping publicly visible facts at a modest rate, without logging in and without copying creative content or personal data, carries low legal risk. Scraping behind a login, copying articles or photographs, evading blocks, or harvesting personal profiles carries much more. The method is the same in each case. The legal result is not.
The table summarises the main risks by what is scraped. The sections after it explain each one.
| What you scrape | Main legal risk | How to reduce it |
|---|---|---|
| Public facts such as prices, stock levels, timings, addresses of businesses | Low copyright risk because facts are not protected. Contract risk if you accepted terms. IT Act risk if access was blocked. | Do not log in or accept terms. Respect robots.txt and rate limits. Store facts, not page layouts. |
| Articles, reviews, product descriptions, photographs, videos | Copyright infringement by reproduction, and by republication if you display them. | Take a licence, or store only facts and short references with a link. Do not republish. |
| A whole database or catalogue | Copyright in the compilation if its selection or arrangement is original. Contract and IT Act claims for systematic extraction. | Take only what you need. Do not replicate the structure. Consider a data licence or the official API. |
| Data behind a login or paywall | Breach of the terms you accepted. Section 43 IT Act exposure for use beyond permission. Possible breach of confidence. | Do not scrape. Ask for API access or a licence. |
| Personal data such as names, phone numbers, emails, profiles | DPDP Act obligations unless the individual made the data public. Reputational and regulatory risk. | Avoid where possible. Record the source and that the person published it. Honour removal requests. |
| Any content, for training an AI model | Unsettled copyright position in India. Contract and technical-measure risk as above. | Record sources. Honour opt-out signals. Take licences for high-value sources. Follow the pending litigation. |
| Data obtained by defeating CAPTCHAs, IP blocks or access tokens | Strong evidence of access without permission under the IT Act. Possible circumvention offence under section 65A of the Copyright Act. | Stop when blocked. Do not rotate identities to evade a block. |
Can a website's terms of use stop me from scraping?
Website terms are a contract only if you agreed to them. If you created an account, ticked a box or clicked a button that referred to the terms, you are bound by an anti-scraping clause in them, and scraping is a breach of contract. The site owner can sue for an injunction and damages and can close your account. Our guide on e-signatures and clickwrap explains when online terms are enforceable.
If you never logged in and the terms sit behind a footer link, the site owner's contract claim is weaker, because it must show that you had notice of the terms and accepted them. Repeated automated visits after a written warning or a cease and desist letter make it much easier to show notice.
Site owners also plead other claims. Information that is not public and was obtained through an account or a business relationship can be protected as confidential. Some pleadings describe heavy automated access as a form of trespass to the server. This argument has been used in other countries, but we did not find a settled Indian authority for it, and it should be treated as untested.
A foreign example shows how these claims interact. In hiQ Labs v. LinkedIn, a United States case, the Ninth Circuit Court of Appeals held in April 2022 that scraping publicly accessible profiles was unlikely to breach the US computer fraud statute. The district court later ruled that LinkedIn's user agreement prohibiting scraping was enforceable in contract, and the case ended in December 2022 with a consent judgment against hiQ. This is US law and does not bind Indian courts, but it illustrates that public availability does not remove contract risk.
Is scraped data protected by copyright? The position on databases and compilations
Under section 13 of the Copyright Act, 1957, copyright subsists in original literary, dramatic, musical and artistic works, films and sound recordings. Section 2(o) defines literary work to include computer programmes, tables and compilations including computer databases. So a database can be a copyright work.
The test is originality. In Eastern Book Company v. D.B. Modak, decided by the Supreme Court on 12 December 2007 and reported in 2008, the Court held that labour and capital alone are not enough. The author must use skill and judgment, and the work must show a minimal degree of creativity. In that case the raw text of court judgments was not protected, and routine edits such as correcting citations and punctuation were not protected. The publisher's paragraphing, paragraph numbering and notes identifying concurring and dissenting opinions were protected because they required judgment.
For scraping, this means three things. Individual facts such as a price, a date or an address are not protected by copyright. Creative content such as articles, reviews, descriptions and photographs is protected, and copying it to your servers is reproduction even if you never display it. A compilation is protected to the extent that its selection or arrangement reflects skill and judgment, so copying an entire curated catalogue with its structure is riskier than extracting scattered facts.
Section 52(1)(a) permits fair dealing with a work, other than a computer programme, for private or personal use including research, and for criticism or review. It is a narrow set of listed purposes, not an open-ended fair use test, and commercial scraping does not fit it easily.
Can scraping be unauthorised access under the IT Act? robots.txt and technical blocks
Section 43 of the Information Technology Act, 2000 applies where a person acts without the permission of the owner or person in charge of a computer, computer system or network. Clause (a) covers accessing or securing access to it. Clause (b) covers downloading, copying or extracting any data, computer database or information from it. Other clauses cover disruption and denial of access to authorised users, which matters if a scraper overloads a site. A person who does any of these acts is liable to pay damages by way of compensation to the person affected.
Section 66 turns the same acts into an offence where they are done dishonestly or fraudulently. The punishment is imprisonment of up to three years, a fine of up to Rs 5 lakh, or both.
The key phrase is without permission. A public website invites visits, so ordinary access to public pages is hard to describe as unauthorised. The position changes when the owner has clearly withdrawn permission: a login wall, an IP block, a CAPTCHA, a rate limit, a written notice. Continuing after that, and especially disguising your identity to get around a block, is the conduct most likely to be treated as access without permission. How Indian courts will apply section 43 to scraping of public pages has not been settled by an authoritative decision that we could find, so the prudent reading is the cautious one.
robots.txt is a technical convention, not a law. Ignoring it is not an offence in itself. It is, though, a clear statement of what the owner permits, and it will be cited as evidence that you knew access was not allowed. In the ANI v. OpenAI interim order discussed below, the Delhi High Court noted, according to a law firm summary we read, that the news agency could have used technical opt-outs to block crawlers.
Section 65A of the Copyright Act makes it an offence to circumvent an effective technological measure applied to protect rights under that Act, with the intention of infringing those rights. The punishment is imprisonment of up to two years and a fine. The section has exceptions, including acts done for a purpose not expressly prohibited by the Act. Breaking access controls to copy protected content can therefore add a second layer of exposure.
Can I scrape personal data? The DPDP Act and publicly available data
The Digital Personal Data Protection Act, 2023 applies to digital personal data. Under section 3(c)(ii) it does not apply to personal data that is made or caused to be made publicly available by the data principal to whom it relates, or by any other person who is under a legal obligation to make it publicly available. The Act gives an illustration: an individual who, while blogging her views, has publicly made available her personal data on social media. In that case the Act does not apply.
The exclusion has limits. It turns on who made the data public. A phone number that a person posted on their own public profile fits. The same number posted by a third party, exposed in a leak, or visible only to logged-in connections does not. You carry the burden of knowing which is which, and a scraper usually cannot tell. Commentators also point out that the phrase caused to be made publicly available is unclear and has not been tested.
If the exclusion does not apply, you are a data fiduciary for the scraped data and need a lawful basis, notice, security safeguards and a way to handle requests from individuals. The DPDP Rules, 2025 were published on 14 November 2025 with phased commencement, and most of the operative rules start 18 months after publication, in May 2027. Scraping products should be designed for those rules now.
Other laws can apply as well. A site's terms may forbid collecting user data, and using scraped contact details for unsolicited marketing raises separate telecom and consumer issues.
Is scraping for AI training legal in India?
This is not settled. The Copyright Act has no specific exception for text and data mining or for training AI models. The question is being litigated in ANI Media Pvt Ltd v. OpenAI in the Delhi High Court, a suit in which summons were issued in November 2024. The news agency alleges that its content was used to train ChatGPT and reproduced in outputs.
On 24 July 2026 a single judge of the Delhi High Court refused ANI's application for an interim injunction. As reported by LiveLaw and summarised by law firms, the court held that it had territorial jurisdiction although OpenAI's servers are abroad, took the prima facie view that storing the works for training fell within the fair dealing provision in section 52(1)(a), and found no prima facie case that the model had memorised or reproduced ANI's works. These are interim, prima facie findings. ANI has appealed. A Division Bench issued notice on the appeal on 15 September 2026 and, according to reports, listed it for 8 December 2026. The suit itself is still to be tried. The final position may differ, and this page states the position as reported on the review date.
On policy, a committee set up by DPIIT published Part 1 of a working paper on generative AI and copyright in December 2025. It proposed a mandatory blanket licence for AI training on lawfully accessed works, with royalties collected through a central body. These are proposals for consultation. They are not law, and we did not find any amendment to the Copyright Act giving effect to them on the review date.
Until the law is clearer, AI developers should keep records of training sources, honour robots.txt and other opt-out signals, avoid sources behind logins or paywalls, take licences for important sources, and test outputs for verbatim reproduction. Content owners who object should use technical opt-outs and state their position in their terms.
What should your API terms cover?
If you publish an API, you are offering a controlled alternative to scraping. The API terms are the contract that defines what developers may do with your data. They work only if the developer accepts them, so require acceptance when a key is issued and keep a record of it. The table lists the clauses that matter most.
| Clause | What it should say |
|---|---|
| Licence scope | A limited, non-exclusive, non-transferable, revocable licence to call the API for a described purpose. State whether commercial use, resale or building a competing service is allowed. |
| Keys and accounts | Keys are confidential, issued to one developer, and must not be shared or embedded in public code. The developer is responsible for all use of its keys. |
| Rate limits and fair use | The call limits for each plan, what happens when they are exceeded, and a ban on evading limits through multiple accounts. |
| Caching and storage | Whether responses may be stored, for how long, and whether stored data must be deleted when the agreement ends. |
| Attribution and branding | Whether the source must be credited, how your name and logo may be used, and a ban on implying endorsement. |
| Data use restrictions | No scraping outside the API, no bulk export, no combining with other data to identify individuals, no sale of data to third parties. |
| AI training | Say expressly whether API data may be used to train, fine-tune or evaluate machine learning models. Silence invites dispute. |
| Personal data | Each party's role under the DPDP Act, the purposes for which personal data may be used, security measures, breach notification and deletion. |
| Intellectual property | You keep ownership of the API, documentation and data. The developer keeps ownership of its application. Deal with feedback. |
| Changes and deprecation | Your right to change or withdraw endpoints, the notice you will give, and versioning. |
| Monitoring, suspension and termination | Your right to monitor usage, suspend at once for security or legal reasons, and terminate for breach. State what survives termination. |
| Fees and taxes | Pricing, billing period, overage charges, and GST. |
| Warranties and liability | Whether any uptime commitment is given, a disclaimer of other warranties, a cap on liability, and an indemnity from the developer for misuse. |
| Governing law and disputes | Indian law, the courts or arbitration seat chosen, and a right to seek an urgent injunction. |
How we help
Prodigy Legal advises companies on the legal risk of data collection projects, including scraping for analytics and AI training, and reviews data sources against website terms, copyright, the IT Act and the DPDP Act. We draft and review API terms, developer agreements, data licences and website terms with anti-scraping clauses.
For site owners, we advise on notices to scrapers and on court remedies where data or content has been taken. Outcomes depend on the facts, the evidence of access and the terms that were accepted.
Frequently asked questions
Is web scraping legal in India?
No Indian statute prohibits or permits web scraping by name. It can be lawful when you collect public facts without logging in, without copying creative content or personal data, and without getting around blocks. It becomes risky when it breaches accepted terms, copies copyright content, involves access without permission under section 43 of the IT Act, or collects personal data covered by the DPDP Act.
Can I be sued for scraping a website in India?
Yes. A site owner can sue for breach of contract if you accepted its terms, for copyright infringement if you copied protected content, and for compensation under section 43 of the IT Act if access was without permission. Where the conduct is dishonest or fraudulent, section 66 of the IT Act also makes it a criminal offence.
Is it legal to scrape publicly available personal data in India?
The DPDP Act does not apply to personal data that the individual made publicly available, or that someone made public under a legal duty. Data published about a person by a third party is not covered by that exclusion. Website terms and other laws can still restrict collection and use even where the DPDP Act does not apply.
Is ignoring robots.txt illegal in India?
Not by itself. robots.txt is a technical convention and has no statutory force. Ignoring it is, however, evidence that you knew the owner did not permit that access, which is relevant to claims under the IT Act and in contract.
Is it legal to scrape data to train AI models in India?
The law is unsettled. The Copyright Act has no specific exception for AI training. In ANI v. OpenAI, the Delhi High Court refused an interim injunction on 24 July 2026 on a prima facie view, an appeal is pending, and the suit has not been finally decided. A DPIIT committee has proposed a mandatory licence model, but that is only a proposal.
Is a database protected by copyright in India?
It can be. The Copyright Act treats compilations, including computer databases, as literary works, but only original ones are protected. Under Eastern Book Company v. D.B. Modak, the selection or arrangement must show skill and judgment with a minimal degree of creativity. The individual facts in a database are not protected.
Last reviewed: 2026-11-25. This guide gives general information about Indian law for technology companies and startups. It is not legal advice or tax advice, and every matter turns on its own facts. Statutes, rules, forms and pending cases change, and the current published text governs.