Actor in C# Example
Pricing
Pay per usage
Go to Apify Store
Deprecated
Actor in C# Example
Example actor built in C# programming language. Downloads HTML from any page. Works on Apify platform and locally.
Pricing
Pay per usage
Rating
0.0
(0)
Developer

Patrik Trefil
Maintained by Community
Actor stats
2
Bookmarked
7
Total users
1
Monthly active users
3 years ago
Last modified
Categories
Share
Example Apify actor in C#
Minimal example for developing Apify actor in C# programming language. Here is the actor's page on the Apify store. The code is open source.
The example:
- Reads user provided URL from input
- Does HTTP request to get HTML from this URL
- Saves HTML into OUTPUT record in Key Value Store
This actor works both on Apify platform and locally.
Local usage
For local usage, you need to:
- Clone the repository
- Install dotnet
- Create local storage with
apify initor manually create folder pathapify_storage/key_value_stores/default/ - Add
INPUT.jsonfile input inside this path that looks like this:
{"url": "https://apify.com"}
- Build and run the solution with
dotnet run - You can find
OUTPUT.htmlnext toINPUT.json